summaryrefslogtreecommitdiffstats
path: root/examples
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
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')
-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
-rw-r--r--examples/designer/containerextension/containerextension.pro5
-rw-r--r--examples/designer/customwidgetplugin/customwidgetplugin.pro5
-rw-r--r--examples/designer/taskmenuextension/taskmenuextension.pro5
-rw-r--r--examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro5
7 files changed, 35 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:{
diff --git a/examples/designer/containerextension/containerextension.pro b/examples/designer/containerextension/containerextension.pro
index 4991970..4e8911e 100644
--- a/examples/designer/containerextension/containerextension.pro
+++ b/examples/designer/containerextension/containerextension.pro
@@ -19,6 +19,11 @@ SOURCES += multipagewidget.cpp \
multipagewidgetextensionfactory.cpp
#! [2]
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
diff --git a/examples/designer/customwidgetplugin/customwidgetplugin.pro b/examples/designer/customwidgetplugin/customwidgetplugin.pro
index a39c1b0..c3c0837 100644
--- a/examples/designer/customwidgetplugin/customwidgetplugin.pro
+++ b/examples/designer/customwidgetplugin/customwidgetplugin.pro
@@ -14,6 +14,11 @@ SOURCES = analogclock.cpp \
customwidgetplugin.cpp
#! [3]
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
diff --git a/examples/designer/taskmenuextension/taskmenuextension.pro b/examples/designer/taskmenuextension/taskmenuextension.pro
index 9f6f429..df23ea8 100644
--- a/examples/designer/taskmenuextension/taskmenuextension.pro
+++ b/examples/designer/taskmenuextension/taskmenuextension.pro
@@ -18,6 +18,11 @@ SOURCES += tictactoe.cpp \
tictactoetaskmenu.cpp
#! [2]
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro
index 4da7094..28ed413 100644
--- a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro
+++ b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro
@@ -14,6 +14,11 @@ SOURCES = worldtimeclock.cpp \
worldtimeclockplugin.cpp
#! [2]
+build_all:!build_pass {
+ CONFIG -= build_all
+ CONFIG += release
+}
+
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro