summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-10-14 11:12:47 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-10-14 09:14:59 +0000
commit665f75f1f112f948f8acfadc1d54b0df8c4211a4 (patch)
treeaa70b40742be7fdc32566f282a6c98fcbf924922 /util
parentd62a2797ae45d5a13ff3852cb322495a0e6d94a3 (diff)
Run blake on pro2cmake.py
Change-Id: I16cc7058f817d22e2c72fb6d42c472250a7e6cfb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 6c53a719e2..1c3648f718 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1227,7 +1227,11 @@ def map_condition(condition: str) -> str:
condition = unwrap_if(condition)
condition = re.sub(r"\bisEmpty\s*\((.*?)\)", r"\1_ISEMPTY", condition)
- condition = re.sub(r"\bcontains\s*\(\s*(?:QT_)?CONFIG\s*,\s*c\+\+(\d+)\)", r"cxx_std_\1 IN_LIST CMAKE_CXX_COMPILE_FEATURES", condition)
+ condition = re.sub(
+ r"\bcontains\s*\(\s*(?:QT_)?CONFIG\s*,\s*c\+\+(\d+)\)",
+ r"cxx_std_\1 IN_LIST CMAKE_CXX_COMPILE_FEATURES",
+ condition,
+ )
condition = re.sub(r'\bcontains\s*\((.*?),\s*"?(.*?)"?\)', r"\1___contains___\2", condition)
condition = re.sub(r'\bequals\s*\((.*?),\s*"?(.*?)"?\)', r"\1___equals___\2", condition)
condition = re.sub(r'\bisEqual\s*\((.*?),\s*"?(.*?)"?\)', r"\1___equals___\2", condition)
@@ -2780,7 +2784,9 @@ def write_example(
if not handling_first_scope:
target_sources = f"target_sources({binary_name} PUBLIC"
- write_all_source_file_lists(io_string, scope, target_sources, indent=indent, footer=")\n")
+ write_all_source_file_lists(
+ io_string, scope, target_sources, indent=indent, footer=")\n"
+ )
write_include_paths(
io_string,
@@ -2869,7 +2875,7 @@ def write_plugin(cm_fh, scope, *, indent: int = 0) -> str:
if target_path:
extra.append(f'INSTALL_DIRECTORY "{target_path}"')
else:
- extra.append('SKIP_INSTALL')
+ extra.append("SKIP_INSTALL")
plugin_class_name = scope.get_string("PLUGIN_CLASS_NAME")
if plugin_class_name: