Chromium Code Reviews| Index: pylib/gyp/generator/xcode.py |
| diff --git a/pylib/gyp/generator/xcode.py b/pylib/gyp/generator/xcode.py |
| index f39f20209a364387dd2d611e715149b5dcf7ee4c..5ffd288eb8940770b8af08cf87ddbf4de833b1c9 100644 |
| --- a/pylib/gyp/generator/xcode.py |
| +++ b/pylib/gyp/generator/xcode.py |
| @@ -69,6 +69,8 @@ generator_additional_path_sections = [ |
| # The Xcode-specific keys that exist on targets and aren't moved down to |
| # configurations. |
| generator_additional_non_configuration_keys = [ |
| + 'ios_watchkit_extension', |
| + 'ios_watch_app', |
|
justincohen
2014/11/26 20:12:04
sort
|
| 'ios_app_extension', |
| 'mac_bundle', |
| 'mac_bundle_resources', |
| @@ -654,6 +656,9 @@ def GenerateOutput(target_list, target_dicts, data, params): |
| 'loadable_module+xctest': 'com.apple.product-type.bundle.unit-test', |
| 'shared_library+bundle': 'com.apple.product-type.framework', |
| 'executable+extension+bundle': 'com.apple.product-type.app-extension', |
| + 'executable+watch+extension+bundle': |
| + 'com.apple.product-type.watchkit-extension', |
| + 'executable+watch+bundle': 'com.apple.product-type.application.watchapp', |
| } |
| target_properties = { |
| @@ -664,7 +669,9 @@ def GenerateOutput(target_list, target_dicts, data, params): |
| type = spec['type'] |
| is_xctest = int(spec.get('mac_xctest_bundle', 0)) |
| is_bundle = int(spec.get('mac_bundle', 0)) or is_xctest |
| - is_extension = int(spec.get('ios_app_extension', 0)) |
| + is_app_extension = int(spec.get('ios_app_extension', 0)) |
| + is_watchkit_extension = int(spec.get('ios_watchkit_extension', 0)) |
| + is_watch_app = int(spec.get('ios_watch_app', 0)) |
| if type != 'none': |
| type_bundle_key = type |
| if is_xctest: |
| @@ -672,10 +679,18 @@ def GenerateOutput(target_list, target_dicts, data, params): |
| assert type == 'loadable_module', ( |
| 'mac_xctest_bundle targets must have type loadable_module ' |
| '(target %s)' % target_name) |
| - elif is_extension: |
| + elif is_app_extension: |
| assert is_bundle, ('ios_app_extension flag requires mac_bundle ' |
| '(target %s)' % target_name) |
| type_bundle_key += '+extension+bundle' |
| + elif is_watchkit_extension: |
| + assert is_bundle, ('ios_watchkit_extension flag requires mac_bundle ' |
| + '(target %s)' % target_name) |
| + type_bundle_key += '+watch+extension+bundle' |
| + elif is_watch_app: |
| + assert is_bundle, ('ios_watch_app flag requires mac_bundle ' |
| + '(target %s)' % target_name) |
| + type_bundle_key += '+watch+bundle' |
| elif is_bundle: |
| type_bundle_key += '+bundle' |