Previous 199869 Revisions Next

r45136 Monday 22nd February, 2016 at 13:23:15 UTC by Miodrag Milanović
Made OSD=sdl build compile out of box in Visual Studio (nw)
[scripts/src]main.lua
[scripts/src/osd]sdl.lua sdl_cfg.lua
[src/osd/sdl]sdlprefix.h

trunk/scripts/src/main.lua
r253647r253648
284284         "@echo Emitting ".. rctarget .. "vers.rc...",
285285         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", "\\") ,
286286      }   
287           
288   if (_OPTIONS["osd"] == "sdl") then
289      configuration { "x64","vs*" }
290         prelinkcommands { "copy " .. path.translate(MAME_DIR .."3rdparty/sdl2/lib/x64/SDL2.dll", "\\") .. " " .. path.translate(MAME_DIR .."SDL2.dll","\\") .. " /Y" }
291      configuration { "x32","vs*" }
292         prelinkcommands { "copy " .. path.translate(MAME_DIR .."3rdparty/sdl2/lib/x86/SDL2.dll", "\\") .. " " .. path.translate(MAME_DIR .."SDL2.dll","\\") .. " /Y" }
293   end
287294   
288   
289295   configuration { }
290296
291297   debugdir (MAME_DIR)
trunk/scripts/src/osd/sdl.lua
r253647r253648
4949
5050   if _OPTIONS["targetos"]=="windows" then
5151      if _OPTIONS["USE_LIBSDL"]~="1" then
52         links {
53            "SDL2.dll",
54         }
52         configuration { "mingw*"}
53            links {
54               "SDL2.dll",
55            }
56         configuration { "x64","vs*" }
57            libdirs {
58               MAME_DIR .. "3rdparty/sdl2/lib/x64",
59            }
60         configuration { "x32","vs*" }
61            libdirs {
62               MAME_DIR .. "3rdparty/sdl2/lib/x86",
63            }
64           
65         configuration { "vs*"}
66            links {
67               "SDL2",
68            }
69         configuration { }
5570      else
5671         local str = backtick(sdlconfigcmd() .. " --libs | sed 's/ -lSDLmain//'")
5772         addlibfromstring(str)
r253647r253648
488503
489504      if _OPTIONS["targetos"] == "windows" then
490505         if _OPTIONS["USE_LIBSDL"]~="1" then
491            links {
492               "SDL2.dll",
493            }
506            configuration { "mingw*"}
507               links {
508                  "SDL2.dll",
509               }
510            configuration { "x64","vs*" }
511               libdirs {
512                  MAME_DIR .. "3rdparty/sdl2/lib/x64",
513               }
514            configuration { "x32","vs*" }
515               libdirs {
516                  MAME_DIR .. "3rdparty/sdl2/lib/x86",
517               }               
518            configuration { "vs*"}
519               links {
520                  "SDL2",
521               }
522            configuration { }
494523         else
495524            local str = backtick(sdlconfigcmd() .. " --libs | sed 's/ -lSDLmain//'")
496525            addlibfromstring(str)
trunk/scripts/src/osd/sdl_cfg.lua
r253647r253648
113113      }
114114   configuration { "vs*" }
115115      includedirs {
116         path.join(_OPTIONS["SDL_INSTALL_ROOT"],"include")
116         MAME_DIR .. "3rdparty/sdl2/include",
117117      }
118118   configuration { }
119119
trunk/src/osd/sdl/sdlprefix.h
r253647r253648
1414
1515/* Only problems ... */
1616#if defined(_WIN32)
17#define SDLMAME_WIN32
17#define SDLMAME_WIN32 1
1818#define _SDL_main_h
1919#endif
2020


Previous 199869 Revisions Next


© 1997-2024 The MAME Team