diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-09-24 10:57:54 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-09-24 09:57:19 +0000 |
commit | 0441e3743e7d2d7e809903ad5dec9e72f5317dea (patch) | |
tree | 745613424719b3a855f8d7515c1dec65c3f36566 | |
parent | 1d5e8996b0551633674d5f68c5d103ea7b3b9587 (diff) |
pro2cmake: Don't generate GUI applications for config.tests
On macOS the config.tests executable should not be a bundle,
and on Windows it should be a subsystem console application.
Change-Id: I2c8078cc9537df42683f3ff3bcce409402824555
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rwxr-xr-x | util/cmake/pro2cmake.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index edd1b90caf..f149898ae5 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -3296,14 +3296,8 @@ def handle_config_test_project(scope: Scope, cm_fh: IO[str]): # Remove default QT libs. scope._append_operation("QT", RemoveOperation(["core", "gui"])) - config = scope.get("CONFIG") - gui = all(val not in config for val in ["console", "cmdline"]) - add_target = f"add_executable(${{PROJECT_NAME}}" - if gui: - add_target += " WIN32 MACOSX_BUNDLE" - temp_buffer = io.StringIO() write_all_source_file_lists(temp_buffer, scope, add_target, indent=0) buffer_value = temp_buffer.getvalue() |