diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-01-08 14:13:30 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-01-22 08:56:52 +0000 |
commit | fd336190b9a4c0cd63c91372fd41c2ec1adc18b9 (patch) | |
tree | e069c42f680d16ff216d855cd7a417f873d87791 | |
parent | f55f7024df015414fd06318906bdd09f295a7b38 (diff) |
Add bizarre hack to copy .prf file in developer builds
It has to be in a .pro file that actually builds something, and we
don't want to list it in the OTHER_FILES section. IDEs should be
able to pick it up from the extra compiler or install steps.
Change-Id: I22b62592f91318ce19c8edebb53e71da1d28afb9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rw-r--r-- | qtscxml.pro | 8 | ||||
-rw-r--r-- | src/scxml/scxml.pro | 15 |
2 files changed, 15 insertions, 8 deletions
diff --git a/qtscxml.pro b/qtscxml.pro index ebf69e6..a2e3b51 100644 --- a/qtscxml.pro +++ b/qtscxml.pro @@ -1,14 +1,6 @@ CONFIG += tests_need_tools examples_need_tools -FEATURES += mkspecs/features/qscxmlc.prf - -features.files = $$FEATURES -features.path = $$[QT_HOST_DATA]/mkspecs/features/ - -INSTALLS += features - OTHER_FILES += \ - $$FEATURES \ .qmake.conf \ sync.profile \ .gitignore \ diff --git a/src/scxml/scxml.pro b/src/scxml/scxml.pro index 09f2ad4..40601e3 100644 --- a/src/scxml/scxml.pro +++ b/src/scxml/scxml.pro @@ -47,3 +47,18 @@ SOURCES += \ qscxmlerror.cpp \ qscxmlinvokableservice.cpp \ qscxmltabledata.cpp + +FEATURES += ../../mkspecs/features/qscxmlc.prf +features.files = $$FEATURES +features.path = $$[QT_HOST_DATA]/mkspecs/features/ +INSTALLS += features + +!force_independent:if(!debug_and_release|!build_all|CONFIG(release, debug|release)) { + # Copy qscxmlc.prf to the qtbase build directory (for non-installed developer builds) + prf2build.input = FEATURES + prf2build.output = $$[QT_INSTALL_DATA/get]/mkspecs/features/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT} + prf2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} + prf2build.name = COPY ${QMAKE_FILE_IN} + prf2build.CONFIG = no_link no_clean target_predeps + QMAKE_EXTRA_COMPILERS += prf2build +} |