diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-10 06:39:34 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-10 06:39:34 (GMT) |
commit | 2edf74915432242ba99e7820a7633a06c755c17b (patch) | |
tree | 7bcfda9ab1bccae2c8315e2cdd35e0a547a1604b /site_scons/site_tools | |
parent | 4e0d6417402bc410e6918a2f41a9db43568c23ab (diff) | |
download | swift-2edf74915432242ba99e7820a7633a06c755c17b.zip swift-2edf74915432242ba99e7820a7633a06c755c17b.tar.bz2 |
Fixed Linux SCons compilation.
Diffstat (limited to 'site_scons/site_tools')
-rw-r--r-- | site_scons/site_tools/qt4.py | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/site_scons/site_tools/qt4.py b/site_scons/site_tools/qt4.py index 2fd26aa..6df945b 100644 --- a/site_scons/site_tools/qt4.py +++ b/site_scons/site_tools/qt4.py @@ -334,7 +334,7 @@ def generate(env): argument = None, skeys = ['.qrc']) qrcbuilder = Builder( - action = SCons.Action.Action('$QT4_RCCCOM'), #, '$QT4_RCCCOMSTR'), + action = SCons.Action.Action('$QT4_RCCCOM', cmdstr = '$QT4_RCCCOMSTR'), source_scanner = qrcscanner, src_suffix = '$QT4_QRCSUFFIX', suffix = '$QT4_QRCCXXSUFFIX', @@ -345,7 +345,7 @@ def generate(env): # Interface builder uic4builder = Builder( - action = SCons.Action.Action('$QT4_UICCOM'), #, '$QT4_UICCOMSTR'), + action = SCons.Action.Action('$QT4_UICCOM', cmdstr = '$QT4_UICCOMSTR'), src_suffix='$QT4_UISUFFIX', suffix='$QT4_UICDECLSUFFIX', prefix='$QT4_UICDECLPREFIX', @@ -357,12 +357,12 @@ def generate(env): # Metaobject builder mocBld = Builder(action={}, prefix={}, suffix={}) for h in header_extensions: - act = SCons.Action.Action('$QT4_MOCFROMHCOM') #, '$QT4_MOCFROMHCOMSTR') + act = SCons.Action.Action('$QT4_MOCFROMHCOM', cmdstr = '$QT4_MOCFROMHCOMSTR') mocBld.add_action(h, act) mocBld.prefix[h] = '$QT4_MOCHPREFIX' mocBld.suffix[h] = '$QT4_MOCHSUFFIX' for cxx in cxx_suffixes: - act = SCons.Action.Action('$QT4_MOCFROMCXXCOM') #, '$QT4_MOCFROMCXXCOMSTR') + act = SCons.Action.Action('$QT4_MOCFROMCXXCOM', cmdstr = '$QT4_MOCFROMCXXCOMSTR') mocBld.add_action(cxx, act) mocBld.prefix[cxx] = '$QT4_MOCCXXPREFIX' mocBld.suffix[cxx] = '$QT4_MOCCXXSUFFIX' @@ -415,11 +415,6 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) : 'QtHelp', 'QtScript', ] - pclessModules = [ -# in qt <= 4.3 designer and designerComponents are pcless, on qt4.4 they are not, so removed. -# 'QtDesigner', -# 'QtDesignerComponents', - ] staticModules = [ 'QtUiTools', ] @@ -448,20 +443,12 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) : debugSuffix = '' if sys.platform in ["linux2"] and not crosscompiling : if debug : debugSuffix = '_debug' + self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include", "phonon")]) for module in modules : - if module not in pclessModules : continue self.AppendUnique(LIBS=[module+debugSuffix]) self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")]) - self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4")]) - self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4",module)]) - pcmodules = [module+debugSuffix for module in modules if module not in pclessModules ] - if 'QtDBus' in pcmodules: - self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4","QtDBus")]) - if "QtAssistant" in pcmodules: - self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4","QtAssistant")]) - pcmodules.remove("QtAssistant") - pcmodules.append("QtAssistantClient") - self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules)) + self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include")]) + self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include",module)]) self["QT4_MOCCPPPATH"] = self["CPPPATH"] return if sys.platform == "win32" or crosscompiling : |