2aa779e893
in non-prefix builds, the forwarding headers always end up in qtbase's build dir, while the injected headers always live in the build dir of the module they belong to. to deal with that, we now record the target path relative to the module root dir instead of relative to the base directory of the forwarding header itself. Fixes: QTBUG-70056 Change-Id: Ic4346148a125b13e2610f6965cdf4f5266ac763e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
#
|
|
# W A R N I N G
|
|
# -------------
|
|
#
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
# implementation detail. It may change from version to version
|
|
# without notice, or even be removed.
|
|
#
|
|
# We mean it.
|
|
#
|
|
|
|
# Find the module's source root dir.
|
|
isEmpty(_QMAKE_CONF_): error("Project has no top-level .qmake.conf file.")
|
|
MODULE_BASE_INDIR = $$dirname(_QMAKE_CONF_)
|
|
REAL_MODULE_BASE_OUTDIR = $$shadowed($$MODULE_BASE_INDIR)
|
|
MODULE_BASE_OUTDIR = $$REAL_MODULE_BASE_OUTDIR
|
|
!isEmpty(MODULE_BASE_DIR): MODULE_SYNCQT_DIR = $$MODULE_BASE_DIR # compat for webkit
|
|
isEmpty(MODULE_SYNCQT_DIR): MODULE_SYNCQT_DIR = $$MODULE_BASE_INDIR
|
|
isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$MODULE_BASE_OUTDIR
|
|
|
|
exists($$MODULE_BASE_INDIR/.git): \
|
|
CONFIG += git_build
|
|
|
|
!force_independent {
|
|
# If the module is not built independently, everything ends up in qtbase.
|
|
# This is the case in non-prefix builds, except for selected modules.
|
|
MODULE_BASE_OUTDIR = $$[QT_HOST_PREFIX]
|
|
MODULE_QMAKE_OUTDIR = $$[QT_HOST_PREFIX]
|
|
}
|