Add a way to build just a few of Qt's modules more easily
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 26 Nov 2013 22:20:34 +0000 (14:20 -0800)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Thu, 24 Sep 2015 05:22:45 +0000 (05:22 +0000)
The current way requires passing -skip to configure, which is a list
of what not to build. To set a list of what to build (e.g., for
testing, in a specialized build, etc.), there was no way. Now you can
just do:

    qmake "QT_BUILD_MODULES=qtbase qtdeclarative qtsvg qtxmlpatterns"

(the order doesn't matter)

Change-Id: Ifcaefa35b16b137866ca839a483ce366e35de7ab
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
qt.pro

diff --git a/qt.pro b/qt.pro
index a9ade87..efa091e 100644 (file)
--- a/qt.pro
+++ b/qt.pro
@@ -14,6 +14,7 @@ defineReplace(moduleName) {
 # Arguments: module name, [mandatory deps], [optional deps], [project file]
 defineTest(addModule) {
     contains(QT_SKIP_MODULES, $$1): return(false)
+    !isEmpty(QT_BUILD_MODULES):!contains(QT_BUILD_MODULES, $$1): return(false)
     mod = $$moduleName($$1)
 
     isEmpty(4) {