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
|
|
|
|
|
2015-11-25 15:32:37 +00:00
|
|
|
!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]
|
2012-10-23 20:15:43 +00:00
|
|
|
}
|