2010-11-11 15:35:09 +00:00
|
|
|
# This file is loaded on-demand, before any .qmake.cache (sometimes *in* .qmake.cache), to loaded
|
2010-11-25 01:51:35 +00:00
|
|
|
# important settings for modules, such as paths to QtBase, settings etc.
|
2010-11-11 15:35:09 +00:00
|
|
|
# Consequently, we have to do some stunts to figure out where to find qmodule.pri.
|
|
|
|
|
|
|
|
isEmpty(QMAKE_QT_MODULE)|!exists($$QMAKE_QT_MODULE) {
|
2011-02-01 20:38:28 +00:00
|
|
|
exists($$QTDIR/mkspecs/qmodule.pri):QMAKE_QT_MODULE = $$QTDIR/mkspecs/qmodule.pri
|
|
|
|
QMAKE_CACHE_DIR = $$dirname(_QMAKE_CACHE_)
|
|
|
|
!exists($$QMAKE_QT_MODULE):exists($$QMAKE_CACHE_DIR/mkspecs/qmodule.pri):QMAKE_QT_MODULE = $$QMAKE_CACHE_DIR/mkspecs/qmodule.pri
|
|
|
|
!exists($$QMAKE_QT_MODULE):exists($$QMAKE_CACHE_DIR/qtbase/mkspecs/qmodule.pri):QMAKE_QT_MODULE = $$QMAKE_CACHE_DIR/qtbase/mkspecs/qmodule.pri
|
|
|
|
!exists($$QMAKE_QT_MODULE):if(!isEmpty(QT_BUILD_TREE) & exists($$QT_BUILD_TREE/mkspecs/qmodule.pri)):QMAKE_QT_MODULE = $$QT_BUILD_TREE/mkspecs/qmodule.pri
|
|
|
|
!exists($$QMAKE_QT_MODULE):exists($$[QT_INSTALL_DATA]/mkspecs/qmodule.pri):QMAKE_QT_MODULE = $$[QT_INSTALL_DATA]/mkspecs/qmodule.pri
|
2010-11-11 15:35:09 +00:00
|
|
|
}
|
|
|
|
|
2011-06-08 17:01:24 +00:00
|
|
|
!contains(QMAKE_INTERNAL_INCLUDED_FILES, .*qmodule\\.pri) {
|
|
|
|
!exists($$QMAKE_QT_MODULE)|!include($$QMAKE_QT_MODULE, "", true) {
|
|
|
|
error("Cannot load qmodule.pri!")
|
|
|
|
} else {
|
|
|
|
QMAKE_QT_MODULE_PRI_LOADED = 1
|
|
|
|
debug(1, "Loaded qmodule.pri from ($$QMAKE_QT_MODULE)")
|
|
|
|
}
|
2010-11-11 15:35:09 +00:00
|
|
|
} else {
|
2011-06-08 17:01:24 +00:00
|
|
|
QMAKE_QT_MODULE_PRI_LOADED = 1 # covers 'preloading' from .qmake.cache
|
|
|
|
debug(1, "Not loading qmodule.pri twice")
|
2010-11-11 15:35:09 +00:00
|
|
|
}
|
2011-06-08 17:01:24 +00:00
|
|
|
|
2011-01-25 09:08:15 +00:00
|
|
|
mac {
|
|
|
|
!isEmpty(QMAKE_RPATHDIR){
|
|
|
|
CONFIG += absolute_library_soname
|
|
|
|
}
|
|
|
|
}
|