summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/SCons/Tools/qt4.py')
-rw-r--r--BuildTools/SCons/Tools/qt4.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/BuildTools/SCons/Tools/qt4.py b/BuildTools/SCons/Tools/qt4.py
index e019b2c..be8621b 100644
--- a/BuildTools/SCons/Tools/qt4.py
+++ b/BuildTools/SCons/Tools/qt4.py
@@ -470,13 +470,13 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, version='4'
try : self.AppendUnique(CPPDEFINES=moduleDefines[module])
except: pass
debugSuffix = ''
include_flag = "-I"
- if self["CC"] in ("gcc", "clang"):
+ if os.path.basename(self["CC"]) in ("gcc", "clang"):
include_flag = "-isystem"
if sys.platform != "win32" and sys.platform != "darwin" and not crosscompiling :
if self["qt"]:
# The user specified qt path in config.py and we are going to use the
@@ -486,21 +486,21 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, version='4'
# The user did not specify a qt path in config py and we are going to
# ask pkg-config for the correct flags.
UsePkgConfig = True
if not UsePkgConfig:
if debug : debugSuffix = '_debug'
if version == '4' :
- self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include", "phonon")])
+ self.AppendUnique(CPPFLAGS = [include_flag + os.path.join("$QTDIR", "include", "phonon")])
for module in modules :
module_str = module
if not version == '4' :
module_str = module_str.replace('Qt', 'Qt5')
self.AppendUnique(LIBS=[module_str+debugSuffix])
self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")])
- self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include")])
- self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include",module)])
+ self.AppendUnique(CPPFLAGS = [include_flag + os.path.join("$QTDIR","include")])
+ self.AppendUnique(CPPFLAGS = [include_flag + os.path.join("$QTDIR","include", module)])
self["QT4_MOCCPPPATH"] = self["CPPPATH"]
return
else:
test_env = self.Clone()
modules_str = " ".join(modules)
if not version == '4' :