2 ### Qt 5: remove "uic" and "resources" - or add "qt"
3 CONFIG = lex yacc warn_on debug uic resources $$CONFIG
5 exists($$_PRO_FILE_PWD_/sync.profile) {
6 PRO_BASENAME = $$basename(_PRO_FILE_)
8 # Try to detect proper QTDIR path. We require QTDIR, as syncqt uses that to create qt_module.pri
9 # forwarding files. If we don't find QTDIR, we avoid creating the fwd files, since you then need
10 # to do a 'make install;' before you can use the module
11 # (ie. we don't use QT_INSTALL_DATA for fwd includes. This path needs a full copy)
14 isEmpty(QTDIR):QTDIR = $$QT_BUILD_TREE
15 isEmpty(QTDIR) { # figure out QTDIR based on qmake binary
16 QMAKE_BASED_QTDIR = $$dirname(QMAKE_QMAKE)
17 QTDIR = $$dirname(QMAKE_BASED_QTDIR)
18 unset(QMAKE_BASED_QTDIR)
22 QTFWD = -module-fwd $$OUT_PWD/module-paths/modules -cache-module-fwd
24 # Only if QTDIR points to an actual build directory
25 # and this build directory is the install directory
26 # can we tell syncqt to do a -developer-build
27 exists($$QTDIR/.qmake.cache):contains(QTDIR, $$[QT_INSTALL_PREFIX]) {
28 QTFWD = -qtdir $$QTDIR -module-fwd $$QTDIR/mkspecs/modules -developer-build
32 qtPrepareTool(QMAKE_SYNCQT, syncqt)
34 MSG = $$quote($$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_)
35 !silent:message($$MSG)
37 # success! Nothing to do
39 error("Failed to run: $$MSG")