• Home
  • Raw
  • Download

Lines Matching +full:platform +full:- +full:sdk +full:- +full:version

3 # Use of this source code is governed by a BSD-style license that can be
5 """Check out the Fuchsia SDK from a given GCS path. Should be used in a
13 import platform
29 host_arch = platform.machine()
30 # platform.machine() returns AMD64 on 64-bit Windows.
38 def GetSDKOverrideGCSPath(path: Optional[str] = None) -> Optional[str]:
39 """Fetches the sdk override path from a file.
47 Example: gs://fuchsia-artifacts/development/some-id/sdk
59 def _GetTarballPath(gcs_tarball_prefix: str) -> str:
60 """Get the full path to the sdk tarball on GCS"""
61 platform = get_host_os()
63 return f'{gcs_tarball_prefix}/{platform}-{arch}/core.tar.gz'
68 parser.add_argument('--cipd-prefix', help='CIPD base directory for the SDK.')
69 parser.add_argument('--version', help='Specifies the SDK version.')
70 parser.add_argument('--verbose',
71 '-v',
73 help='Enable debug-level logging.')
78 # Exit if there's no SDK support for this platform.
82 logging.warning('Fuchsia SDK is not supported on this platform.')
86 new_version = gcs_tarball_prefix if gcs_tarball_prefix else args.version
99 parser.exit(1, '--cipd-prefix must be specified.')
100 if not args.version:
101 parser.exit(2, '--version must be specified.')
102 logging.info('Downloading SDK from CIPD...')
103 ensure_file = '%s%s-%s %s' % (args.cipd_prefix, host_plat, _GetHostArch(),
104 args.version)
105 subprocess.run(('cipd', 'ensure', '-ensure-file', '-', '-root', SDK_ROOT,
106 '-log-level', 'warning'),
111 logging.info('Downloading SDK from GCS...')
115 # Build rules (e.g. fidl_library()) depend on updates to the top-level
116 # manifest to spot when to rebuild for an SDK update. Ensure that ninja
117 # sees that the SDK manifest has changed, regardless of the mtime set by