summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/sdl.lua
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-03-29 18:58:39 +0200
committer couriersud <couriersud@arcor.de>2015-03-29 18:58:39 +0200
commit4a6023e471d6fbbecfce6fb6ebd00746c26cc34b (patch)
tree1425ca164f368f652383492d093442fc832b3181 /scripts/src/osd/sdl.lua
parenta600e61c5865c2ce31cb2329d271d2aedd0b2f5f (diff)
Added two more options to the build system:
USE_QT: Compile the QT Debugger. Default is USE_QT=1 (except macosx), use USE_QT=0 to disable. LDOPTS: Optional LDFLAGs. These are mainly used for cross compilation. The following will compile a windows SDL build without QT debugger on linux: make TARGETOS=windows PTR64=1 OSD=sdl OS=linux \ OVERRIDE_CC="@x86_64-w64-mingw32-gcc" \ OVERRIDE_CXX="@x86_64-w64-mingw32-g++" \ OVERRIDE_LD="x86_64-w64-mingw32-g++" \ WINDRES="x86_64-w64-mingw32-windres" \ USE_QT=0 \ ARCHOPTS="-idirafter ${MINGW64DIR}/x86_64-w64-mingw32/include/ \ -I${MINGW64DIR}/Qt/include/ -v" SUBTARGET=tiny MINGW64=/usr \ \ LDOPTS="-L/mnt/mfhome/andre/mame/w64crosslibs"
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r--scripts/src/osd/sdl.lua48
1 files changed, 25 insertions, 23 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua
index ffe4080a6e4..1dfd43a13d6 100644
--- a/scripts/src/osd/sdl.lua
+++ b/scripts/src/osd/sdl.lua
@@ -1,27 +1,29 @@
function maintargetosdoptions(_target)
- if _OPTIONS["targetos"]=="windows" then
- linkoptions{
- "-L$(shell qmake -query QT_INSTALL_LIBS)",
- }
-
- links {
- "qtmain",
- "QtGui4",
- "QtCore4",
- }
+ if (USE_QT == 1) then
+ if _OPTIONS["targetos"]=="windows" then
+ linkoptions{
+ "-L$(shell qmake -query QT_INSTALL_LIBS)",
+ }
+
+ links {
+ "qtmain",
+ "QtGui4",
+ "QtCore4",
+ }
+ end
+
+ if _OPTIONS["targetos"]=="linux" then
+ links {
+ 'QtGui',
+ 'QtCore',
+ }
+
+ linkoptions {
+ '$(shell pkg-config --libs QtGui)',
+ }
+ end
end
-
- if _OPTIONS["targetos"]=="linux" then
- links {
- 'QtGui',
- 'QtCore',
- }
-
- linkoptions {
- '$(shell pkg-config --libs QtGui)',
- }
- end
-
+
configuration { "mingw*" or "vs*" }
targetprefix "sdl"
@@ -114,7 +116,7 @@ project ("osd_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.c",
}
- if not (_OPTIONS["targetos"]=="macosx") then
+ if (USE_QT == 1) then
files {
MAME_DIR .. "src/osd/modules/debugger/qt/debuggerview.c",
MAME_DIR .. "src/osd/modules/debugger/qt/windowqt.c",