diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-27 15:23:20 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-27 15:23:20 +0100 |
commit | 7ef372b13fb6393b76029b9b62ebcb4166fa5f70 (patch) | |
tree | ac0d36f9287603903469dad67d914ce2b0d6ad82 /build_scripts/qp5_tool.py | |
parent | 491e85ef2bb7b39de39604b8e20f679c97a2981a (diff) | |
parent | a68153712324a3907ed664491fb193c4c75a8ab0 (diff) |
Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: I64cb93d53a2811ba695820501287902995140f9a
Diffstat (limited to 'build_scripts/qp5_tool.py')
-rw-r--r-- | build_scripts/qp5_tool.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/build_scripts/qp5_tool.py b/build_scripts/qp5_tool.py index 8d89cc66c..9fc37a99b 100644 --- a/build_scripts/qp5_tool.py +++ b/build_scripts/qp5_tool.py @@ -126,7 +126,10 @@ def which(needle): def command_log_string(args, dir): - return '[{}] {}'.format(os.path.basename(dir), ' '.join(args)) + result = '[{}]'.format(os.path.basename(dir)) + for arg in args: + result += ' "{}"'.format(arg) if ' ' in arg else ' {}'.format(arg) + return result def execute(args): @@ -290,7 +293,7 @@ def get_config_file(base_name): return config_file -def build(): +def build(target): """Run configure and build steps""" start_time = time.time() @@ -299,7 +302,7 @@ def build(): if not IS_WINDOWS and acceleration == Acceleration.INCREDIBUILD: arguments.append(INCREDIBUILD_CONSOLE) arguments.append('--avoid') # caching, v0.96.74 - arguments.extend([read_config_python_binary(), 'setup.py', 'install']) + arguments.extend([read_config_python_binary(), 'setup.py', target]) arguments.extend(read_config_build_arguments()) jobs = read_int_config(JOBS_KEY) if jobs > 1: @@ -349,6 +352,8 @@ def create_argument_parser(desc): parser.add_argument('--build', '-b', action='store_true', help='Build (configure + build)') parser.add_argument('--make', '-m', action='store_true', help='Make') + parser.add_argument('--no-install', '-n', action='store_true', + help='Run --build only, do not install') parser.add_argument('--Make', '-M', action='store_true', help='cmake + Make (continue broken build)') parser.add_argument('--test', '-t', action='store_true', @@ -412,7 +417,8 @@ if __name__ == '__main__': run_git(['pull', '--rebase']) if build_mode != BuildMode.NONE: - build() + target = 'build' if options.no_install else 'install' + build(target) if options.test: sys.exit(run_tests()) |