2011-04-27 10:05:43 +00:00
|
|
|
# This file is loaded by the mkspecs, before .qmake.cache has been loaded.
|
|
|
|
# Consequently, we have to do some stunts to get values out of the cache.
|
|
|
|
|
2011-05-13 14:48:06 +00:00
|
|
|
exists($$_QMAKE_CACHE_) {
|
|
|
|
QMAKE_QT_CONFIG = $$fromfile($$_QMAKE_CACHE_, QMAKE_QT_CONFIG)
|
|
|
|
QMAKE_EXTRA_MODULE_FORWARDS = $$fromfile($$_QMAKE_CACHE_, QMAKE_EXTRA_MODULE_FORWARDS)
|
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
isEmpty(QMAKE_QT_CONFIG)|!exists($$QMAKE_QT_CONFIG) {
|
2012-02-21 20:30:57 +00:00
|
|
|
!isEmpty(QT_BUILD_TREE):QMAKE_QT_CONFIG = $$QT_BUILD_TREE
|
|
|
|
else:exists($$_QMAKE_CACHE_):QMAKE_QT_CONFIG = $$fromfile($$_QMAKE_CACHE_, QT_BUILD_TREE)
|
|
|
|
isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $$[QT_INSTALL_DATA]
|
|
|
|
QMAKE_QT_CONFIG = $$QMAKE_QT_CONFIG/mkspecs/qconfig.pri
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
!exists($$QMAKE_QT_CONFIG)|!include($$QMAKE_QT_CONFIG, "", true) {
|
|
|
|
debug(1, "Cannot load qconfig.pri!")
|
|
|
|
} else {
|
|
|
|
debug(1, "Loaded .qconfig.pri from ($$QMAKE_QT_CONFIG)")
|
2011-05-18 13:23:51 +00:00
|
|
|
for(dir, $$list($$unique($$list($$replace($$list($$dirname(QMAKE_QT_CONFIG) \
|
|
|
|
$$replace($$list($$split($$list($$(QMAKEPATH)), $$DIRLIST_SEPARATOR)), $, /mkspecs)), \
|
|
|
|
$, /modules) \
|
|
|
|
$$QMAKE_EXTRA_MODULE_FORWARDS)))) {
|
2011-04-27 10:05:43 +00:00
|
|
|
debug(1, "Loading modules from $${dir}")
|
2011-05-18 13:23:51 +00:00
|
|
|
for(mod, $$list($$files($$dir/qt_*.pri))) {
|
2010-11-25 02:21:06 +00:00
|
|
|
# For installed Qt these paths will be common for all modules
|
|
|
|
# For development these will vary per module, and syncqt will override the value in the
|
|
|
|
# qt_<module>.pri forwarding file
|
|
|
|
QT_MODULE_INCLUDE_BASE = $$[QT_INSTALL_HEADERS]
|
|
|
|
QT_MODULE_LIB_BASE = $$[QT_INSTALL_LIBS]
|
2011-03-22 12:20:53 +00:00
|
|
|
QT_MODULE_PLUGIN_BASE = $$[QT_INSTALL_PLUGINS]
|
2011-01-06 18:52:17 +00:00
|
|
|
QT_MODULE_BIN_BASE = $$[QT_INSTALL_BINS]
|
2011-03-17 09:57:48 +00:00
|
|
|
QT_MODULE_IMPORT_BASE = $$[QT_INSTALL_IMPORTS]
|
2010-11-25 02:21:06 +00:00
|
|
|
include($$mod)
|
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
load(qt_functions)
|
|
|
|
|