summaryrefslogtreecommitdiffstats
path: root/util/cmake/configurejson2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <[email protected]>2019-09-21 20:09:36 +0200
committerAlexandru Croitor <[email protected]>2019-09-22 10:29:01 +0000
commitd6bbf6944ce212a900c39a5f03c724c74bfba23a (patch)
tree45b26ece85dd686710c51a42474ae224e641e446 /util/cmake/configurejson2cmake.py
parentd71609610abbd628ef671b9b8577522eed9203e2 (diff)
Reformat python files using black
Change-Id: I0cc8ed89e2057b65f4fa34294eccffae642f2c73 Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'util/cmake/configurejson2cmake.py')
-rwxr-xr-xutil/cmake/configurejson2cmake.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 51d89d56abc..33e37ded4b2 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -128,8 +128,7 @@ def map_tests(test: str) -> str:
"reduce_exports": "CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY",
"libinput_axis_api": "ON",
"xlib": "X11_FOUND",
-
- 'wayland-scanner': 'WaylandScanner_FOUND',
+ "wayland-scanner": "WaylandScanner_FOUND",
}
if test in testmap:
return testmap.get(test, None)
@@ -516,16 +515,18 @@ def parseTest(ctx, test, data, cm_fh):
details = data["test"]
if isinstance(details, str):
- if not ctx['test_dir']:
+ if not ctx["test_dir"]:
print(f" XXXX UNHANDLED TEST SUB-TYPE {details} in test description")
return
- cm_fh.write(f"""
+ cm_fh.write(
+ f"""
if(EXISTS "${{CMAKE_CURRENT_SOURCE_DIR}}/{ctx['test_dir']}/{data['test']}/CMakeLists.txt")
qt_config_compile_test("{data['test']}"
PROJECT_PATH "${{CMAKE_CURRENT_SOURCE_DIR}}/{ctx['test_dir']}/{data['test']}")
endif()
-""")
+"""
+ )
return
head = details.get("head", "")