diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-10-07 15:58:44 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-10-07 22:46:09 +0000 |
commit | d56e627427b9707caa64e10d1214b0adacbc970b (patch) | |
tree | 130789a8bcaee337265e31d0ffc8eae3bbe20e1f /util/cmake | |
parent | cb90784eb1d1cb264f78cc9b3be2ad80704ea8d4 (diff) |
pro2cmake: Don't add default Qt libraries to bootstrapped tools
Change-Id: I3ccc20ed5fcd2eaceb5af09df4a8bf7ccb2d525f
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'util/cmake')
-rwxr-xr-x | util/cmake/pro2cmake.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index fec4eed19d..64ca5d78d4 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2765,7 +2765,13 @@ def write_module(cm_fh: IO[str], scope: Scope, *, indent: int = 0) -> str: def write_tool(cm_fh: IO[str], scope: Scope, *, indent: int = 0) -> str: tool_name = scope.TARGET - extra = ["BOOTSTRAP"] if "force_bootstrap" in scope.get("CONFIG") else [] + if "force_bootstrap" in scope.get("CONFIG"): + extra = ["BOOTSTRAP"] + + # Remove default QT libs. + scope._append_operation("QT", RemoveOperation(["core", "gui"])) + else: + extra = [] write_main_part( cm_fh, |