summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-04-06 09:42:01 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-04-06 11:00:53 +0200
commit9b21dbbd7909678117649c68ac5137a74dc54667 (patch)
tree7a6cb874c90baff0fc089fb3cd691d872ca29a34 /util/cmake/pro2cmake.py
parentd64a7c9f5ac1ec0d11ed7cf99c10f84185d821a8 (diff)
CMake: Reformat python scripts
Change-Id: I1dfac318cdbbc4b4b7c76b113edca7db8f52f56b Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index d6d328a817..c64f7f5b56 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -189,7 +189,7 @@ def _parse_commandline():
dest="output_file",
type=str,
help="Specify a file path where the generated content should be written to."
- "Default is to write to CMakeLists.txt in the same directory as the .pro file.",
+ "Default is to write to CMakeLists.txt in the same directory as the .pro file.",
)
parser.add_argument(
@@ -201,11 +201,13 @@ def _parse_commandline():
)
return parser.parse_args()
+
def get_top_level_repo_project_path(project_file_path: str = "") -> str:
qmake_conf_path = find_qmake_conf(project_file_path)
qmake_conf_dir_path = os.path.dirname(qmake_conf_path)
return qmake_conf_dir_path
+
def is_top_level_repo_project(project_file_path: str = "") -> bool:
qmake_conf_path = find_qmake_conf(project_file_path)
qmake_conf_dir_path = os.path.dirname(qmake_conf_path)
@@ -3689,7 +3691,8 @@ def write_qml_plugin_epilogue(
cm_fh.write(
f"{indent_0}set_source_files_properties({qml_file} PROPERTIES\n"
f"{indent_1}QT_QML_SKIP_QMLDIR_ENTRY TRUE\n"
- f"{indent_0})\n")
+ f"{indent_0})\n"
+ )
cm_fh.write(
f"\n{indent_0}qt6_target_qml_files({target}\n{indent_1}FILES\n"