diff options
author | 2015-03-31 13:57:02 +0200 | |
---|---|---|
committer | 2015-03-31 13:57:02 +0200 | |
commit | e5f612d1741f67e44f2a17a5759871b4101162dc (patch) | |
tree | aa4ce20741a15d65f907baedf2bc29141dd633aa /scripts/src/osd/sdl.lua | |
parent | 636cacd0c800b3c84e2d23171a3d523b818640a3 (diff) |
Made SDL build to be able to be compiled on VS (nw)
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r-- | scripts/src/osd/sdl.lua | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index 726423853c6..8aa7f387937 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -29,9 +29,25 @@ function maintargetosdoptions(_target) end if _OPTIONS["targetos"]=="windows" then - linkoptions{ - "-municode", - } + configuration { "mingw*" } + linkoptions{ + "-municode", + } + configuration { "x32", "vs*" } + libdirs { + path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x86") + } + configuration { "x64", "vs*" } + libdirs { + path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x64") + } + configuration { "vs*" } + links { + "SDL2", + "opengl32", + } + configuration {} + if (USE_QT == 1) then linkoptions{ "-L$(shell qmake -query QT_INSTALL_LIBS)", |