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 r"""Prints the lowest locally available SDK version greater than or equal to a
6 given minimum sdk version to standard output.
8 If --print_sdk_path is passed, then the script will also print the SDK path.
9 If --print_bin_path is passed, then the script will also print the path to the
14 [--print_sdk_path] \
15 [--print_bin_path] \
19 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
48 parser.add_option("--print_sdk_path",
50 help="Additionally print the path the SDK (appears first).")
51 parser.add_option("--print_bin_path",
54 parser.add_option("--print_sdk_build",
56 help="Additionally print the build version of the SDK.")
59 parser.error('Please specify a minimum SDK version')
63 job = subprocess.Popen(['xcode-select', '-print-path'],
70 raise Exception('Error %d running xcode-select' % job.returncode)
71 dev_dir = out.decode('UTF-8').rstrip()
73 dev_dir, 'Platforms/MacOSX.platform/Developer/SDKs')
77 'agreement, and run `sudo xcode-select -s /path/to/Xcode.app` ' +
79 sdks = [re.findall('^MacOSX(\d+\.\d+)\.sdk$', s) for s in os.listdir(sdk_dir)]
84 raise Exception('No %s+ SDK found' % min_sdk_version)
86 sdk_name = 'MacOSX' + best_sdk + '.sdk'
103 'for SDK at path %s' % system_version_plist)
110 if sys.platform != 'darwin':