[SDL2] On Win, build and link statically.
Keep using system lib dynamically on Unix.
This commit is contained in:
@@ -15,16 +15,4 @@ project("xenia-hid-sdl")
|
||||
defines({
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
filter("platforms:Windows")
|
||||
-- On linux we build against the system version (libsdl2-dev)
|
||||
includedirs({
|
||||
project_root.."/third_party/SDL2-devel-VC/include/",
|
||||
})
|
||||
libdirs({
|
||||
project_root.."/third_party/SDL2-devel-VC/lib/x64/",
|
||||
})
|
||||
-- Copy the dll to the output folder
|
||||
postbuildcommands({
|
||||
"{COPY} %{prj.basedir}/"..project_root.."/third_party/SDL2-devel-VC/lib/x64/SDL2.dll %{cfg.targetdir}",
|
||||
})
|
||||
sdl2_include()
|
||||
|
||||
@@ -10,12 +10,11 @@
|
||||
#ifndef XENIA_HID_SDL_SDL_INPUT_DRIVER_H_
|
||||
#define XENIA_HID_SDL_SDL_INPUT_DRIVER_H_
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
|
||||
#include "SDL.h"
|
||||
#include "xenia/hid/input_driver.h"
|
||||
|
||||
#define HID_SDL_USER_COUNT (4)
|
||||
|
||||
Reference in New Issue
Block a user