summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/sdl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r--scripts/src/osd/sdl.lua40
1 files changed, 22 insertions, 18 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua
index e3ccd96d7b7..1942f70bc73 100644
--- a/scripts/src/osd/sdl.lua
+++ b/scripts/src/osd/sdl.lua
@@ -2,27 +2,31 @@ function maintargetosdoptions(_target)
if _OPTIONS["targetos"]=="windows" then
linkoptions{
"-municode",
- "-L$(shell qmake -query QT_INSTALL_LIBS)",
- }
-
- links {
- "qtmain",
- "QtGui4",
- "QtCore4",
}
+ if (USE_QT == 1) then
+ linkoptions{
+ "-L$(shell qmake -query QT_INSTALL_LIBS)",
+ }
+ links {
+ "qtmain",
+ "QtGui4",
+ "QtCore4",
+ }
+ end
end
-
if _OPTIONS["targetos"]=="linux" then
- links {
- 'QtGui',
- 'QtCore',
- }
-
- linkoptions {
- '$(shell pkg-config --libs QtGui)',
- }
+ if (USE_QT == 1) then
+ links {
+ "QtGui",
+ "QtCore",
+ }
+
+ linkoptions {
+ "$(shell pkg-config --libs QtGui)",
+ }
+ end
end
-
+
configuration { "mingw*" or "vs*" }
targetprefix "sdl"
@@ -116,7 +120,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",