summaryrefslogtreecommitdiffstats
path: root/examples/examples.pro
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2012-03-22 17:14:12 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2012-03-23 16:04:15 +0100
commitb9920bf160feff25d370efa7cf0943b27b98f188 (patch)
treecf28af0f7b901af607f12bf536540803bc65cc2e /examples/examples.pro
parentc8850489678471038ea73a748f41d7ad77625aec (diff)
Build tools, examples and test as extra target.
Change-Id: Iae8949b3f938f5c6251a76b4806151e0262300d2 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'examples/examples.pro')
-rw-r--r--examples/examples.pro21
1 files changed, 20 insertions, 1 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index e86e611da..854677b57 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -1,3 +1,22 @@
CONFIG += ordered
TEMPLATE = subdirs
-SUBDIRS += testapp
+
+EXTRASUBDIRS = testapp
+
+
+include(../installerfw.pri)
+
+!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) {
+ for(SUBDIR, EXTRASUBDIRS) {
+ mkdir.commands += $$QMAKE_MKDIR $$SUBDIR $${IFW_NEWLINE}
+ }
+ QMAKE_EXTRA_TARGETS += mkdir
+}
+
+for(SUBDIR, EXTRASUBDIRS) {
+ examples.commands += cd $$SUBDIR && $(QMAKE) -r $$PWD/$$SUBDIR && $(MAKE) $${IFW_NEWLINE}
+}
+!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) {
+ examples.depends = mkdir
+}
+QMAKE_EXTRA_TARGETS += examples