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>
This commit is contained in:
parent
3c9d7dfb30
commit
363eccf010
@ -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, *,
|
||||
|
Loading…
Reference in New Issue
Block a user