summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/sdl_cfg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/osd/sdl_cfg.lua')
-rw-r--r--scripts/src/osd/sdl_cfg.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua
index 6114cc4727f..d891ef9da04 100644
--- a/scripts/src/osd/sdl_cfg.lua
+++ b/scripts/src/osd/sdl_cfg.lua
@@ -117,9 +117,15 @@ if _OPTIONS["targetos"]=="windows" then
configuration { }
elseif _OPTIONS["targetos"]=="linux" then
- buildoptions {
- '$(shell pkg-config --cflags QtGui)',
- }
+ if _OPTIONS["QT_HOME"]~=nil then
+ buildoptions {
+ "-I" .. backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_INSTALL_HEADERS"),
+ }
+ else
+ buildoptions {
+ backtick("pkg-config --cflags QtGui"),
+ }
+ end
elseif _OPTIONS["targetos"]=="macosx" then
defines {
"SDLMAME_MACOSX",