Chromium Code Reviews| Index: pylib/gyp/xcode_ninja.py |
| diff --git a/pylib/gyp/xcode_ninja.py b/pylib/gyp/xcode_ninja.py |
| index 2a89fa9815c5ceec790262d5d9d4d40f01c4761c..0bcfd0e8a3917495617f0b609084f5a8d05b2cb2 100644 |
| --- a/pylib/gyp/xcode_ninja.py |
| +++ b/pylib/gyp/xcode_ninja.py |
| @@ -80,11 +80,13 @@ def _TargetFromSpec(old_spec, params): |
| if 'configurations' in old_spec: |
| for config in old_spec['configurations'].iterkeys(): |
| - old_xcode_settings = old_spec['configurations'][config]['xcode_settings'] |
| - if 'IPHONEOS_DEPLOYMENT_TARGET' in old_xcode_settings: |
| - new_xcode_settings['CODE_SIGNING_REQUIRED'] = "NO" |
| - new_xcode_settings['IPHONEOS_DEPLOYMENT_TARGET'] = \ |
| - old_xcode_settings['IPHONEOS_DEPLOYMENT_TARGET'] |
| + if 'xcode_settings' in old_spec['configurations'][config]: |
|
sdefresne
2014/07/30 12:07:27
nit: you could use instead the following and leave
|
| + old_xcode_settings = \ |
| + old_spec['configurations'][config]['xcode_settings'] |
| + if 'IPHONEOS_DEPLOYMENT_TARGET' in old_xcode_settings: |
| + new_xcode_settings['CODE_SIGNING_REQUIRED'] = "NO" |
| + new_xcode_settings['IPHONEOS_DEPLOYMENT_TARGET'] = \ |
| + old_xcode_settings['IPHONEOS_DEPLOYMENT_TARGET'] |
| ninja_target['configurations'][config] = {} |
| ninja_target['configurations'][config]['xcode_settings'] = \ |
| new_xcode_settings |