2011-04-27 10:05:43 +00:00
|
|
|
load(exclusive_builds)
|
|
|
|
### Qt 5: remove "uic" and "resources" - or add "qt"
|
|
|
|
CONFIG = lex yacc warn_on debug uic resources $$CONFIG
|
2010-11-25 01:56:41 +00:00
|
|
|
|
|
|
|
exists($$_PRO_FILE_PWD_/sync.profile) {
|
|
|
|
PRO_BASENAME = $$basename(_PRO_FILE_)
|
|
|
|
|
|
|
|
# Try to detect proper QTDIR path. We require QTDIR, as syncqt uses that to create qt_module.pri
|
|
|
|
# forwarding files. If we don't find QTDIR, we avoid creating the fwd files, since you then need
|
|
|
|
# to do a 'make install;' before you can use the module
|
|
|
|
# (ie. we don't use QT_INSTALL_DATA for fwd includes. This path needs a full copy)
|
|
|
|
isEmpty(QTDIR) {
|
|
|
|
QTDIR = $$(QTDIR)
|
|
|
|
isEmpty(QTDIR):QTDIR = $$QT_BUILD_TREE
|
|
|
|
}
|
|
|
|
|
2011-05-18 13:23:51 +00:00
|
|
|
QTFWD =
|
|
|
|
isEmpty(QTDIR) {
|
|
|
|
QTFWD += -module-fwd $$OUT_PWD/module-paths/modules -cache-module-fwd
|
|
|
|
} else {
|
|
|
|
QTFWD += -qtdir $$QTDIR -module-fwd $$QTDIR/mkspecs/modules -developer-build
|
|
|
|
}
|
2010-11-25 01:56:41 +00:00
|
|
|
|
|
|
|
message("Running syncqt for $$PRO_BASENAME in $$OUT_PWD")
|
2011-01-28 14:17:00 +00:00
|
|
|
qtPrepareTool(QMAKE_SYNCQT, syncqt)
|
2011-05-25 05:55:53 +00:00
|
|
|
system("$$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_") {
|
|
|
|
# success! Nothing to do
|
|
|
|
} else {
|
|
|
|
error("Failed to run: $$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
|
|
|
|
}
|
2010-11-25 01:56:41 +00:00
|
|
|
unset(QTFWD)
|
|
|
|
unset(PRO_BASENAME)
|
|
|
|
}
|