summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-03-01 13:32:44 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-03-04 09:08:48 +0000
commit363eccf0108baccbabab9747a2eb9d7aa0373045 (patch)
tree951e362caa82975ad76a2ea0261064d898f8639c
parent3c9d7dfb304dcad8ceea29ac729e76d8eca913f9 (diff)
CMake: pro2cmake.py: Handle BOOTSTRAP for add_qt_tool
Add BOOTSTRAP for tools that need it automatically. Change-Id: I33b2ec16dfcb09709f844ed232ce9974a9d7c7ed Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rwxr-xr-xutil/cmake/pro2cmake.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index ef81d4cfef..d21ae36a82 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1197,8 +1197,11 @@ def write_tool(cm_fh: typing.IO[str], scope: Scope, *,
indent: int = 0) -> None:
tool_name = scope.TARGET
+ extra = ['BOOTSTRAP'] if 'force_bootstrap' in scope.get('CONFIG', []) else []
+
write_main_part(cm_fh, tool_name, 'Tool', 'add_qt_tool', scope,
- indent=indent, known_libraries={'Qt::Core', })
+ indent=indent, known_libraries={'Qt::Core', },
+ extra_lines=extra)
def write_test(cm_fh: typing.IO[str], scope: Scope, *,