add support for per-module QT_BUILD_PARTS overrides
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Thu, 8 Nov 2012 10:29:12 +0000 (11:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Nov 2012 15:59:50 +0000 (16:59 +0100)
this makes it possible to configure with -nomake tests, but have, e.g.,
QTSVG_BUILD_PARTS="libs tools examples tests" to enable tests
specifically in the svg module.

Change-Id: I925ab955ac32ec3e311c2a852a51b098fd4e0ea3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
mkspecs/features/qt_parts.prf

index 94f58ff..ebbe789 100644 (file)
@@ -2,6 +2,9 @@ load(qt_build_config)
 
 TEMPLATE = subdirs
 
+bp = $$eval($$upper($$TARGET)_BUILD_PARTS)
+!isEmpty(bp): QT_BUILD_PARTS = $$bp
+
 sub_src.subdir = src
 sub_src.target = sub-src
 SUBDIRS = sub_src