diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-08-06 16:17:22 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-08-11 07:57:12 (GMT) |
commit | 199b7ccb2a82e6a87808c3873c158ca38120dfdf (patch) | |
tree | 96dd7b208248df0a59e0dc1daaae8d031e0305b3 | |
parent | bf992abf98056151def8ff0b853fce8f1924b02a (diff) | |
download | Qt-199b7ccb2a82e6a87808c3873c158ca38120dfdf.zip Qt-199b7ccb2a82e6a87808c3873c158ca38120dfdf.tar.gz Qt-199b7ccb2a82e6a87808c3873c158ca38120dfdf.tar.bz2 |
fix loading of module configs
do it in qt_config.prf instead of in the autogenerated qconfig.pri
files. this is waaaay more elegant, and allows us to easily use the
magic in that file which avoids loading qt configuration from the qt
install dir while building qt itself.
Reviewed-by: joerg
Reviewed-by: Simon Hausmann
Task-number: QTBUG-12698
-rwxr-xr-x | configure | 3 | ||||
-rwxr-xr-x | configure.exe | bin | 1309696 -> 1320448 bytes | |||
-rw-r--r-- | mkspecs/features/qt_config.prf | 1 | ||||
-rw-r--r-- | tools/configure/configureapp.cpp | 2 |
4 files changed, 1 insertions, 5 deletions
@@ -7886,9 +7886,6 @@ QT_LIBINFIX = $QT_LIBINFIX QT_NAMESPACE = $QT_NAMESPACE QT_NAMESPACE_MAC_CRC = $QT_NAMESPACE_MAC_CRC -#modules -for(mod,\$\$list(\$\$files(\$\$[QMAKE_MKSPECS]/modules/qt_*.pri))):include(\$\$mod) - EOF if [ "$CFG_RPATH" = "yes" ]; then echo "QMAKE_RPATHDIR += \"$QT_INSTALL_LIBS\"" >> "$QTCONFIG.tmp" diff --git a/configure.exe b/configure.exe Binary files differindex 220e605..c5bff85 100755 --- a/configure.exe +++ b/configure.exe diff --git a/mkspecs/features/qt_config.prf b/mkspecs/features/qt_config.prf index b6fba65..19e01a1 100644 --- a/mkspecs/features/qt_config.prf +++ b/mkspecs/features/qt_config.prf @@ -11,6 +11,7 @@ isEmpty(QMAKE_QT_CONFIG)|!exists($$QMAKE_QT_CONFIG) { debug(1, "Cannot load qconfig.pri!") } else { debug(1, "Loaded .qconfig.pri from ($$QMAKE_QT_CONFIG)") + for(mod, $$list($$files($$dirname(QMAKE_QT_CONFIG)/modules/qt_*.pri))):include($$mod) } load(qt_functions) diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index a0ca33a..0c716d1 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2944,8 +2944,6 @@ void Configure::generateCachefile() configStream << "#namespaces" << endl << "QT_NAMESPACE = " << dictionary["QT_NAMESPACE"] << endl; } - configStream << "#modules" << endl << "for(mod,$$list($$files($$[QMAKE_MKSPECS]/modules/qt_*.pri))):include($$mod)" << endl; - configStream.flush(); configFile.close(); } |