f75e897519
this makes the use sites more expressive Change-Id: Ib879de65d1cc26462fa61f5339e951f294515faf Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
26 lines
843 B
Plaintext
26 lines
843 B
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_PROFILE_DIR = $$dirname(_QMAKE_CONF_)
|
|
isEmpty(MODULE_BASE_DIR): MODULE_BASE_DIR = $$MODULE_PROFILE_DIR
|
|
isEmpty(MODULE_BASE_OUTDIR): MODULE_BASE_OUTDIR = $$shadowed($$MODULE_BASE_DIR)
|
|
isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$MODULE_BASE_OUTDIR
|
|
|
|
!prefix_build {
|
|
QTDIR = $$[QT_HOST_PREFIX]
|
|
# 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
|
|
}
|