2012-12-11 21:08:15 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2012-10-23 20:15:43 +00:00
|
|
|
# Find the module's source root dir.
|
2012-10-29 10:22:17 +00:00
|
|
|
isEmpty(_QMAKE_CONF_): error("Project has no top-level .qmake.conf file.")
|
2013-06-08 09:58:54 +00:00
|
|
|
MODULE_BASE_INDIR = $$dirname(_QMAKE_CONF_)
|
|
|
|
MODULE_BASE_OUTDIR = $$shadowed($$MODULE_BASE_INDIR)
|
|
|
|
!isEmpty(MODULE_BASE_DIR): MODULE_SYNCQT_DIR = $$MODULE_BASE_DIR # compat for webkit
|
|
|
|
isEmpty(MODULE_SYNCQT_DIR): MODULE_SYNCQT_DIR = $$MODULE_BASE_INDIR
|
2012-10-23 20:15:43 +00:00
|
|
|
isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$MODULE_BASE_OUTDIR
|
|
|
|
|
2013-06-08 09:58:54 +00:00
|
|
|
exists($$MODULE_BASE_INDIR/.git): \
|
2013-05-28 19:34:05 +00:00
|
|
|
CONFIG += git_build
|
|
|
|
|
2013-01-28 19:25:33 +00:00
|
|
|
!prefix_build {
|
|
|
|
QTDIR = $$[QT_HOST_PREFIX]
|
2012-10-23 20:19:53 +00:00
|
|
|
# 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
|
2012-10-23 20:15:43 +00:00
|
|
|
}
|