summaryrefslogtreecommitdiffstats
path: root/build/mac
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 01:05:20 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 01:05:20 +0000
commit21580a91c801373e2480ff027c490a3b56d1fa32 (patch)
treef1e93b930030fc95c16c95ec68ef6f5d14167c4f /build/mac
parent918056e5e68dea9ca680c3969afd79dc4e8462dd (diff)
downloadchromium_src-21580a91c801373e2480ff027c490a3b56d1fa32.zip
chromium_src-21580a91c801373e2480ff027c490a3b56d1fa32.tar.gz
chromium_src-21580a91c801373e2480ff027c490a3b56d1fa32.tar.bz2
Get the proper Mac SDK path for the GN build.
This gets the path from xcodebuild rather than hardcoding it in the .gn files. R=thakis BUG= Review URL: https://codereview.chromium.org/136793020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rwxr-xr-xbuild/mac/find_sdk.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/mac/find_sdk.py b/build/mac/find_sdk.py
index 067be63..1d76343 100755
--- a/build/mac/find_sdk.py
+++ b/build/mac/find_sdk.py
@@ -31,6 +31,9 @@ def main():
parser.add_option("--sdk_path",
action="store", type="string", dest="sdk_path", default="",
help="user-specified SDK path; bypasses verification")
+ parser.add_option("--print_sdk_path",
+ action="store_true", dest="print_sdk_path", default=False,
+ help="Additionaly print the path the SDK (appears first).")
(options, args) = parser.parse_args()
min_sdk_version = args[0]
@@ -73,6 +76,10 @@ def main():
print >>sys.stderr, ''
return min_sdk_version
+ if options.print_sdk_path:
+ print subprocess.check_output(['xcodebuild', '-version', '-sdk',
+ 'macosx' + best_sdk, 'Path']).strip()
+
return best_sdk