Meta: Add vcpkg command to ladybird.py

This commit is contained in:
Ashton 2025-05-20 05:11:18 -07:00 committed by Andrew Kaster
commit bfc0715455
Notes: github-actions[bot] 2025-05-21 17:36:39 +00:00

View file

@ -110,6 +110,9 @@ def main(platform):
subparsers.add_parser('install', help='Installs the target binary',
parents=[preset_parser, compiler_parser, target_parser])
subparsers.add_parser('vcpkg', help='Ensure that dependencies are available',
parents=[preset_parser, compiler_parser])
args = parser.parse_args()
kwargs = vars(args)
command = kwargs.pop('command', None)
@ -156,6 +159,9 @@ def main(platform):
_build_main(build_dir, **kwargs)
kwargs['target'] = 'install'
_build_main(build_dir, **kwargs)
elif command == 'vcpkg':
_configure_build_env(**kwargs)
_build_vcpkg()
def _configure_main(platform, **kwargs):