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

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

Issue 2229613003: Hack to correctly sign frameworks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import argparse 5 import argparse
6 import fnmatch 6 import fnmatch
7 import glob 7 import glob
8 import os 8 import os
9 import plistlib 9 import plistlib
10 import shutil 10 import shutil
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 codesign_extra_args = [] 308 codesign_extra_args = []
309 if provisioning_profile: 309 if provisioning_profile:
310 temporary_entitlements_file = tempfile.NamedTemporaryFile(suffix='.xcent') 310 temporary_entitlements_file = tempfile.NamedTemporaryFile(suffix='.xcent')
311 codesign_extra_args.extend( 311 codesign_extra_args.extend(
312 ['--entitlements', temporary_entitlements_file.name]) 312 ['--entitlements', temporary_entitlements_file.name])
313 313
314 entitlements = GenerateEntitlements( 314 entitlements = GenerateEntitlements(
315 args.entitlements_path, provisioning_profile, bundle.identifier) 315 args.entitlements_path, provisioning_profile, bundle.identifier)
316 entitlements.WriteTo(temporary_entitlements_file.name) 316 entitlements.WriteTo(temporary_entitlements_file.name)
317 317
318 if args.path.endswith('framework'):
319 codesign_extra_args.extend(['--deep'])
320
318 CodeSignBundle(bundle.path, args.identity, codesign_extra_args) 321 CodeSignBundle(bundle.path, args.identity, codesign_extra_args)
319 322
320 323
321 class GenerateEntitlementsAction(Action): 324 class GenerateEntitlementsAction(Action):
322 325
323 """Class implementing the generate-entitlements action.""" 326 """Class implementing the generate-entitlements action."""
324 327
325 name = 'generate-entitlements' 328 name = 'generate-entitlements'
326 help = 'generate entitlements file' 329 help = 'generate entitlements file'
327 330
(...skipping 24 matching lines...) Expand all
352 355
353 for action in [ CodeSignBundleAction, GenerateEntitlementsAction ]: 356 for action in [ CodeSignBundleAction, GenerateEntitlementsAction ]:
354 action.Register(subparsers) 357 action.Register(subparsers)
355 358
356 args = parser.parse_args() 359 args = parser.parse_args()
357 args.func(args) 360 args.func(args)
358 361
359 362
360 if __name__ == '__main__': 363 if __name__ == '__main__':
361 sys.exit(Main()) 364 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698