mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Meta: Add install command to ladybird.py
This commit is contained in:
parent
73159fe2ce
commit
5602d3cdf1
Notes:
github-actions[bot]
2025-05-21 17:36:51 +00:00
Author: https://github.com/ayeteadoe
Commit: 5602d3cdf1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4742
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/trflynn89
1 changed files with 8 additions and 0 deletions
|
@ -96,6 +96,9 @@ def main(platform):
|
|||
run_parser.add_argument('args', nargs=argparse.REMAINDER,
|
||||
help='Additional arguments passed through to the application')
|
||||
|
||||
subparsers.add_parser('install', help='Installs the target binary',
|
||||
parents=[preset_parser, compiler_parser, target_parser])
|
||||
|
||||
args = parser.parse_args()
|
||||
kwargs = vars(args)
|
||||
command = kwargs.pop('command', None)
|
||||
|
@ -133,6 +136,11 @@ def main(platform):
|
|||
build_dir = _configure_main(platform, **kwargs)
|
||||
_build_main(build_dir, **kwargs)
|
||||
_run_main(platform.host_system, build_dir, **kwargs)
|
||||
elif command == 'install':
|
||||
build_dir = _configure_main(platform, **kwargs)
|
||||
_build_main(build_dir, **kwargs)
|
||||
kwargs['target'] = 'install'
|
||||
_build_main(build_dir, **kwargs)
|
||||
|
||||
|
||||
def _configure_main(platform, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue