summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/sdl.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2015-03-29 14:48:29 +1100
committer Vas Crabb <vas@vastheman.com>2015-03-29 15:02:23 +1100
commitc87888366723fa070845b5063af18fbfd14c176b (patch)
tree91185e355add115d54e96464bb29730a2c21180d /scripts/src/osd/sdl.lua
parentdce0421517517d966f1e39ff8e1fa635d7ca29f3 (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.lua35
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 {