diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2025-12-02 14:30:59 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2025-12-04 09:27:45 +0000 |
| commit | 8a212cce0c13bc0e37e44924817366c3ab8112bc (patch) | |
| tree | 9e6ae431f2337ee36baf05c10bd1a64dd4100597 /scripts/build.py | |
| parent | cc643182dfaba9239847e9a2ca0ac5fcefdba650 (diff) | |
build.py: Add an option to create additional archive for cmdbridge
The cmdbridge executables are part of the qtcreator.7z,
but it is interesting to have them available separately for download
(e.g. for people who for some reason have a Qt Creator configured without
golang and therefore no cmdbridges)
Change-Id: I6e37915559e6f1f801fc1a55891889b3a47eb850
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'scripts/build.py')
| -rwxr-xr-x | scripts/build.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build.py b/scripts/build.py index fab0b2b1152..74c9bae1d2c 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -73,6 +73,8 @@ def get_arguments(): parser.add_argument('--with-sdk-tool', help='Includes the sdktool in the Qt Creator build. ' 'If you want a independent, standalone, static build of sdktool, use build_sdktool.py instead.', action='store_true', default=False) + parser.add_argument('--with-extra-cmdbridge', help='Creates a separate archive with the cmdbridge, in addition to ' + 'including it in the Qt Creator package.', action='store_true', default=False) parser.add_argument('--add-path', help='Prepends a CMAKE_PREFIX_PATH to the build', action='append', dest='prefix_paths', default=[]) parser.add_argument('--add-module-path', help='Prepends a CMAKE_MODULE_PATH to the build', @@ -302,6 +304,17 @@ def package_qtcreator(args, paths): + [os.path.join(paths.result, 'qtcreator' + args.zip_infix + '-debug.7z'), '*'], paths.debug_install) + if args.with_extra_cmdbridge: + if common.is_linux_platform(): + cmdbridge_dir = os.path.join(paths.install, 'libexec', 'qtcreator') + elif common.is_windows_platform(): + cmdbridge_dir = os.path.join(paths.install, 'bin') + else: + cmdbridge_dir = os.path.join(paths.install, 'Qt Creator.app', 'Contents', 'Resources', 'libexec') + common.check_print_call(zip + + [os.path.join(paths.result, 'cmdbridge' + args.zip_infix + '.7z'), + 'cmdbridge-*'], + cmdbridge_dir) if common.is_windows_platform(): common.check_print_call(zip + [os.path.join(paths.result, 'wininterrupt' + args.zip_infix + '.7z'), |
