diff options
Diffstat (limited to 'BuildTools')
-rw-r--r-- | BuildTools/SCons/Tools/qt4.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/BuildTools/SCons/Tools/qt4.py b/BuildTools/SCons/Tools/qt4.py index 17292d9..f4b59e3 100644 --- a/BuildTools/SCons/Tools/qt4.py +++ b/BuildTools/SCons/Tools/qt4.py @@ -506,6 +506,13 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, version='4' modules_str = " ".join(modules) if not version == '4' : modules_str = modules_str.replace('Qt', 'Qt5') + + # Check if Qt is registed at pkg-config + ret = test_env.TryAction('pkg-config --exists \'%s\'' % modules_str)[0] + test_env.Result( ret ) + if not ret: + print("Qt not found.") + return test_env.ParseConfig("pkg-config --cflags --libs " + modules_str) self.AppendUnique(LIBS=test_env["LIBS"], LIBPATH=test_env["LIBPATH"], CPPPATH=test_env["CPPPATH"]) self["QT4_MOCCPPPATH"] = self["CPPPATH"] |