diff options
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r-- | scripts/src/osd/sdl.lua | 48 |
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", |