Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / ios_chrome_resources.gyp
blobfa003623a386ae1e55e25aa677cd241a931735fb
1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8     'grit_base_dir': '<(SHARED_INTERMEDIATE_DIR)',
9     'grit_out_dir': '<(grit_base_dir)/ios/chrome',
10   },
11   'targets': [
12     {
13       'target_name': 'ios_chrome_resources',
14       'type': 'none',
15       'dependencies': [
16         'ios_strings_resources_gen',
17         'ios_theme_resources_gen',
18       ],
19     },
20     {
21       'target_name': 'ios_strings_resources_gen',
22       'type': 'none',
23       'hard_dependency': 1,
24       'actions': [
25         {
26           'action_name': 'ios_strings_resources',
27           'variables': {
28             'grit_whitelist': '',
29             'grit_grd_file': 'app/strings/ios_strings_resources.grd',
30           },
31           'includes': [ '../../build/grit_action.gypi' ],
32         },
33       ],
34       'includes': [ '../../build/grit_target.gypi' ],
35       # Override the exported include-dirs; ios_strings_resources.h should only
36       # be referenceable as ios/chrome/grit/ to allow DEPS-time checking of
37       # usage.
38       'direct_dependent_settings': {
39         'include_dirs': [
40           '<(grit_base_dir)',
41         ],
42         'include_dirs!': [
43           '<(grit_out_dir)',
44         ],
45       }
46     },
47     {
48       'target_name': 'ios_theme_resources_gen',
49       'type': 'none',
50       'hard_dependency': 1,
51       'actions': [
52         {
53           'action_name': 'ios_theme_resources',
54           'variables': {
55             'grit_whitelist': '',
56             'grit_grd_file': 'app/theme/ios_theme_resources.grd',
57           },
58           'includes': [ '../../build/grit_action.gypi' ],
59         },
60       ],
61       'includes': [ '../../build/grit_target.gypi' ],
62       # Override the exported include-dirs; ios_theme_resources.h should only be
63       # referencable as ios/chrome/grit/ to allow DEPS-time checking of usage.
64       'direct_dependent_settings': {
65         'include_dirs': [
66           '<(grit_base_dir)',
67         ],
68         'include_dirs!': [
69           '<(grit_out_dir)',
70         ],
71       },
72     },
73     {
74       'target_name': 'ios_packed_resources',
75       'type': 'none',
76       'dependencies': [
77         '../../components/components_strings.gyp:components_strings',
78         '../../net/net.gyp:net_resources',
79         '../../ui/resources/ui_resources.gyp:ui_resources',
80         '../../ui/strings/ui_strings.gyp:ui_strings',
81         'ios_chrome_resources',
82       ],
83       'actions': [
84         {
85           'action_name': 'repack_ios_locales',
86           'variables': {
87             'repack_locales_path': 'tools/build/ios_repack_locales.py',
88           },
89           'inputs': [
90             'tools/build/ios_repack_locales.py',
91             '<!@pymod_do_main(ios_repack_locales -i '
92               '-s <(SHARED_INTERMEDIATE_DIR) '
93               '-x <(SHARED_INTERMEDIATE_DIR)/repack_ios '
94               '<(locales))'
95           ],
96           'outputs': [
97             '<!@pymod_do_main(ios_repack_locales -o '
98               '-s <(SHARED_INTERMEDIATE_DIR) '
99               '-x <(SHARED_INTERMEDIATE_DIR)/repack_ios '
100               '<(locales))'
101           ],
102           'action': [
103             'python',
104             'tools/build/ios_repack_locales.py',
105             '-x', '<(SHARED_INTERMEDIATE_DIR)/repack_ios',
106             '-s', '<(SHARED_INTERMEDIATE_DIR)',
107             '<@(locales)',
108           ],
109         },
110         {
111           'action_name': 'repack_ios_resources_100_percent',
112           'variables': {
113             'pak_inputs': [
114               '<(SHARED_INTERMEDIATE_DIR)/components/components_resources_100_percent.pak',
115               '<(SHARED_INTERMEDIATE_DIR)/ios/chrome/ios_theme_resources_100_percent.pak',
116               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
117             ],
118             'pak_output': '<(SHARED_INTERMEDIATE_DIR)/repack_ios/chrome_100_percent.pak',
119           },
120           'includes': [ '../../build/repack_action.gypi' ],
121         },
122         {
123           'action_name': 'repack_ios_resources_200_percent',
124           'variables': {
125             'pak_inputs': [
126               '<(SHARED_INTERMEDIATE_DIR)/components/components_resources_200_percent.pak',
127               '<(SHARED_INTERMEDIATE_DIR)/ios/chrome/ios_theme_resources_200_percent.pak',
128               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_200_percent.pak',
129             ],
130             'pak_output': '<(SHARED_INTERMEDIATE_DIR)/repack_ios/chrome_200_percent.pak',
131           },
132           'includes': [ '../../build/repack_action.gypi' ],
133         },
134         {
135           'action_name': 'repack_ios_resources_300_percent',
136           'variables': {
137             'pak_inputs': [
138               '<(SHARED_INTERMEDIATE_DIR)/components/components_resources_300_percent.pak',
139               '<(SHARED_INTERMEDIATE_DIR)/ios/chrome/ios_theme_resources_300_percent.pak',
140               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_300_percent.pak',
141             ],
142             'pak_output': '<(SHARED_INTERMEDIATE_DIR)/repack_ios/chrome_300_percent.pak',
143           },
144           'includes': [ '../../build/repack_action.gypi' ],
145         },
146         {
147           'action_name': 'repack_ios_resources',
148           'variables': {
149             'pak_inputs': [
150               '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pak',
151               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
152               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
153             ],
154             'pak_output': '<(SHARED_INTERMEDIATE_DIR)/repack_ios/resources.pak',
155           },
156           'includes': [ '../../build/repack_action.gypi' ],
157         },
158       ],
159     },
160   ],