From b9920bf160feff25d370efa7cf0943b27b98f188 Mon Sep 17 00:00:00 2001 From: kh1 Date: Thu, 22 Mar 2012 17:14:12 +0100 Subject: Build tools, examples and test as extra target. Change-Id: Iae8949b3f938f5c6251a76b4806151e0262300d2 Reviewed-by: Niels Weber Reviewed-by: Tim Jenssen --- tools/tools.pro | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/tools.pro b/tools/tools.pro index 963d4a2da..14450f00d 100644 --- a/tools/tools.pro +++ b/tools/tools.pro @@ -4,8 +4,28 @@ TEMPLATE = subdirs SUBDIRS += \ archivegen \ binarycreator \ + repogen + +EXTRASUBDIRS = \ extractbinarydata \ repocompare \ - repogen \ repogenfromonlinerepo -win32:SUBDIRS += maddehelper \ No newline at end of file +win32:EXTRASUBDIRS += maddehelper + + +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) { + tools.commands += cd $$SUBDIR && $(QMAKE) -r $$PWD/$$SUBDIR && $(MAKE) $${IFW_NEWLINE} +} +!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) { + tools.depends = mkdir +} +QMAKE_EXTRA_TARGETS += tools -- cgit v1.2.3