diff options
author | 2015-03-29 14:48:29 +1100 | |
---|---|---|
committer | 2015-03-29 15:02:23 +1100 | |
commit | c87888366723fa070845b5063af18fbfd14c176b (patch) | |
tree | 91185e355add115d54e96464bb29730a2c21180d /scripts/src/osd/sdl.lua | |
parent | dce0421517517d966f1e39ff8e1fa635d7ca29f3 (diff) |
Remove all the stuff that causes driver and emu sources to be compiled
differently with different OSDs
Switch back to building for all OSDs in common directory
Move more OSD-specific stuff into OSD scripts
It still isn't completely safe to be building all OSD into same directory
Common OSD "module" files, e.g. debuggers and renderers, build with
different options for each OSD. It works at the moment, but you will end
up with slightly different executables depending on the order you build
OSDs.
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r-- | scripts/src/osd/sdl.lua | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index bbecc872cef..b45d1daee26 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -1,15 +1,32 @@ -function includeosd() - includedirs { - MAME_DIR .. "src/osd", - MAME_DIR .. "src/osd/sdl", - } -end +function maintargetosdoptions(_target) + if _OPTIONS["targetos"]=="windows" then + linkoptions{ + "-L$(shell qmake -query QT_INSTALL_LIBS)", + } + links { + "qtmain", + "QtGui4", + "QtCore4", + } + end -forcedincludes { - MAME_DIR .. "src/osd/sdl/sdlprefix.h" -} + if _OPTIONS["targetos"]=="linux" then + links { + 'QtGui', + 'QtCore', + } + + linkoptions { + '$(shell pkg-config --libs QtGui)', + } + end + configuration { "mingw*" or "vs*" } + targetprefix "sdl" + + configuration { } +end configuration { "mingw*" } linkoptions { |