Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Side by Side Diff: chrome/chrome_resources.gyp

Issue 290773004: First attempt at cleaning up chrome_resources.gyp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/gn/secondary/chrome/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'variables': { 5 'variables': {
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', 6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', 7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html',
8 'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/i nternal/additional_modules_list.txt', 8 'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/i nternal/additional_modules_list.txt',
9 'omnibox_mojom_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/om nibox/omnibox.mojom.js', 9 'omnibox_mojom_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/om nibox/omnibox.mojom.js',
10 }, 10 },
11 'targets': [ 11 'targets': [
12 { 12 {
13 'target_name': 'chrome_extra_resources', 13 'target_name': 'chrome_extra_resources',
14 'type': 'none', 14 'type': 'none',
15 # These resources end up in resources.pak because they are resources 15 # These resources end up in resources.pak because they are resources
16 # used by internal pages. Putting them in a separate pak file makes 16 # used by internal pages. Putting them in a separate pak file makes
17 # it easier for us to reference them internally. 17 # it easier for us to reference them internally.
18 'actions': [ 18 'actions': [
19 { 19 {
20 'action_name': 'memory_internals_resources', 20 'action_name': 'generate_memory_internals_resources',
21 'variables': { 21 'variables': {
22 'grit_grd_file': 'browser/resources/memory_internals_resources.grd', 22 'grit_grd_file': 'browser/resources/memory_internals_resources.grd',
23 }, 23 },
24 'includes': [ '../build/grit_action.gypi' ], 24 'includes': [ '../build/grit_action.gypi' ],
25 }, 25 },
26 { 26 {
27 'action_name': 'net_internals_resources', 27 'action_name': 'generate_net_internals_resources',
28 'variables': { 28 'variables': {
29 'grit_grd_file': 'browser/resources/net_internals_resources.grd', 29 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
30 }, 30 },
31 'includes': [ '../build/grit_action.gypi' ], 31 'includes': [ '../build/grit_action.gypi' ],
32 }, 32 },
33 { 33 {
34 'action_name': 'invalidations_resources', 34 'action_name': 'generate_invalidations_resources',
35 'variables': { 35 'variables': {
36 'grit_grd_file': 'browser/resources/invalidations_resources.grd', 36 'grit_grd_file': 'browser/resources/invalidations_resources.grd',
37 }, 37 },
38 'includes': ['../build/grit_action.gypi' ], 38 'includes': ['../build/grit_action.gypi' ],
39 }, 39 },
40 { 40 {
41 'action_name': 'password_manager_internals_resources', 41 'action_name': 'generate_password_manager_internals_resources',
42 'variables': { 42 'variables': {
43 'grit_grd_file': 'browser/resources/password_manager_internals_resou rces.grd', 43 'grit_grd_file': 'browser/resources/password_manager_internals_resou rces.grd',
44 }, 44 },
45 'includes': [ '../build/grit_action.gypi' ], 45 'includes': [ '../build/grit_action.gypi' ],
46 }, 46 },
47 { 47 {
48 'action_name': 'signin_internals_resources', 48 'action_name': 'generate_signin_internals_resources',
49 'variables': { 49 'variables': {
50 'grit_grd_file': 'browser/resources/signin_internals_resources.grd', 50 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
51 }, 51 },
52 'includes': ['../build/grit_action.gypi' ], 52 'includes': ['../build/grit_action.gypi' ],
53 }, 53 },
54 { 54 {
55 'action_name': 'sync_internals_resources', 55 'action_name': 'generate_sync_internals_resources',
56 'variables': { 56 'variables': {
57 'grit_grd_file': 'browser/resources/sync_internals_resources.grd', 57 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
58 }, 58 },
59 'includes': [ '../build/grit_action.gypi' ], 59 'includes': [ '../build/grit_action.gypi' ],
60 }, 60 },
61 { 61 {
62 'action_name': 'translate_internals_resources', 62 'action_name': 'generate_translate_internals_resources',
63 'variables': { 63 'variables': {
64 'grit_grd_file': 'browser/resources/translate_internals_resources.gr d', 64 'grit_grd_file': 'browser/resources/translate_internals_resources.gr d',
65 }, 65 },
66 'includes': [ '../build/grit_action.gypi' ], 66 'includes': [ '../build/grit_action.gypi' ],
67 }, 67 },
68 ], 68 ],
69 'includes': [ '../build/grit_target.gypi' ], 69 'includes': [ '../build/grit_target.gypi' ],
70 'conditions': [ 70 'conditions': [
71 ['OS != "ios"', { 71 ['OS != "ios"', {
72 'dependencies': [ 72 'dependencies': [
73 '../components/components_resources.gyp:components_resources', 73 '../components/components_resources.gyp:components_resources',
74 '../content/browser/devtools/devtools_resources.gyp:devtools_resourc es', 74 '../content/browser/devtools/devtools_resources.gyp:devtools_resourc es',
75 '../content/browser/tracing/tracing_resources.gyp:tracing_resources' , 75 '../content/browser/tracing/tracing_resources.gyp:tracing_resources' ,
76 ], 76 ],
77 'actions': [ 77 'actions': [
78 { 78 {
79 'action_name': 'component_extension_resources', 79 'action_name': 'generate_component_extension_resources',
80 'variables': { 80 'variables': {
81 'grit_grd_file': 'browser/resources/component_extension_resource s.grd', 81 'grit_grd_file': 'browser/resources/component_extension_resource s.grd',
82 }, 82 },
83 'includes': [ '../build/grit_action.gypi' ], 83 'includes': [ '../build/grit_action.gypi' ],
84 }, 84 },
85 { 85 {
86 'action_name': 'options_resources', 86 'action_name': 'generate_options_resources',
87 'variables': { 87 'variables': {
88 'grit_grd_file': 'browser/resources/options_resources.grd', 88 'grit_grd_file': 'browser/resources/options_resources.grd',
89 }, 89 },
90 'includes': [ '../build/grit_action.gypi' ], 90 'includes': [ '../build/grit_action.gypi' ],
91 }, 91 },
92 { 92 {
93 'action_name': 'quota_internals_resources', 93 'action_name': 'generate_quota_internals_resources',
94 'variables': { 94 'variables': {
95 'grit_grd_file': 'browser/resources/quota_internals_resources.gr d', 95 'grit_grd_file': 'browser/resources/quota_internals_resources.gr d',
96 }, 96 },
97 'includes': [ '../build/grit_action.gypi' ], 97 'includes': [ '../build/grit_action.gypi' ],
98 }, 98 },
99 { 99 {
100 'action_name': 'sync_file_system_internals_resources', 100 'action_name': 'generate_sync_file_system_internals_resources',
101 'variables': { 101 'variables': {
102 'grit_grd_file': 'browser/resources/sync_file_system_internals_r esources.grd', 102 'grit_grd_file': 'browser/resources/sync_file_system_internals_r esources.grd',
103 }, 103 },
104 'includes': [ '../build/grit_action.gypi' ], 104 'includes': [ '../build/grit_action.gypi' ],
105 }, 105 },
106 ], 106 ],
107 'copies': [ 107 'copies': [
108 { 108 {
109 'destination': '<(PRODUCT_DIR)/resources/extension/demo', 109 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
110 'files': [ 110 'files': [
(...skipping 17 matching lines...) Expand all
128 }], 128 }],
129 ], 129 ],
130 }, 130 },
131 { 131 {
132 'target_name': 'chrome_internal_resources_gen', 132 'target_name': 'chrome_internal_resources_gen',
133 'type': 'none', 133 'type': 'none',
134 'conditions': [ 134 'conditions': [
135 ['branding=="Chrome"', { 135 ['branding=="Chrome"', {
136 'actions': [ 136 'actions': [
137 { 137 {
138 'action_name': 'transform_additional_modules_list', 138 'action_name': 'generate_transform_additional_modules_list',
139 'variables': { 139 'variables': {
140 'additional_modules_input_path': 140 'additional_modules_input_path':
141 'browser/internal/resources/additional_modules_list.input', 141 'browser/internal/resources/additional_modules_list.input',
142 'additional_modules_py_path': 142 'additional_modules_py_path':
143 'browser/internal/transform_additional_modules_list.py', 143 'browser/internal/transform_additional_modules_list.py',
144 }, 144 },
145 'inputs': [ 145 'inputs': [
146 '<(additional_modules_input_path)', 146 '<(additional_modules_input_path)',
147 ], 147 ],
148 'outputs': [ 148 'outputs': [
(...skipping 17 matching lines...) Expand all
166 # of the static libraries currently have circular dependencies among 166 # of the static libraries currently have circular dependencies among
167 # generated headers. 167 # generated headers.
168 'target_name': 'chrome_resources', 168 'target_name': 'chrome_resources',
169 'type': 'none', 169 'type': 'none',
170 'dependencies': [ 170 'dependencies': [
171 'about_credits', 171 'about_credits',
172 'chrome_internal_resources_gen', 172 'chrome_internal_resources_gen',
173 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings', 173 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings',
174 ], 174 ],
175 'actions': [ 175 'actions': [
176 # Data resources.
177 { 176 {
178 'action_name': 'browser_resources', 177 'action_name': 'generate_browser_resources',
179 'variables': { 178 'variables': {
180 'grit_grd_file': 'browser/browser_resources.grd', 179 'grit_grd_file': 'browser/browser_resources.grd',
181 'grit_additional_defines': [ 180 'grit_additional_defines': [
182 '-E', 'about_credits_file=<(about_credits_file)', 181 '-E', 'about_credits_file=<(about_credits_file)',
183 '-E', 'additional_modules_list_file=<(additional_modules_list_file )', 182 '-E', 'additional_modules_list_file=<(additional_modules_list_file )',
184 '-E', 'omnibox_mojom_file=<(omnibox_mojom_file)', 183 '-E', 'omnibox_mojom_file=<(omnibox_mojom_file)',
185 ], 184 ],
186 }, 185 },
187 'includes': [ '../build/grit_action.gypi' ], 186 'includes': [ '../build/grit_action.gypi' ],
188 }, 187 },
189 { 188 {
190 'action_name': 'common_resources', 189 'action_name': 'generate_common_resources',
191 'variables': { 190 'variables': {
192 'grit_grd_file': 'common/common_resources.grd', 191 'grit_grd_file': 'common/common_resources.grd',
193 }, 192 },
194 'includes': [ '../build/grit_action.gypi' ], 193 'includes': [ '../build/grit_action.gypi' ],
195 }, 194 },
196 { 195 {
197 'action_name': 'renderer_resources', 196 'action_name': 'generate_renderer_resources',
198 'variables': { 197 'variables': {
199 'grit_grd_file': 'renderer/resources/renderer_resources.grd', 198 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
200 }, 199 },
201 'includes': [ '../build/grit_action.gypi' ], 200 'includes': [ '../build/grit_action.gypi' ],
202 }, 201 },
203 ], 202 ],
204 'conditions': [ 203 'conditions': [
205 ['enable_extensions==1', { 204 ['enable_extensions==1', {
206 'actions': [ 205 'actions': [
207 { 206 {
208 'action_name': 'extensions_api_resources', 207 'action_name': 'generate_extensions_api_resources',
209 'variables': { 208 'variables': {
210 'grit_grd_file': 'common/extensions_api_resources.grd', 209 'grit_grd_file': 'common/extensions_api_resources.grd',
211 }, 210 },
212 'includes': [ '../build/grit_action.gypi' ], 211 'includes': [ '../build/grit_action.gypi' ],
213 } 212 }
214 ], 213 ],
215 }], 214 }],
216 ], 215 ],
217 'includes': [ '../build/grit_target.gypi' ], 216 'includes': [ '../build/grit_target.gypi' ],
218 }, 217 },
219 { 218 {
220 # TODO(mark): It would be better if each static library that needed 219 # TODO(mark): It would be better if each static library that needed
221 # to run grit would list its own .grd files, but unfortunately some 220 # to run grit would list its own .grd files, but unfortunately some
222 # of the static libraries currently have circular dependencies among 221 # of the static libraries currently have circular dependencies among
223 # generated headers. 222 # generated headers.
224 'target_name': 'chrome_strings', 223 'target_name': 'chrome_strings',
225 'type': 'none', 224 'type': 'none',
226 'actions': [ 225 'actions': [
227 # Localizable resources.
228 { 226 {
229 'action_name': 'locale_settings', 227 'action_name': 'generate_locale_settings',
230 'variables': { 228 'variables': {
231 'grit_grd_file': 'app/resources/locale_settings.grd', 229 'grit_grd_file': 'app/resources/locale_settings.grd',
232 }, 230 },
233 'includes': [ '../build/grit_action.gypi' ], 231 'includes': [ '../build/grit_action.gypi' ],
234 }, 232 },
235 { 233 {
236 'action_name': 'chromium_strings.grd', 234 'action_name': 'generate_chromium_strings',
237 'variables': { 235 'variables': {
238 'grit_grd_file': 'app/chromium_strings.grd', 236 'grit_grd_file': 'app/chromium_strings.grd',
239 }, 237 },
240 'includes': [ '../build/grit_action.gypi' ], 238 'includes': [ '../build/grit_action.gypi' ],
241 }, 239 },
242 { 240 {
243 'action_name': 'generated_resources', 241 'action_name': 'generate_generated_resources',
244 'variables': { 242 'variables': {
245 'grit_grd_file': 'app/generated_resources.grd', 243 'grit_grd_file': 'app/generated_resources.grd',
246 }, 244 },
247 'includes': [ '../build/grit_action.gypi' ], 245 'includes': [ '../build/grit_action.gypi' ],
248 }, 246 },
249 { 247 {
250 'action_name': 'google_chrome_strings', 248 'action_name': 'generate_google_chrome_strings',
251 'variables': { 249 'variables': {
252 'grit_grd_file': 'app/google_chrome_strings.grd', 250 'grit_grd_file': 'app/google_chrome_strings.grd',
253 }, 251 },
254 'includes': [ '../build/grit_action.gypi' ], 252 'includes': [ '../build/grit_action.gypi' ],
255 }, 253 },
256 ], 254 ],
257 'includes': [ '../build/grit_target.gypi' ], 255 'includes': [ '../build/grit_target.gypi' ],
258 }, 256 },
259 { 257 {
260 'target_name': 'chrome_strings_map', 258 'target_name': 'chrome_strings_map',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 'app/resources/locale_settings_linux.grd', 309 'app/resources/locale_settings_linux.grd',
312 },], 310 },],
313 ['OS == "mac" or OS == "ios"', { 311 ['OS == "mac" or OS == "ios"', {
314 'platform_locale_settings_grd': 312 'platform_locale_settings_grd':
315 'app/resources/locale_settings_mac.grd', 313 'app/resources/locale_settings_mac.grd',
316 }], 314 }],
317 ], # conditions 315 ], # conditions
318 }, # variables 316 }, # variables
319 'actions': [ 317 'actions': [
320 { 318 {
321 'action_name': 'platform_locale_settings', 319 'action_name': 'generate_platform_locale_settings',
322 'variables': { 320 'variables': {
323 'grit_grd_file': '<(platform_locale_settings_grd)', 321 'grit_grd_file': '<(platform_locale_settings_grd)',
324 }, 322 },
325 'includes': [ '../build/grit_action.gypi' ], 323 'includes': [ '../build/grit_action.gypi' ],
326 }, 324 },
327 ], 325 ],
328 'includes': [ '../build/grit_target.gypi' ], 326 'includes': [ '../build/grit_target.gypi' ],
329 }, 327 },
330 { 328 {
331 'target_name': 'theme_resources_gen', 329 'target_name': 'theme_resources',
332 'type': 'none', 330 'type': 'none',
331 'dependencies': [
332 '../ui/resources/ui_resources.gyp:ui_resources',
333 'chrome_unscaled_resources',
334 ],
333 'actions': [ 335 'actions': [
334 { 336 {
335 'action_name': 'theme_resources', 337 'action_name': 'generate_theme_resources',
336 'variables': { 338 'variables': {
337 'grit_grd_file': 'app/theme/theme_resources.grd', 339 'grit_grd_file': 'app/theme/theme_resources.grd',
338 }, 340 },
339 'includes': [ '../build/grit_action.gypi' ], 341 'includes': [ '../build/grit_action.gypi' ],
340 }, 342 },
341 ], 343 ],
342 'includes': [ '../build/grit_target.gypi' ], 344 'includes': [ '../build/grit_target.gypi' ],
343 }, 345 },
344 { 346 {
345 'target_name': 'theme_resources',
346 'type': 'none',
347 'dependencies': [
348 'chrome_unscaled_resources',
349 'theme_resources_gen',
350 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
351 ],
352 },
353 {
354 'target_name': 'packed_extra_resources', 347 'target_name': 'packed_extra_resources',
355 'type': 'none', 348 'type': 'none',
356 'dependencies': [ 349 'dependencies': [
357 'chrome_extra_resources', 350 'chrome_extra_resources',
358 'packed_resources', 351 'packed_resources',
359 ], 352 ],
360 'actions': [ 353 'actions': [
361 { 354 {
362 'includes': ['chrome_repack_resources.gypi'] 355 'includes': ['chrome_repack_resources.gypi']
363 }, 356 },
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 }, 482 },
490 ], 483 ],
491 }], 484 }],
492 ], # conditions 485 ], # conditions
493 }], # end OS != "mac" and OS != "ios" 486 }], # end OS != "mac" and OS != "ios"
494 ], # conditions 487 ], # conditions
495 }, 488 },
496 { 489 {
497 'target_name': 'chrome_unscaled_resources', 490 'target_name': 'chrome_unscaled_resources',
498 'type': 'none', 491 'type': 'none',
499 'variables': {
500 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
501 },
502 'actions': [ 492 'actions': [
503 { 493 {
504 'action_name': 'chrome_unscaled_resources', 494 'action_name': 'generate_chrome_unscaled_resources',
505 'variables': { 495 'variables': {
506 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd', 496 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
507 }, 497 },
508 'includes': [ '../build/grit_action.gypi' ], 498 'includes': [ '../build/grit_action.gypi' ],
509 }, 499 },
510 ], 500 ],
511 'includes': [ '../build/grit_target.gypi' ], 501 'includes': [ '../build/grit_target.gypi' ],
512 }, 502 },
513 { 503 {
514 'target_name': 'about_credits', 504 'target_name': 'about_credits',
(...skipping 16 matching lines...) Expand all
531 '<(generator_path)', 521 '<(generator_path)',
532 'credits', 522 'credits',
533 '<(about_credits_file)', 523 '<(about_credits_file)',
534 ], 524 ],
535 'message': 'Generating about:credits', 525 'message': 'Generating about:credits',
536 }, 526 },
537 ], 527 ],
538 }, 528 },
539 ], # targets 529 ], # targets
540 } 530 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/secondary/chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698