2011-04-27 10:05:43 +00:00
|
|
|
load(exclusive_builds)
|
2012-02-24 18:21:51 +00:00
|
|
|
CONFIG = lex yacc warn_on debug exceptions $$CONFIG
|
2010-11-25 01:56:41 +00:00
|
|
|
|
2011-07-16 12:13:16 +00:00
|
|
|
!build_pass:exists($$_PRO_FILE_PWD_/sync.profile) {
|
2012-03-28 14:06:43 +00:00
|
|
|
# If the install directory is a build directory, we tell syncqt to do a -developer-build.
|
|
|
|
QTDIR = $$[QT_HOST_DATA]
|
|
|
|
exists($$QTDIR/.qmake.cache) {
|
|
|
|
QTFWD = -module-fwd $$QTDIR/mkspecs/modules -developer-build
|
|
|
|
} else {
|
2012-05-14 13:24:25 +00:00
|
|
|
isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$OUT_PWD
|
|
|
|
modpath = $$MODULE_QMAKE_OUTDIR/mkspecs/modules
|
2012-04-02 16:59:24 +00:00
|
|
|
QTFWD = -module-fwd $$modpath
|
|
|
|
!isEmpty(_QMAKE_SUPER_CACHE_):!contains(QMAKEMODULES, $$modpath): \
|
|
|
|
cache(QMAKEMODULES, add super, modpath)
|
2012-05-14 13:24:25 +00:00
|
|
|
unset(modpath)
|
2011-05-18 13:23:51 +00:00
|
|
|
}
|
2010-11-25 01:56:41 +00:00
|
|
|
|
2011-01-28 14:17:00 +00:00
|
|
|
qtPrepareTool(QMAKE_SYNCQT, syncqt)
|
2011-05-30 12:14:28 +00:00
|
|
|
|
2012-05-15 10:36:33 +00:00
|
|
|
isEmpty(MODULE_BASE_OUTDIR): MODULE_BASE_OUTDIR = $$OUT_PWD
|
2012-04-04 12:02:10 +00:00
|
|
|
MSG = $$quote($$QMAKE_SYNCQT -qtdir $$[QT_HOST_DATA/get] $$QTFWD -outdir $$MODULE_BASE_OUTDIR $$_PRO_FILE_PWD_)
|
2011-05-30 12:14:28 +00:00
|
|
|
!silent:message($$MSG)
|
|
|
|
system($$MSG) {
|
2011-05-25 05:55:53 +00:00
|
|
|
# success! Nothing to do
|
|
|
|
} else {
|
2011-05-30 12:14:28 +00:00
|
|
|
error("Failed to run: $$MSG")
|
2011-05-25 05:55:53 +00:00
|
|
|
}
|
2012-03-01 13:34:48 +00:00
|
|
|
|
2012-04-04 12:02:10 +00:00
|
|
|
# Do configure tests now. Fatal tests have a non zero return.
|
|
|
|
system("perl $$[QT_HOST_BINS/get]/qtmodule-configtests $$_PRO_FILE_PWD_ $$OUT_PWD $$[QT_HOST_PREFIX/get] $$MAKEFILE_GENERATOR")|error("Aborting.")
|
|
|
|
|
2012-03-02 10:56:16 +00:00
|
|
|
unset(QTFWD)
|
2010-11-25 01:56:41 +00:00
|
|
|
}
|
2012-05-15 07:47:47 +00:00
|
|
|
|
|
|
|
# Populate the installdir which will be passed to qdoc in the default_post.prf
|
|
|
|
# This allows a project to remove the installdir if need be, to trigger building online docs,
|
|
|
|
# which Qt Creator does.
|
|
|
|
QMAKE_DOCS_INSTALLDIR = $$[QT_INSTALL_DOCS]
|