aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/main.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-05-15 13:23:49 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-05-15 11:44:48 +0000
commit85dd5623f223ef2279e0660a90da4e78e7072830 (patch)
tree81d488e87efd80255a533ef1a1eaaa1c4ca89b00 /build_scripts/main.py
parenta1d13bfe47c5b2b7ca2c915dca0094c1f8448deb (diff)
Add option --skip-modules
Allow the user to skip a set of modules when building the module. An example of using this option: --skip-modules=WebEngineCore,WebEngineWidgets,Multimedia Change-Id: I4b7a25acd60d068a886c1e716ddb7b226814b96f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/main.py')
-rw-r--r--build_scripts/main.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py
index fd599848..b22249ab 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -967,6 +967,15 @@ class pyside_build(_build):
moduleSubSet += ';'
moduleSubSet += m
cmake_cmd.append("-DMODULES={}".format(moduleSubSet))
+ if OPTION_SKIP_MODULES:
+ skip_modules = ''
+ for m in OPTION_SKIP_MODULES.split(','):
+ if m.startswith('Qt'):
+ m = m[2:]
+ if skip_modules:
+ skip_modules += ';'
+ skip_modules += m
+ cmake_cmd.append("-DSKIP_MODULES={}".format(skip_modules))
# Add source location for generating documentation
cmake_src_dir = OPTION_QT_SRC if OPTION_QT_SRC else qtSrcDir
cmake_cmd.append("-DQT_SRC_DIR={}".format(cmake_src_dir))