| OLD | NEW |
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. 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 """ | 5 """ |
| 6 This module contains classes that help to emulate xcodebuild behavior on top of | 6 This module contains classes that help to emulate xcodebuild behavior on top of |
| 7 other build systems, such as make and ninja. | 7 other build systems, such as make and ninja. |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import copy | 10 import copy |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 if not key: | 1002 if not key: |
| 1003 return [] | 1003 return [] |
| 1004 | 1004 |
| 1005 # Warn for any unimplemented signing xcode keys. | 1005 # Warn for any unimplemented signing xcode keys. |
| 1006 unimpl = ['OTHER_CODE_SIGN_FLAGS'] | 1006 unimpl = ['OTHER_CODE_SIGN_FLAGS'] |
| 1007 unimpl = set(unimpl) & set(self.xcode_settings[configname].keys()) | 1007 unimpl = set(unimpl) & set(self.xcode_settings[configname].keys()) |
| 1008 if unimpl: | 1008 if unimpl: |
| 1009 print 'Warning: Some codesign keys not implemented, ignoring: %s' % ( | 1009 print 'Warning: Some codesign keys not implemented, ignoring: %s' % ( |
| 1010 ', '.join(sorted(unimpl))) | 1010 ', '.join(sorted(unimpl))) |
| 1011 | 1011 |
| 1012 return ['%s code-sign-bundle "%s" "%s" "%s" "%s"' % ( | 1012 return ['%s code-sign-bundle "%s" "%s" "%s"' % ( |
| 1013 os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key, | 1013 os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key, |
| 1014 settings.get('CODE_SIGN_RESOURCE_RULES_PATH', ''), | |
| 1015 settings.get('CODE_SIGN_ENTITLEMENTS', ''), | 1014 settings.get('CODE_SIGN_ENTITLEMENTS', ''), |
| 1016 settings.get('PROVISIONING_PROFILE', '')) | 1015 settings.get('PROVISIONING_PROFILE', '')) |
| 1017 ] | 1016 ] |
| 1018 | 1017 |
| 1019 def _GetIOSCodeSignIdentityKey(self, settings): | 1018 def _GetIOSCodeSignIdentityKey(self, settings): |
| 1020 identity = settings.get('CODE_SIGN_IDENTITY') | 1019 identity = settings.get('CODE_SIGN_IDENTITY') |
| 1021 if not identity: | 1020 if not identity: |
| 1022 return None | 1021 return None |
| 1023 if identity not in XcodeSettings._codesigning_key_cache: | 1022 if identity not in XcodeSettings._codesigning_key_cache: |
| 1024 output = subprocess.check_output( | 1023 output = subprocess.check_output( |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1642 if toolset == 'target': | 1641 if toolset == 'target': |
| 1643 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' | 1642 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' |
| 1644 return targets | 1643 return targets |
| 1645 | 1644 |
| 1646 def CloneConfigurationForDeviceAndEmulator(target_dicts): | 1645 def CloneConfigurationForDeviceAndEmulator(target_dicts): |
| 1647 """If |target_dicts| contains any iOS targets, automatically create -iphoneos | 1646 """If |target_dicts| contains any iOS targets, automatically create -iphoneos |
| 1648 targets for iOS device builds.""" | 1647 targets for iOS device builds.""" |
| 1649 if _HasIOSTarget(target_dicts): | 1648 if _HasIOSTarget(target_dicts): |
| 1650 return _AddIOSDeviceConfigurations(target_dicts) | 1649 return _AddIOSDeviceConfigurations(target_dicts) |
| 1651 return target_dicts | 1650 return target_dicts |
| OLD | NEW |