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

Side by Side Diff: build/config/ios/ios_code_sign.py

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base_unittests builds and pass all tests with GN 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2015 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.
4
5 import argparse
6 import errno
7 import os
8 import subprocess
9 import sys
10
11
12 def PerformCodeSigning(args):
13 return subprocess.check_call([
14 '/usr/bin/env',
15 'xcrun',
16 'codesign',
17 '--entitlements',
18 args.entitlements_path,
19 '--sign',
20 args.identity,
21 '-f',
22 args.application_path,
23 ])
24
25
26 def main():
27 parser = argparse.ArgumentParser(
28 description='Code sign the specified application')
29 parser.add_argument('-p', dest='application_path', required=True,
30 help='The application path')
31 parser.add_argument('-i', dest='identity', required=True,
32 help='The code signing identity to use')
33 parser.add_argument('-e', dest='entitlements_path', required=True,
34 help='The path to the entitlements .xcent')
35 PerformCodeSigning(parser.parse_args())
36
37
38 if __name__ == '__main__':
39 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698