36b0d9b51c
When building qtbase for iOS with CMake, and then trying to mix build qtsvg with qmake, the value of MODULE_BASE_OUTDIR was wrongly set to the host prefix because that usually coincides with the target prefix when doing builds with just qmake. That is not the case for CMake builds, where the host and target prefix locations are necessarily different. This caused syncqt to place the forwarding headers inside the host prefix location instead of the target prefix location, and thus compiling qtsvg files failed. Make sure to use the target install prefix instead of the host one. Task-number: QTBUG-82581 Task-number: QTBUG-84781 Task-number: QTBUG-85240 Change-Id: I592be0b2799c72c11497c8adc12be13106082cfc Reviewed-by: Joerg Bornemann <joerg.bornemann@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_INSTALL_PREFIX]
|
|
MODULE_QMAKE_OUTDIR = $$[QT_INSTALL_PREFIX]
|
|
}
|