Skip to content

Commit ecfa49f

Browse files
committed
option to run just vcpkg step
1 parent 9ccee4b commit ecfa49f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/gha/build_desktop.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ def main():
202202
args.msvc_runtime_library,
203203
attempt_auto_fix=False)
204204

205+
if args.vcpkg_step_only:
206+
print("Exiting without building the SDK as just vcpkg step was requested.")
207+
return
208+
205209
# CMake configure
206210
cmake_configure(args.build_dir, args.arch, args.msvc_runtime_library,
207211
args.build_tests, args.config, args.target_format)
@@ -239,6 +243,7 @@ def parse_cmdline_args():
239243
help='Runtime library for MSVC (static(/MT) or dynamic(/MD)')
240244
parser.add_argument('--build_dir', default='build', help='Output build directory')
241245
parser.add_argument('--build_tests', action='store_true', help='Build unit tests too')
246+
parser.add_argument('--vcpkg_step_only', action='store_true', help='Just install cpp packages using vcpkg and exit.')
242247
parser.add_argument('--config', default='Release', help='Release/Debug config')
243248
parser.add_argument('--target', nargs='+', help='A list of CMake build targets (eg: firebase_app firebase_auth)')
244249
parser.add_argument('--target_format', default=None, help='(Mac only) whether to output frameworks (default) or libraries.')

0 commit comments

Comments
 (0)