Lines Matching +full:xcode +full:- +full:version
3 # Use of this source code is governed by a BSD-style license that can be
21 def SplitVersion(version): argument
22 """Splits the Xcode version to 3 values.
31 version = version.split('.')
32 return itertools.islice(itertools.chain(version, itertools.repeat('0')), 0, 3)
35 def FormatVersion(version): argument
36 """Converts Xcode version to a format required for DTXcode in Info.plist
45 major, minor, patch = SplitVersion(version)
50 """Fills the Xcode version and build number into |settings|."""
53 'Contents/version.plist')
63 '-version']).decode('UTF-8').splitlines()
64 settings['xcode_version'] = FormatVersion(lines[0].split()[-1])
66 settings['xcode_build'] = lines[-1].split()[-1]
71 machine_os_build = subprocess.check_output(['sw_vers', '-buildVersion'
72 ]).decode('UTF-8').strip()
77 """Fills the SDK path and version for |platform| into |settings|."""
79 ['xcrun', '-sdk', platform, '--show-sdk-path']).decode('UTF-8').strip()
81 ['xcrun', '-sdk', platform,
82 '--show-sdk-version']).decode('UTF-8').strip()
84 ['xcrun', '-sdk', platform,
85 '--show-sdk-platform-path']).decode('UTF-8').strip()
87 ['xcrun', '-sdk', platform,
88 '--show-sdk-build-version']).decode('UTF-8').strip()
90 subprocess.check_output(['xcode-select',
91 '-print-path']).decode('UTF-8').strip(),
96 """Create symlink to Xcode directory at target location."""
120 parser.add_argument('--developer_dir')
121 parser.add_argument('--get_sdk_info',
124 help='Returns SDK info in addition to xcode info.')
125 parser.add_argument('--get_machine_info',
128 help='Returns machine info in addition to xcode info.')
129 parser.add_argument('--create_symlink_at',
133 parser.add_argument('--root_build_dir',