diff options
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 80ebe436e01..b8125bf1989 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -284,8 +284,14 @@ end "@echo Emitting ".. rctarget .. "vers.rc...", PYTHON .. " " .. path.translate(MAME_DIR .. "scripts/build/verinfo.py","\\") .. " -r -b " .. rctarget .. " " .. path.translate(MAME_DIR .. "src/version.cpp","\\") .. " > " .. path.translate(GEN_DIR .. "resource/" .. rctarget .. "vers.rc", "\\") , } + + if (_OPTIONS["osd"] == "sdl") then + configuration { "x64","vs*" } + prelinkcommands { "copy " .. path.translate(MAME_DIR .."3rdparty/sdl2/lib/x64/SDL2.dll", "\\") .. " " .. path.translate(MAME_DIR .."SDL2.dll","\\") .. " /Y" } + configuration { "x32","vs*" } + prelinkcommands { "copy " .. path.translate(MAME_DIR .."3rdparty/sdl2/lib/x86/SDL2.dll", "\\") .. " " .. path.translate(MAME_DIR .."SDL2.dll","\\") .. " /Y" } + end - configuration { } debugdir (MAME_DIR) |