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

Unified Diff: build/config/ios/ios_code_sign.py

Issue 1611363003: Add support for iOS application bundle to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-bundles
Patch Set: Filter .xcassets from the copy_bundle_data step Created 4 years, 11 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
Index: build/config/ios/ios_code_sign.py
diff --git a/build/config/ios/ios_code_sign.py b/build/config/ios/ios_code_sign.py
new file mode 100644
index 0000000000000000000000000000000000000000..c7e592f5c8f15d7fb09d888c4dd6e4105bea7152
--- /dev/null
+++ b/build/config/ios/ios_code_sign.py
@@ -0,0 +1,36 @@
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import argparse
+import subprocess
+import sys
+
+
+def PerformCodeSigning(args):
+ return subprocess.check_call([
+ 'xcrun',
+ 'codesign',
+ '--entitlements',
+ args.entitlements_path,
+ '--sign',
+ args.identity,
+ '-f',
+ args.application_path,
+ ])
+
+
+def main():
+ parser = argparse.ArgumentParser(
+ description='Code sign the specified application')
+ parser.add_argument('-p', dest='application_path', required=True,
+ help='The application path')
+ parser.add_argument('-i', dest='identity', required=True,
+ help='The code signing identity to use')
+ parser.add_argument('-e', dest='entitlements_path', required=True,
+ help='The path to the entitlements .xcent')
+ PerformCodeSigning(parser.parse_args())
+
+
+if __name__ == '__main__':
+ sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698