summaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@digia.com>2012-01-03 07:11:05 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-04-30 23:23:05 (GMT)
commit2d532fddf8df6d766423b52344b0c4d1392119ef (patch)
treeed6c18743baca9dfbbefe8efee181c7641de71af /examples/declarative/cppextensions
parenta440b8baf6b162041a3f4ae411dff81454cff2ac (diff)
downloadQt-2d532fddf8df6d766423b52344b0c4d1392119ef.zip
Qt-2d532fddf8df6d766423b52344b0c4d1392119ef.tar.gz
Qt-2d532fddf8df6d766423b52344b0c4d1392119ef.tar.bz2
Remove build_all when target is same for debug and release
Change build rules for projects where both debug and release target are the same file. For these, it makes no sense building both targets, as they overwrite each other. Now build only release target, when build_all is used. Change-Id: Iffd1076028b1cc91e8151c346bf4761772dafe65 Reviewed-by: Simo Fält <simo.falt@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'examples/declarative/cppextensions')
-rw-r--r--examples/declarative/cppextensions/imageprovider/imageprovider.pro5
-rw-r--r--examples/declarative/cppextensions/plugins/plugins.pro5
-rw-r--r--examples/declarative/cppextensions/qwidgets/qwidgets.pro5
3 files changed, 15 insertions, 0 deletions
diff --git a/examples/declarative/cppextensions/imageprovider/imageprovider.pro b/examples/declarative/cppextensions/imageprovider/imageprovider.pro
index ad918c3..3c761da 100644
--- a/examples/declarative/cppextensions/imageprovider/imageprovider.pro
+++ b/examples/declarative/cppextensions/imageprovider/imageprovider.pro
@@ -12,6 +12,11 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/imageprovider
target.path = $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/imageprovider/ImageProviderCore
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
ImageProviderCore_sources.files = \
ImageProviderCore/qmldir
ImageProviderCore_sources.path = $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/imageprovider/ImageProviderCore
diff --git a/examples/declarative/cppextensions/plugins/plugins.pro b/examples/declarative/cppextensions/plugins/plugins.pro
index e5c05e0..6029347 100644
--- a/examples/declarative/cppextensions/plugins/plugins.pro
+++ b/examples/declarative/cppextensions/plugins/plugins.pro
@@ -21,6 +21,11 @@ sources.files += plugins.pro plugin.cpp plugins.qml README
sources.path += $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/plugins
target.path += $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/plugins/com/nokia/TimeExample
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
INSTALLS += qdeclarativesources sources target
symbian {
diff --git a/examples/declarative/cppextensions/qwidgets/qwidgets.pro b/examples/declarative/cppextensions/qwidgets/qwidgets.pro
index d272180..8a9dd8d 100644
--- a/examples/declarative/cppextensions/qwidgets/qwidgets.pro
+++ b/examples/declarative/cppextensions/qwidgets/qwidgets.pro
@@ -11,6 +11,11 @@ sources.files += qwidgets.pro qwidgets.cpp qwidgets.qml
sources.path += $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/plugins
target.path += $$[QT_INSTALL_EXAMPLES]/declarative/cppextensions/plugins
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
INSTALLS += sources target
symbian:{