diff options
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r-- | scripts/src/osd/sdl.lua | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index 551b98cb392..578fb17608f 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -43,6 +43,16 @@ function maintargetosdoptions(_target) end if _OPTIONS["targetos"]=="windows" then + if _OPTIONS["SDL_LIBVER"]=="sdl2" then + links { + "SDL2.dll", + } + else + links { + "SDL.dll", + } + end + configuration { "mingw*" } linkoptions{ "-municode", @@ -59,10 +69,6 @@ function maintargetosdoptions(_target) libdirs { path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x64") } - configuration { "vs*" } - links { - "SDL2", - } configuration {} elseif _OPTIONS["targetos"]=="haiku" then links { @@ -282,13 +288,6 @@ elseif BASE_TARGETOS=="os2" then } end -configuration { "mingw*" } - linkoptions { - "-static" - } - -configuration { } - project ("osd_" .. _OPTIONS["osd"]) uuid (os.uuid("osd_" .. _OPTIONS["osd"])) @@ -442,6 +441,15 @@ if _OPTIONS["with-tools"] then } if _OPTIONS["targetos"]=="windows" then + if _OPTIONS["SDL_LIBVER"]=="sdl2" then + links { + "SDL2.dll", + } + else + links { + "SDL.dll", + } + end linkoptions{ "-municode", } |