Re-land: C++ readability review
[chromium-blink-merge.git] / build / config / ios / ios_sdk.py
blobdfec4dbada9d88d80e3fe5167ec1b43a826e2beb
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import subprocess
6 import sys
8 # This script returns the path to the SDK of the given type. Pass the type of
9 # SDK you want, which is typically "iphone" or "iphonesimulator".
11 # In the GYP build, this is done inside GYP itself based on the SDKROOT
12 # variable.
14 if len(sys.argv) != 2:
15 print "Takes one arg (SDK to find)"
16 sys.exit(1)
18 print subprocess.check_output(['xcodebuild', '-version', '-sdk',
19 sys.argv[1], 'Path']).strip()