1 # This file is loaded by the mkspecs, before .qmake.cache has been loaded.
2 # Consequently, we have to do some stunts to get values out of the cache.
4 exists($$_QMAKE_CACHE_):QMAKE_QT_CONFIG = $$fromfile($$_QMAKE_CACHE_, QMAKE_QT_CONFIG)
5 isEmpty(QMAKE_QT_CONFIG)|!exists($$QMAKE_QT_CONFIG) {
6 !isEmpty(QT_BUILD_TREE):QMAKE_QT_CONFIG = $$QT_BUILD_TREE/mkspecs/qconfig.pri
7 else:exists($$_QMAKE_CACHE_):infile($$_QMAKE_CACHE_, QT_BUILD_TREE):QMAKE_QT_CONFIG = $$fromfile($$_QMAKE_CACHE_, QT_BUILD_TREE)/mkspecs/qconfig.pri
8 else:exists($$[QT_INSTALL_DATA]/mkspecs/qconfig.pri):QMAKE_QT_CONFIG = $$[QT_INSTALL_DATA]/mkspecs/qconfig.pri
10 !exists($$QMAKE_QT_CONFIG)|!include($$QMAKE_QT_CONFIG, "", true) {
11 debug(1, "Cannot load qconfig.pri!")
13 debug(1, "Loaded .qconfig.pri from ($$QMAKE_QT_CONFIG)")
14 for(dir, $$list($$unique($$list($$dirname(QMAKE_QT_CONFIG) \
15 $$split($$list($$[QMAKE_MKSPECS]), $$DIRLIST_SEPARATOR))))) {
16 debug(1, "Loading modules from $${dir}")
17 for(mod, $$list($$files($$dir/modules/qt_*.pri))):include($$mod)