From 67ddd6b22bd26293b6c487420be7062789b4301d Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 10 Oct 2014 15:00:39 +0200 Subject: Fix automatic generation of examples for debug_and_release builds Q_MAKE_EXTRA_TARGETS does generate targets both in Makefile, Makefile.debug, and Makefile.release. Use QMAKE_EXTRA_COMPILERS instead, which in addition will also work in generated Visual Studio projects. Change-Id: I29ec3760508e84c30b3afce39fc36d4e9b6c2e07 Reviewed-by: Niels Weber Reviewed-by: Joerg Bornemann --- examples/changeuserinterface/changeuserinterface.pro | 16 +++++++++------- examples/componenterror/componenterror.pro | 16 +++++++++------- examples/dynamicpage/dynamicpage.pro | 16 +++++++++------- examples/licenseagreement/licenseagreement.pro | 16 +++++++++------- examples/modifyextract/modifyextract.pro | 16 +++++++++------- examples/openreadme/openreadme.pro | 16 +++++++++------- examples/quit_installer/quit_installer.pro | 16 +++++++++------- examples/registerfileextension/registerfileextension.pro | 16 +++++++++------- examples/startmenu/startmenu.pro | 16 +++++++++------- 9 files changed, 81 insertions(+), 63 deletions(-) diff --git a/examples/changeuserinterface/changeuserinterface.pro b/examples/changeuserinterface/changeuserinterface.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/changeuserinterface/changeuserinterface.pro +++ b/examples/changeuserinterface/changeuserinterface.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/componenterror/componenterror.pro b/examples/componenterror/componenterror.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/componenterror/componenterror.pro +++ b/examples/componenterror/componenterror.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/dynamicpage/dynamicpage.pro b/examples/dynamicpage/dynamicpage.pro index 083b35aee..de3af2de9 100644 --- a/examples/dynamicpage/dynamicpage.pro +++ b/examples/dynamicpage/dynamicpage.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages -r $$PWD/resources/additional.qrc installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/licenseagreement/licenseagreement.pro b/examples/licenseagreement/licenseagreement.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/licenseagreement/licenseagreement.pro +++ b/examples/licenseagreement/licenseagreement.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/modifyextract/modifyextract.pro b/examples/modifyextract/modifyextract.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/modifyextract/modifyextract.pro +++ b/examples/modifyextract/modifyextract.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/openreadme/openreadme.pro b/examples/openreadme/openreadme.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/openreadme/openreadme.pro +++ b/examples/openreadme/openreadme.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/quit_installer/quit_installer.pro b/examples/quit_installer/quit_installer.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/quit_installer/quit_installer.pro +++ b/examples/quit_installer/quit_installer.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/registerfileextension/registerfileextension.pro b/examples/registerfileextension/registerfileextension.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/registerfileextension/registerfileextension.pro +++ b/examples/registerfileextension/registerfileextension.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README diff --git a/examples/startmenu/startmenu.pro b/examples/startmenu/startmenu.pro index 7cb0de43e..de3af2de9 100644 --- a/examples/startmenu/startmenu.pro +++ b/examples/startmenu/startmenu.pro @@ -1,11 +1,13 @@ TEMPLATE = aux -OTHER_FILES = README +INSTALLER = offline + +INPUT = $$PWD/config/config.xml $$PWD/packages +example.input = INPUT +example.output = $$INSTALLER +example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT} +example.CONFIG += target_predeps no_link combine -example.target = build_example -example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages installer -QMAKE_EXTRA_TARGETS += example +QMAKE_EXTRA_COMPILERS += example -default_target.target = first -default_target.depends = example -QMAKE_EXTRA_TARGETS += default_target +OTHER_FILES = README -- cgit v1.2.3