2012-12-11 21:22:23 +00:00
|
|
|
# This file is loaded as one of the last things by all qmakespecs.
|
|
|
|
|
2012-03-22 11:40:00 +00:00
|
|
|
QMAKE_QT_CONFIG = $$[QT_HOST_DATA/get]/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)")
|
2014-11-27 13:12:40 +00:00
|
|
|
dirs = $$(QMAKEMODULES)
|
|
|
|
QMAKE_MODULE_PATH = $$split(dirs, $$DIRLIST_SEPARATOR)
|
2012-05-10 13:34:05 +00:00
|
|
|
QMAKE_MODULE_PATH += $$QMAKEMODULES
|
2014-11-27 13:12:40 +00:00
|
|
|
dirs = $$[QMAKEMODULES]
|
|
|
|
QMAKE_MODULE_PATH += $$split(dirs, $$DIRLIST_SEPARATOR)
|
|
|
|
dirs = $$[QMAKE_MKSPECS]
|
|
|
|
dirs = $$split(dirs, $$DIRLIST_SEPARATOR)
|
|
|
|
QMAKE_MODULE_PATH += $$replace(dirs, \$, /modules)
|
|
|
|
unset(dirs)
|
2012-05-10 13:34:05 +00:00
|
|
|
QMAKE_MODULE_PATH = $$unique(QMAKE_MODULE_PATH)
|
2012-05-10 13:35:24 +00:00
|
|
|
QMAKE_MODULE_PATH = $$reverse(QMAKE_MODULE_PATH)
|
2012-05-10 13:34:05 +00:00
|
|
|
for(dir, QMAKE_MODULE_PATH) {
|
2011-04-27 10:05:43 +00:00
|
|
|
debug(1, "Loading modules from $${dir}")
|
2014-11-27 13:12:40 +00:00
|
|
|
mods = $$files($$dir/qt_*.pri)
|
|
|
|
for (mod, mods) {
|
2013-06-07 12:06:24 +00:00
|
|
|
# For installed Qt these paths will be common for all modules.
|
|
|
|
# For uninstalled prefix builds these will vary per module, via the
|
|
|
|
# forwarding module pri files. Keep qt_module_pris.prf in sync with this!
|
2010-11-25 02:21:06 +00:00
|
|
|
QT_MODULE_INCLUDE_BASE = $$[QT_INSTALL_HEADERS]
|
|
|
|
QT_MODULE_LIB_BASE = $$[QT_INSTALL_LIBS]
|
2013-05-08 13:30:56 +00:00
|
|
|
QT_MODULE_HOST_LIB_BASE = $$[QT_HOST_LIBS]
|
2011-01-06 18:52:17 +00:00
|
|
|
QT_MODULE_BIN_BASE = $$[QT_INSTALL_BINS]
|
2010-11-25 02:21:06 +00:00
|
|
|
include($$mod)
|
|
|
|
}
|
2014-11-27 13:12:40 +00:00
|
|
|
unset(mods)
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
2013-10-21 20:07:00 +00:00
|
|
|
QT_MODULES = $$unique(QT_MODULES) # In case modules appear in multiple places
|
2012-04-27 10:17:21 +00:00
|
|
|
unset(QT_MODULE_INCLUDE_BASE)
|
|
|
|
unset(QT_MODULE_LIB_BASE)
|
2013-05-08 13:30:56 +00:00
|
|
|
unset(QT_MODULE_HOST_LIB_BASE)
|
2012-04-27 10:17:21 +00:00
|
|
|
unset(QT_MODULE_BIN_BASE)
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load(qt_functions)
|
|
|
|
|