kill $$mod_component_base & $$mod_qmake_base
use $$MODULE_BASE_OUTDIR & $$MODULE_QMAKE_OUTDIR directly. this is a no-op, except that now module pris will be built in qtbase for all modules when building without -prefix - which is only consistent with all other artifacts. Change-Id: I2965b2c7a15aa9e82ba6017f5f4c0daa14b6e6fe Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
4a9ffb5c9e
commit
103ddce67a
@ -14,12 +14,8 @@ isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$MODULE_BASE_OUTDIR
|
||||
|
||||
QTDIR = $$[QT_HOST_PREFIX]
|
||||
exists($$QTDIR/.qmake.cache) {
|
||||
mod_component_base = $$QTDIR
|
||||
mod_qmake_base = $$QTDIR
|
||||
} else {
|
||||
mod_component_base = $$MODULE_BASE_OUTDIR
|
||||
mod_qmake_base = $$MODULE_QMAKE_OUTDIR
|
||||
# Permit modules to enforce being built outside QTDIR ...
|
||||
!force_independent: MODULE_BASE_OUTDIR = $$QTDIR
|
||||
# ... though this sort of breaks the idea.
|
||||
MODULE_QMAKE_OUTDIR = $$QTDIR
|
||||
}
|
||||
# Permit modules to enforce being built outside QTDIR.
|
||||
force_independent: mod_component_base = $$MODULE_BASE_OUTDIR
|
||||
|
||||
|
@ -112,7 +112,7 @@ CONFIG -= fix_output_dirs
|
||||
doc_subdir = doc
|
||||
|
||||
unset(QMAKE_DOCS_INDEX)
|
||||
QMAKE_DOCS_OUTPUTDIR = $$mod_component_base/$$doc_subdir/qt$${MODULE}
|
||||
QMAKE_DOCS_OUTPUTDIR = $$MODULE_BASE_OUTDIR/$$doc_subdir/qt$${MODULE}
|
||||
for(qmod, QMAKEMODULES): \
|
||||
QMAKE_DOCS_INDEX += $$section(qmod, /, 0, -3)/$$doc_subdir
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
isEmpty(MODULE_INSTALL_LIBS): MODULE_INSTALL_LIBS = $$[QT_INSTALL_LIBS/raw]
|
||||
|
||||
MODULE_FWD_PRI = $$mod_qmake_base/mkspecs/modules/qt_$${MODULE}.pri
|
||||
MODULE_FWD_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules/qt_$${MODULE}.pri
|
||||
|
||||
# -rpath-link is used by the linker to find depedencies of dynamic
|
||||
# libraries which were NOT specified on the command line.
|
||||
@ -51,11 +51,11 @@
|
||||
# Create a forwarding module .pri file
|
||||
MODULE_FWD_PRI_CONT = \
|
||||
"QT_MODULE_BASE = $$MODULE_BASE_DIR" \
|
||||
"QT_MODULE_BIN_BASE = $$mod_component_base/bin" \
|
||||
"QT_MODULE_INCLUDE_BASE = $$mod_component_base/include" \
|
||||
"QT_MODULE_IMPORT_BASE = $$mod_component_base/imports" \
|
||||
"QT_MODULE_LIB_BASE = $$mod_component_base/lib" \
|
||||
"QT_MODULE_PLUGIN_BASE = $$mod_component_base/plugins" \
|
||||
"QT_MODULE_BIN_BASE = $$MODULE_BASE_OUTDIR/bin" \
|
||||
"QT_MODULE_INCLUDE_BASE = $$MODULE_BASE_OUTDIR/include" \
|
||||
"QT_MODULE_IMPORT_BASE = $$MODULE_BASE_OUTDIR/imports" \
|
||||
"QT_MODULE_LIB_BASE = $$MODULE_BASE_OUTDIR/lib" \
|
||||
"QT_MODULE_PLUGIN_BASE = $$MODULE_BASE_OUTDIR/plugins" \
|
||||
$$module_rpathlink \
|
||||
$$module_rpathlink_priv \
|
||||
"QT.$${MODULE}.rpath = $$MODULE_INSTALL_LIBS" \
|
||||
|
@ -4,13 +4,13 @@ load(qt_build_paths)
|
||||
qtPrepareTool(QMAKE_SYNCQT, syncqt)
|
||||
contains(QT_CONFIG, private_tests): \ # -developer-build
|
||||
QMAKE_SYNCQT += -check-includes
|
||||
QMAKE_SYNCQT += -module $$TARGET -mkspecsdir $$[QT_HOST_DATA/get]/mkspecs -outdir $$mod_component_base $$MODULE_BASE_DIR
|
||||
QMAKE_SYNCQT += -module $$TARGET -mkspecsdir $$[QT_HOST_DATA/get]/mkspecs -outdir $$MODULE_BASE_OUTDIR $$MODULE_BASE_DIR
|
||||
!silent: message($$QMAKE_SYNCQT)
|
||||
system($$QMAKE_SYNCQT)|error("Failed to run: $$QMAKE_SYNCQT")
|
||||
}
|
||||
|
||||
#load up the headers info
|
||||
include($$mod_component_base/include/$$TARGET/headers.pri, "", true)
|
||||
include($$MODULE_BASE_OUTDIR/include/$$TARGET/headers.pri, "", true)
|
||||
|
||||
lctarget = $$lower($$TARGET)
|
||||
uctarget = $$upper($$TARGET)
|
||||
@ -51,7 +51,7 @@ count(MODULE_VERSION_HEADER, 1) {
|
||||
}
|
||||
|
||||
# Create a module master header
|
||||
MODULE_MASTER_HEADER = $$mod_component_base/include/$$TARGET/$$TARGET
|
||||
MODULE_MASTER_HEADER = $$MODULE_BASE_OUTDIR/include/$$TARGET/$$TARGET
|
||||
!build_pass {
|
||||
MODULE_MASTER_HEADER_CONT = \
|
||||
"/* This file was generated by qmake with the info from $${_PRO_FILE_}. */" \
|
||||
|
Loading…
Reference in New Issue
Block a user