From 942ae1dd8224e8d22d900765f90803efaf49b47d Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 26 Nov 2013 14:20:34 -0800 Subject: [PATCH] Add a way to build just a few of Qt's modules more easily 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 --- qt.pro | 1 + 1 file changed, 1 insertion(+) diff --git a/qt.pro b/qt.pro index a9ade877..efa091ee 100644 --- 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) {