| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 'grit_base_dir': '<(SHARED_INTERMEDIATE_DIR)', | 8 'grit_base_dir': '<(SHARED_INTERMEDIATE_DIR)', |
| 9 'grit_out_dir': '<(grit_base_dir)/ios/today_extension', | 9 'grit_out_dir': '<(grit_base_dir)/ios/share_extension', |
| 10 }, | 10 }, |
| 11 'targets': [ | 11 'targets': [ |
| 12 { | 12 { |
| 13 'target_name': 'ios_today_extension_resources', | 13 'target_name': 'ios_share_extension_resources', |
| 14 'type': 'none', | 14 'type': 'none', |
| 15 'dependencies': [ | 15 'dependencies': [ |
| 16 'ios_today_extension_strings_gen', | 16 'ios_share_extension_strings_gen', |
| 17 ], | 17 ], |
| 18 }, | 18 }, |
| 19 { | 19 { |
| 20 'target_name': 'ios_today_extension_strings_gen', | 20 'target_name': 'ios_share_extension_strings_gen', |
| 21 'type': 'none', | 21 'type': 'none', |
| 22 'hard_dependency': 1, | 22 'hard_dependency': 1, |
| 23 'actions': [ | 23 'actions': [ |
| 24 { | 24 { |
| 25 'action_name': 'generate_ios_today_extension_strings', | 25 'action_name': 'generate_ios_share_extension_strings', |
| 26 'variables': { | 26 'variables': { |
| 27 'grit_grd_file': 'today_extension/strings/ios_today_extension_string
s.grd', | 27 'grit_grd_file': 'share_extension/strings/ios_share_extension_string
s.grd', |
| 28 }, | 28 }, |
| 29 'includes': [ '../../build/grit_action.gypi' ], | 29 'includes': [ '../../build/grit_action.gypi' ], |
| 30 }, | 30 }, |
| 31 ], | 31 ], |
| 32 'includes': [ '../../build/grit_target.gypi' ], | 32 'includes': [ '../../build/grit_target.gypi' ], |
| 33 # Override the exported include-dirs; ios/chrome/grit/ios_*strings.h | 33 # Override the exported include-dirs; ios/chrome/grit/ios_*strings.h |
| 34 # should only be referenceable as ios/chrome/grit to allow DEPS-time | 34 # should only be referenceable as ios/chrome/grit to allow DEPS-time |
| 35 # checking of usage. | 35 # checking of usage. |
| 36 'direct_dependent_settings': { | 36 'direct_dependent_settings': { |
| 37 'include_dirs': [ | 37 'include_dirs': [ |
| 38 '<(grit_base_dir)', | 38 '<(grit_base_dir)', |
| 39 ], | 39 ], |
| 40 'include_dirs!': [ | 40 'include_dirs!': [ |
| 41 '<(grit_out_dir)', | 41 '<(grit_out_dir)', |
| 42 ], | 42 ], |
| 43 } | 43 } |
| 44 }, | 44 }, |
| 45 { | 45 { |
| 46 'target_name': 'ios_today_extension_packed_resources', | 46 'target_name': 'ios_share_extension_packed_resources', |
| 47 'type': 'none', | 47 'type': 'none', |
| 48 'dependencies': [ | 48 'dependencies': [ |
| 49 'ios_today_extension_resources', | 49 'ios_share_extension_resources', |
| 50 ], | 50 ], |
| 51 'actions': [ | 51 'actions': [ |
| 52 { | 52 { |
| 53 'action_name': 'repack_ios_today_extension_locales', | 53 'action_name': 'repack_ios_share_extension_locales', |
| 54 'variables': { | 54 'variables': { |
| 55 'repack_locales_path': 'tools/build/ios_repack_today_extension_local
es.py', | 55 'repack_locales_path': 'tools/build/ios_repack_extension_locales.py'
, |
| 56 }, | 56 }, |
| 57 'inputs': [ | 57 'inputs': [ |
| 58 'tools/build/ios_repack_today_extension_locales.py', | 58 'tools/build/ios_repack_extension_locales.py', |
| 59 '<!@pymod_do_main(ios_repack_today_extension_locales -i ' | 59 '<!@pymod_do_main(ios_repack_extension_locales -i ' |
| 60 '-n share_extension ' |
| 60 '-s <(SHARED_INTERMEDIATE_DIR) ' | 61 '-s <(SHARED_INTERMEDIATE_DIR) ' |
| 61 '-x <(SHARED_INTERMEDIATE_DIR)/repack_today_extension ' | 62 '-x <(SHARED_INTERMEDIATE_DIR)/repack_share_extension ' |
| 62 '-b <(branding_path_component) ' | 63 '-b <(branding_path_component) ' |
| 63 '<(locales))' | 64 '<(locales))' |
| 64 ], | 65 ], |
| 65 'outputs': [ | 66 'outputs': [ |
| 66 '<!@pymod_do_main(ios_repack_today_extension_locales -o ' | 67 '<!@pymod_do_main(ios_repack_extension_locales -o ' |
| 68 '-n share_extension ' |
| 67 '-s <(SHARED_INTERMEDIATE_DIR) ' | 69 '-s <(SHARED_INTERMEDIATE_DIR) ' |
| 68 '-x <(SHARED_INTERMEDIATE_DIR)/repack_today_extension ' | 70 '-x <(SHARED_INTERMEDIATE_DIR)/repack_share_extension ' |
| 69 '<(locales))' | 71 '<(locales))' |
| 70 ], | 72 ], |
| 71 'action': [ | 73 'action': [ |
| 72 'python', | 74 'python', |
| 73 'tools/build/ios_repack_today_extension_locales.py', | 75 'tools/build/ios_repack_extension_locales.py', |
| 74 '-x', '<(SHARED_INTERMEDIATE_DIR)/repack_today_extension', | 76 '-n', 'share_extension', |
| 77 '-x', '<(SHARED_INTERMEDIATE_DIR)/repack_share_extension', |
| 75 '-s', '<(SHARED_INTERMEDIATE_DIR)', | 78 '-s', '<(SHARED_INTERMEDIATE_DIR)', |
| 76 '-b', '<(branding_path_component)', | 79 '-b', '<(branding_path_component)', |
| 77 '<@(locales)', | 80 '<@(locales)', |
| 78 ], | 81 ], |
| 79 }, | 82 }, |
| 80 ], | 83 ], |
| 81 }, | 84 }, |
| 82 ], | 85 ], |
| 83 } | 86 } |
| 84 | 87 |
| OLD | NEW |