diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-11-11 19:31:31 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-11-12 10:13:24 +0000 |
commit | d7c4fa46ac3565a11787e5d12b3d190f54108ff9 (patch) | |
tree | b8218ba589efa62360c788937ecf53ecc2cf5a53 /util/cmake/run_pro2cmake.py | |
parent | c1e0e0adb2fb5c62f4d1677a85c677c57e2737f3 (diff) |
pro2cmake: Allow skipping subdirs projects via command line
Pass either --skip-subdirs-project to pro2cmake or
--skip-subdirs-projects to run_pro2cmake.
Change-Id: Ic444858f6fc6deb3c893782c0770993aa39d5579
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/run_pro2cmake.py')
-rwxr-xr-x | util/cmake/run_pro2cmake.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/cmake/run_pro2cmake.py b/util/cmake/run_pro2cmake.py index 7c38a8aef9..eaece147d2 100755 --- a/util/cmake/run_pro2cmake.py +++ b/util/cmake/run_pro2cmake.py @@ -60,6 +60,12 @@ def parse_command_line(): help="Run pro2cmake only on the main modules in qtbase.", ) parser.add_argument( + "--skip-subdirs-projects", + dest="skip_subdirs_projects", + action="store_true", + help="Don't run pro2cmake on TEMPLATE=subdirs projects.", + ) + parser.add_argument( "--is-example", dest="is_example", action="store_true", @@ -162,6 +168,8 @@ def run(all_files: typing.List[str], pro2cmake: str, args: argparse.Namespace) - pro2cmake_args.append(pro2cmake) if args.is_example: pro2cmake_args.append("--is-example") + if args.skip_subdirs_projects: + pro2cmake_args.append("--skip-subdirs-project") pro2cmake_args.append(os.path.basename(filename)) result = subprocess.run( pro2cmake_args, |