Add the shared painting and affine example to the build.
authorCasper van Donderen <casper.vandonderen@nokia.com>
Wed, 22 Jun 2011 10:34:15 +0000 (12:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Jun 2011 08:59:28 +0000 (10:59 +0200)
Change-Id: I85e66c9a33a1c908b7588beb219cc9540698ab68
Reviewed-on: http://codereview.qt.nokia.com/623
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
examples/painting/affine/affine.pro
examples/painting/painting.pro
examples/painting/shared/shared.pro

index a3d6e30..817e582 100644 (file)
@@ -13,12 +13,16 @@ include($$SHARED_FOLDER/shared.pri)
 RESOURCES += affine.qrc
 
 # install
-target.path = $$[QT_INSTALL_DEMOS]/qtbase/affine
+target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/affine
 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html *.jpg
-sources.path = $$[QT_INSTALL_DEMOS]/qtbase/affine
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/affine
 INSTALLS += target sources
 
-symbian: CONFIG += qt_demo
+symbian {
+    CONFIG += qt_example
+}
+
+maemo5: CONFIG += qt_example
 
 wince*: {
     DEPLOYMENT_PLUGIN += qjpeg
index 41f9182..1a0bda7 100644 (file)
@@ -1,6 +1,8 @@
 TEMPLATE      = subdirs
 SUBDIRS       = basicdrawing \
                 concentriccircles \
+                examples_affine \
+                painting_shared \
                 imagecomposition \
                 painterpaths \
                 transformations \
@@ -14,3 +16,15 @@ INSTALLS += target sources
 
 symbian: CONFIG += qt_example
 maemo5: CONFIG += qt_example
+
+examples_affine.subdir = affine
+painting_shared.subdir = shared
+
+!ordered {
+    examples_affine.depends = painting_shared
+    examples_deform.depends = painting_shared
+    examples_gradients.depends = painting_shared
+    examples_composition.depends = painting_shared
+    examples_arthurplugin.depends = painting_shared
+    examples_pathstroke.depends = painting_shared
+}
index 88d7fbe..e996956 100644 (file)
@@ -26,9 +26,9 @@ HEADERS += \
 RESOURCES += shared.qrc
 
 # install
-target.path = $$[QT_INSTALL_DEMOS]/qtbase/shared
+target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/shared
 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.pri images
-sources.path = $$[QT_INSTALL_DEMOS]/qtbase/shared
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/shared
 INSTALLS += sources
 
 !cross_compile:INSTALLS += target