Handle the new cmdline config feature in pro2cmake
cmdline implies console, so use that also to determine if a binary should get a GUI flag. Change-Id: I084e0a45785df96a7dc2c101af5305fbb39efbc3 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
826821658d
commit
846adfe079
@ -1624,7 +1624,8 @@ def handle_app_or_lib(scope: Scope, cm_fh: typing.IO[str], *,
|
||||
assert not is_example
|
||||
write_test(cm_fh, scope, indent=indent)
|
||||
else:
|
||||
gui = 'console' not in scope.get('CONFIG')
|
||||
config = scope.get('CONFIG')
|
||||
gui = all(val not in config for val in ['console', 'cmdline'])
|
||||
if is_example:
|
||||
write_example(cm_fh, scope, gui, indent=indent)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user