summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd_cfg.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-26 09:00:39 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-26 09:00:39 +0100
commitf76d59c41df1c14a6abb710414809ae1915bda14 (patch)
treeed92194004cbc4806f036721a719d757e1ef63c2 /scripts/src/osd_cfg.lua
parent522a6d8c30082725de73d6af310004726b307f93 (diff)
Moved build system to GENie [Miodrag Milanovic]
make TARGET=mess -j19 will generate all needed files and build MESS, while developing you can use make TARGET=mess COMPILE=1 -j19 to prevent rebuilding of make files. Build system have automatic generate of dependencies so will do incremental builds fine. make clean will remove all generated files/projects and obj files
Diffstat (limited to 'scripts/src/osd_cfg.lua')
-rw-r--r--scripts/src/osd_cfg.lua98
1 files changed, 98 insertions, 0 deletions
diff --git a/scripts/src/osd_cfg.lua b/scripts/src/osd_cfg.lua
new file mode 100644
index 00000000000..ff58ddaaaaf
--- /dev/null
+++ b/scripts/src/osd_cfg.lua
@@ -0,0 +1,98 @@
+if _OPTIONS["osd"]=="windows" then
+ defines {
+ "UNICODE",
+ "_UNICODE",
+ "X64_WINDOWS_ABI",
+ "OSD_WINDOWS",
+ "USE_SDL=0",
+ "USE_QTDEBUG=0",
+ "USE_OPENGL=1",
+ "USE_DISPATCH_GL=1",
+ "DIRECTINPUT_VERSION=0x0800"
+ }
+ --forcedincludes {
+ -- MAME_DIR .. "src/osd/windows/winprefix.h"
+ --}
+elseif _OPTIONS["osd"]=="sdl" then
+ --forcedincludes {
+ -- MAME_DIR .. "src/osd/sdl/sdlprefix.h"
+ --}
+ if _OPTIONS["targetos"]=="windows" then
+ defines {
+ "OSD_SDL",
+ "SDLMAME_WIN32",
+ "X64_WINDOWS_ABI",
+ "UNICODE",
+ "_UNICODE",
+ "SDLMAME_SDL2=1",
+ "USE_XINPUT=0",
+ "USE_OPENGL=1",
+ "USE_QTDEBUG=1",
+ }
+ buildoptions {
+ "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
+ "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
+ "-I$(shell qmake -query QT_INSTALL_HEADERS)",
+ }
+
+ linkoptions{
+ "-L$(shell qmake -query QT_INSTALL_LIBS)",
+ }
+
+ links {
+ "qtmain",
+ "QtGui4",
+ "QtCore4",
+ }
+ end
+ if _OPTIONS["targetos"]=="linux" then
+ defines {
+ "OSD_SDL",
+ "SDLMAME_UNIX",
+ "SDLMAME_SDL2=1",
+ "USE_XINPUT=0",
+ "USE_OPENGL=1",
+ "USE_QTDEBUG=1",
+ }
+ if (USE_BGFX == 1) then
+ defines {
+ "USE_BGFX"
+ }
+ end
+ buildoptions {
+ '$(shell pkg-config --cflags QtGui)',
+ }
+ links {
+ 'QtGui',
+ 'QtCore',
+ }
+ --linkoptions {
+ -- '$(shell pkg-config --libs QtGui)',
+ --}
+ end
+ if _OPTIONS["targetos"]=="macosx" then
+ defines {
+ "OSD_SDL",
+ "SDLMAME_UNIX",
+ "SDLMAME_MACOSX",
+ "SDLMAME_DARWIN",
+ "SDLMAME_SDL2=1",
+ "USE_XINPUT=0",
+ "USE_OPENGL=1",
+ "USE_QTDEBUG=0",
+ }
+ if (USE_BGFX == 1) then
+ defines {
+ "USE_BGFX"
+ }
+ end
+ end
+elseif _OPTIONS["osd"]=="osdmini" then
+ defines {
+ "OSD_MINI",
+ "USE_QTDEBUG",
+ "USE_SDL",
+ "SDLMAME_NOASM=1",
+ "USE_OPENGL=0",
+ }
+end