Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1235)

Unified Diff: chrome/tools/build/mac/copy_keystone_framework.py

Issue 2403583002: More changes to support hermetic Xcode toolchain in GN. (Closed)
Patch Set: Comments from thakis. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/BUILD.gn ('k') | third_party/WebKit/Source/build/scripts/gperf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/mac/copy_keystone_framework.py
diff --git a/chrome/tools/build/mac/copy_keystone_framework.py b/chrome/tools/build/mac/copy_keystone_framework.py
index b43893bf8aa7847375a04c421d849f2dde69a4d3..513fdc9118a1144d81839b8f9d5ad25e408f295d 100644
--- a/chrome/tools/build/mac/copy_keystone_framework.py
+++ b/chrome/tools/build/mac/copy_keystone_framework.py
@@ -2,21 +2,25 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import os
import os.path
import shutil
import subprocess
import sys
# Usage: python copy_keystone_framework.py /path/to/input /path/to/output
+# [DEVELOPER_DIR]
#
# This script copies the KeystoneRegistration.framework, removing its
# versioned directory structure, thinning it to just x86_64, and deleting
# the Headers directory.
def Main(args):
- if len(args) != 3:
+ if len(args) != 3 and len(args) != 4:
print >> sys.stderr, '%s: /path/to/input /path/to/output' % (args[0],)
return 1
+ if len(args) == 4:
+ os.environ['DEVELOPER_DIR'] = args[3]
# Delete any old copies of the framework.
output_path = os.path.join(args[2], 'KeystoneRegistration.framework')
« no previous file with comments | « chrome/BUILD.gn ('k') | third_party/WebKit/Source/build/scripts/gperf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698