OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 { | |
5 'variables': { | |
6 # Apply Chrome-specific grit settings to all of this file. | |
7 # The advantage is that one entry here applies to the entire file. | |
8 # The caveat is these variables cannot be merged with other variable | |
9 # dictionaries in more inner scopes. If the variable should be merged, | |
10 # consider putting them in a gypi file and including it at the right scope | |
11 # instead. e.g. with chrome_grit_action.gypi. | |
12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | |
13 'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/i
nternal/additional_modules_list.txt', | |
14 }, | |
15 'targets': [ | |
16 { | |
17 # GN version: //chrome:extra_resources | |
18 'target_name': 'chrome_extra_resources', | |
19 'type': 'none', | |
20 # These resources end up in resources.pak because they are resources | |
21 # used by internal pages. Putting them in a separate pak file makes | |
22 # it easier for us to reference them internally. | |
23 'actions': [ | |
24 { | |
25 # GN version: //chrome/browser/resources:net_internals_resources | |
26 'action_name': 'generate_net_internals_resources', | |
27 'variables': { | |
28 'grit_grd_file': 'browser/resources/net_internals_resources.grd', | |
29 }, | |
30 'includes': [ 'chrome_grit_action.gypi' ], | |
31 }, | |
32 { | |
33 # GN version: //chrome/browser/resources:invalidations_resources | |
34 'action_name': 'generate_invalidations_resources', | |
35 'variables': { | |
36 'grit_grd_file': 'browser/resources/invalidations_resources.grd', | |
37 }, | |
38 'includes': ['chrome_grit_action.gypi' ], | |
39 }, | |
40 { | |
41 # GN version: //chrome/browser/resources:password_manager_internals_re
sources | |
42 'action_name': 'generate_password_manager_internals_resources', | |
43 'variables': { | |
44 'grit_grd_file': 'browser/resources/password_manager_internals_resou
rces.grd', | |
45 }, | |
46 'includes': [ 'chrome_grit_action.gypi' ], | |
47 }, | |
48 { | |
49 # GN version: //chrome/browser/resources:policy_resources | |
50 'action_name': 'generate_policy_resources', | |
51 'variables': { | |
52 'grit_grd_file': 'browser/resources/md_policy/policy_resources.grd', | |
53 }, | |
54 'includes': [ 'chrome_grit_action.gypi' ], | |
55 }, | |
56 { | |
57 # GN version: //chrome/browser/resources:translate_internals_resources | |
58 'action_name': 'generate_translate_internals_resources', | |
59 'variables': { | |
60 'grit_grd_file': 'browser/resources/translate_internals_resources.gr
d', | |
61 }, | |
62 'includes': [ 'chrome_grit_action.gypi' ], | |
63 }, | |
64 ], | |
65 'includes': [ '../build/grit_target.gypi' ], | |
66 'conditions': [ | |
67 ['OS != "ios"', { | |
68 'dependencies': [ | |
69 '../components/components_resources.gyp:components_resources', | |
70 '../content/browser/devtools/devtools_resources.gyp:devtools_resourc
es', | |
71 '../content/browser/tracing/tracing_resources.gyp:tracing_resources'
, | |
72 ], | |
73 'actions': [ | |
74 { | |
75 # GN version: //chrome/browser/resources:component_extension_resou
rces | |
76 'action_name': 'generate_component_extension_resources', | |
77 'variables': { | |
78 'grit_grd_file': 'browser/resources/component_extension_resource
s.grd', | |
79 }, | |
80 'includes': [ 'chrome_grit_action.gypi' ], | |
81 }, | |
82 { | |
83 # GN version: //chrome/browser/resources:options_resources | |
84 'action_name': 'generate_options_resources', | |
85 'variables': { | |
86 'grit_grd_file': 'browser/resources/options_resources.grd', | |
87 }, | |
88 'includes': [ 'chrome_grit_action.gypi' ], | |
89 }, | |
90 { | |
91 # GN version: //chrome/browser/resources:settings_resources | |
92 'action_name': 'generate_settings_resources', | |
93 'variables': { | |
94 'grit_grd_file': 'browser/resources/settings/settings_resources.
grd', | |
95 }, | |
96 'includes': [ 'chrome_grit_action.gypi' ], | |
97 }, | |
98 ], | |
99 'copies': [ | |
100 { | |
101 # GN version: //chrome/browser/resources:extension_resource_demo | |
102 'destination': '<(PRODUCT_DIR)/resources/extension/demo', | |
103 'files': [ | |
104 'browser/resources/extension_resource/demo/library.js', | |
105 ], | |
106 }, | |
107 ], | |
108 }], | |
109 ['chromeos==1 and disable_nacl==0 and disable_nacl_untrusted==0', { | |
110 'dependencies': [ | |
111 'browser/resources/chromeos/chromevox/chromevox.gyp:chromevox', | |
112 ], | |
113 }], | |
114 ['enable_extensions==1', { | |
115 'actions': [ | |
116 { | |
117 # GN version: //chrome/browser/resources:quota_internals_resources | |
118 'action_name': 'generate_quota_internals_resources', | |
119 'variables': { | |
120 'grit_grd_file': 'browser/resources/quota_internals_resources.gr
d', | |
121 }, | |
122 'includes': [ 'chrome_grit_action.gypi' ], | |
123 }, | |
124 { | |
125 # GN version: //chrome/browser/resources:sync_file_system_internal
s_resources | |
126 'action_name': 'generate_sync_file_system_internals_resources', | |
127 'variables': { | |
128 'grit_grd_file': 'browser/resources/sync_file_system_internals_r
esources.grd', | |
129 }, | |
130 'includes': [ 'chrome_grit_action.gypi' ], | |
131 }, | |
132 ], | |
133 }], | |
134 ], | |
135 }, | |
136 { | |
137 # GN version: //chrome/browser:chrome_internal_resources_gen | |
138 'target_name': 'chrome_internal_resources_gen', | |
139 'type': 'none', | |
140 'conditions': [ | |
141 ['branding=="Chrome"', { | |
142 'actions': [ | |
143 { | |
144 'action_name': 'generate_transform_additional_modules_list', | |
145 'variables': { | |
146 'additional_modules_input_path': | |
147 'browser/internal/resources/additional_modules_list.input', | |
148 'additional_modules_py_path': | |
149 'browser/internal/transform_additional_modules_list.py', | |
150 }, | |
151 'inputs': [ | |
152 '<(additional_modules_input_path)', | |
153 ], | |
154 'outputs': [ | |
155 '<(additional_modules_list_file)', | |
156 ], | |
157 'action': [ | |
158 'python', | |
159 '<(additional_modules_py_path)', | |
160 '<(additional_modules_input_path)', | |
161 '<@(_outputs)', | |
162 ], | |
163 'message': 'Transforming additional modules list', | |
164 } | |
165 ], | |
166 }], | |
167 ], | |
168 }, | |
169 { | |
170 # TODO(mark): It would be better if each static library that needed | |
171 # to run grit would list its own .grd files, but unfortunately some | |
172 # of the static libraries currently have circular dependencies among | |
173 # generated headers. | |
174 # | |
175 # GN version: //chrome:resources | |
176 'target_name': 'chrome_resources', | |
177 'type': 'none', | |
178 'dependencies': [ | |
179 'chrome_internal_resources_gen', | |
180 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings', | |
181 '../url/url.gyp:url_interfaces_mojom', | |
182 ], | |
183 'actions': [ | |
184 { | |
185 # GN version: //chrome/browser:resources | |
186 'action_name': 'generate_browser_resources', | |
187 'variables': { | |
188 'grit_grd_file': 'browser/browser_resources.grd', | |
189 'grit_additional_defines': [ | |
190 '-E', 'additional_modules_list_file=<(additional_modules_list_file
)', | |
191 '-E', 'root_gen_dir=<(SHARED_INTERMEDIATE_DIR)', | |
192 ], | |
193 }, | |
194 'includes': [ 'chrome_grit_action.gypi' ], | |
195 }, | |
196 { | |
197 # GN version: //chrome/common:resources | |
198 'action_name': 'generate_common_resources', | |
199 'variables': { | |
200 'grit_grd_file': 'common/common_resources.grd', | |
201 }, | |
202 'includes': [ 'chrome_grit_action.gypi' ], | |
203 }, | |
204 { | |
205 # GN version: //chrome/renderer:resources | |
206 'action_name': 'generate_renderer_resources', | |
207 'variables': { | |
208 'grit_grd_file': 'renderer/resources/renderer_resources.grd', | |
209 }, | |
210 'includes': [ 'chrome_grit_action.gypi' ], | |
211 }, | |
212 ], | |
213 'conditions': [ | |
214 ['OS != "android" and OS != "ios"', { | |
215 'dependencies': [ 'make_file_types_protobuf' ] | |
216 }], | |
217 ], | |
218 'includes': [ '../build/grit_target.gypi' ], | |
219 }, | |
220 { | |
221 # TODO(mark): It would be better if each static library that needed | |
222 # to run grit would list its own .grd files, but unfortunately some | |
223 # of the static libraries currently have circular dependencies among | |
224 # generated headers. | |
225 # | |
226 # GN version: //chrome:strings | |
227 'target_name': 'chrome_strings', | |
228 'type': 'none', | |
229 'actions': [ | |
230 { | |
231 # GN version: //chrome/app/resources:locale_settings | |
232 'action_name': 'generate_locale_settings', | |
233 'variables': { | |
234 'grit_grd_file': 'app/resources/locale_settings.grd', | |
235 }, | |
236 'includes': [ 'chrome_grit_action.gypi' ], | |
237 }, | |
238 { | |
239 # GN version: //chrome/app:chromium_strings | |
240 'action_name': 'generate_chromium_strings', | |
241 'variables': { | |
242 'grit_grd_file': 'app/chromium_strings.grd', | |
243 }, | |
244 'includes': [ 'chrome_grit_action.gypi' ], | |
245 }, | |
246 { | |
247 # GN version: //chrome/app:generated_resources | |
248 'action_name': 'generate_generated_resources', | |
249 'variables': { | |
250 'grit_grd_file': 'app/generated_resources.grd', | |
251 }, | |
252 'includes': [ 'chrome_grit_action.gypi' ], | |
253 }, | |
254 { | |
255 # GN version: //chrome/app:google_chrome_strings | |
256 'action_name': 'generate_google_chrome_strings', | |
257 'variables': { | |
258 'grit_grd_file': 'app/google_chrome_strings.grd', | |
259 }, | |
260 'includes': [ 'chrome_grit_action.gypi' ], | |
261 }, | |
262 ], | |
263 }, | |
264 | |
265 { | |
266 # GN version: //chrome/browser/resources/safe_browsing:make_file_types_pro
tobuf | |
267 # Convert the ascii proto file to a binary resource. | |
268 'target_name': 'make_file_types_protobuf', | |
269 'type': 'none', | |
270 'hard_dependency': 1, | |
271 'dependencies': [ | |
272 'chrome.gyp:safe_browsing_proto', | |
273 '<(DEPTH)/third_party/protobuf/protobuf.gyp:py_proto', | |
274 ], | |
275 'actions': [ | |
276 { | |
277 'action_name': 'generate_file_types_protobuf', | |
278 'variables' : { | |
279 'script_file':'browser/resources/safe_browsing/gen_file_type_proto.p
y', | |
280 'asciipb_file' : 'browser/resources/safe_browsing/download_file_type
s.asciipb', | |
281 'output_dir' : '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/
safe_browsing', | |
282 'output_basename' : 'download_file_types.pb', | |
283 'conditions': [ | |
284 ['OS=="android"', { | |
285 'platform': 'android' | |
286 }, 'chromeos==1', { | |
287 'platform': 'chromeos' | |
288 }, 'OS=="linux"', { | |
289 'platform': 'linux' | |
290 }, 'OS=="mac"', { | |
291 'platform': 'mac' | |
292 }, 'OS=="win"', { | |
293 'platform': 'win' | |
294 }, { | |
295 # This will cause the script to fail | |
296 'platform': 'unknown_target_arch' | |
297 }], | |
298 ], | |
299 }, | |
300 'inputs': [ | |
301 '<(script_file)', | |
302 '<(asciipb_file)', | |
303 ], | |
304 'outputs': [ | |
305 '<(output_dir)/<(output_basename)', | |
306 ], | |
307 'action': [ | |
308 'python', | |
309 '<(script_file)', | |
310 '-w', | |
311 '-i', '<(asciipb_file)', | |
312 '-d', '<(output_dir)', | |
313 '-o', '<(output_basename)', | |
314 '-t', '<(platform)', | |
315 '-p', '<(PRODUCT_DIR)/pyproto', | |
316 '-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing', | |
317 ], | |
318 'message': 'Generating download_file_types.pb.', | |
319 } | |
320 ], | |
321 }, | |
322 { | |
323 # GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrid
er_factory_gen_sources | |
324 'target_name': 'make_chrome_ui_string_overrider_factory', | |
325 'type': 'none', | |
326 'hard_dependency': 1, | |
327 'dependencies': [ | |
328 'chrome_strings', | |
329 '../components/components_strings.gyp:components_strings', | |
330 ], | |
331 'actions': [ | |
332 { | |
333 'action_name': 'generate_ui_string_overrider', | |
334 'inputs': [ | |
335 '../components/variations/service/generate_ui_string_overrider.py', | |
336 '<(grit_out_dir)/grit/chromium_strings.h', | |
337 '<(grit_out_dir)/grit/generated_resources.h', | |
338 '<(grit_out_dir)/grit/google_chrome_strings.h', | |
339 '<(SHARED_INTERMEDIATE_DIR)/components/strings/grit/components_chrom
ium_strings.h', | |
340 '<(SHARED_INTERMEDIATE_DIR)/components/strings/grit/components_googl
e_chrome_strings.h', | |
341 '<(SHARED_INTERMEDIATE_DIR)/components/strings/grit/components_strin
gs.h' | |
342 ], | |
343 'outputs': [ | |
344 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/ui_str
ing_overrider_factory.cc', | |
345 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/ui_str
ing_overrider_factory.h', | |
346 ], | |
347 'action': [ | |
348 'python', | |
349 '../components/variations/service/generate_ui_string_overrider.py', | |
350 '-N', 'chrome_variations', | |
351 '-o', '<(SHARED_INTERMEDIATE_DIR)', | |
352 '-S', 'chrome/browser/metrics/variations/ui_string_overrider_factory
.cc', | |
353 '-H', 'chrome/browser/metrics/variations/ui_string_overrider_factory
.h', | |
354 '<(grit_out_dir)/grit/chromium_strings.h', | |
355 '<(grit_out_dir)/grit/generated_resources.h', | |
356 '<(grit_out_dir)/grit/google_chrome_strings.h', | |
357 '<(SHARED_INTERMEDIATE_DIR)/components/strings/grit/components_chrom
ium_strings.h', | |
358 '<(SHARED_INTERMEDIATE_DIR)/components/strings/grit/components_googl
e_chrome_strings.h', | |
359 '<(SHARED_INTERMEDIATE_DIR)/components/strings/grit/components_strin
gs.h' | |
360 ], | |
361 'message': 'Generating generated resources map.', | |
362 } | |
363 ], | |
364 }, | |
365 { | |
366 # GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrid
er_factory | |
367 'target_name': 'chrome_ui_string_overrider_factory', | |
368 'type': 'static_library', | |
369 'dependencies': [ | |
370 '../components/components.gyp:variations_service', | |
371 'make_chrome_ui_string_overrider_factory', | |
372 ], | |
373 'sources': [ | |
374 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/ui_string_
overrider_factory.cc', | |
375 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/ui_string_
overrider_factory.h', | |
376 ], | |
377 }, | |
378 { | |
379 # GN version: //chrome/app/resources:platform_locale_settings | |
380 'target_name': 'platform_locale_settings', | |
381 'type': 'none', | |
382 'variables': { | |
383 'conditions': [ | |
384 ['OS=="win"', { | |
385 'platform_locale_settings_grd': | |
386 'app/resources/locale_settings_win.grd', | |
387 },], | |
388 ['OS=="linux"', { | |
389 'conditions': [ | |
390 ['chromeos==1', { | |
391 'platform_locale_settings_grd': | |
392 'app/resources/locale_settings_<(branding_path_component)os.
grd', | |
393 }, { # chromeos==0 | |
394 'platform_locale_settings_grd': | |
395 'app/resources/locale_settings_linux.grd', | |
396 }], | |
397 ], | |
398 },], | |
399 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', { | |
400 'platform_locale_settings_grd': | |
401 'app/resources/locale_settings_linux.grd', | |
402 },], | |
403 ['OS == "mac" or OS == "ios"', { | |
404 'platform_locale_settings_grd': | |
405 'app/resources/locale_settings_mac.grd', | |
406 }], | |
407 ], # conditions | |
408 }, # variables | |
409 'actions': [ | |
410 { | |
411 'action_name': 'generate_platform_locale_settings', | |
412 'variables': { | |
413 'grit_grd_file': '<(platform_locale_settings_grd)', | |
414 }, | |
415 'includes': [ 'chrome_grit_action.gypi' ], | |
416 }, | |
417 ], | |
418 'includes': [ '../build/grit_target.gypi' ], | |
419 }, | |
420 { | |
421 # GN version: //chrome/app/theme:theme_resources | |
422 'target_name': 'theme_resources', | |
423 'type': 'none', | |
424 'dependencies': [ | |
425 '../ui/resources/ui_resources.gyp:ui_resources', | |
426 'chrome_unscaled_resources', | |
427 ], | |
428 'actions': [ | |
429 { | |
430 'action_name': 'generate_theme_resources', | |
431 'variables': { | |
432 'grit_grd_file': 'app/theme/theme_resources.grd', | |
433 }, | |
434 'includes': [ 'chrome_grit_action.gypi' ], | |
435 }, | |
436 ], | |
437 'includes': [ '../build/grit_target.gypi' ], | |
438 }, | |
439 { | |
440 # GN version: //chrome:packed_extra_resources | |
441 'target_name': 'packed_extra_resources', | |
442 'type': 'none', | |
443 'dependencies': [ | |
444 'chrome_extra_resources', | |
445 'packed_resources', | |
446 ], | |
447 'actions': [ | |
448 { | |
449 'includes': ['chrome_repack_resources.gypi'] | |
450 }, | |
451 ], | |
452 'conditions': [ | |
453 ['OS != "mac" and OS != "ios"', { | |
454 # We'll install the resource files to the product directory. The Mac | |
455 # copies the results over as bundle resources in its own special way. | |
456 'copies': [ | |
457 { | |
458 'destination': '<(PRODUCT_DIR)', | |
459 'files': [ | |
460 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak' | |
461 ], | |
462 }, | |
463 ], | |
464 }], | |
465 ], | |
466 }, | |
467 { | |
468 # GN version: //chrome:packed_resources | |
469 'target_name': 'packed_resources', | |
470 'type': 'none', | |
471 'dependencies': [ # Update duplicate logic in repack_locales.py | |
472 # MSVS needs the dependencies explictly named, Make is able to | |
473 # derive the dependencies from the output files. | |
474 'chrome_resources', | |
475 'chrome_strings', | |
476 'platform_locale_settings', | |
477 'theme_resources', | |
478 '<(DEPTH)/components/components_strings.gyp:components_strings', | |
479 '<(DEPTH)/net/net.gyp:net_resources', | |
480 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | |
481 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings', | |
482 ], | |
483 'actions': [ | |
484 { | |
485 # GN version: //chrome:repack_locales_pack | |
486 'action_name': 'repack_locales_pack', | |
487 'variables': { | |
488 'pak_locales': '<(locales)', | |
489 }, | |
490 'includes': ['chrome_repack_locales.gypi'] | |
491 }, | |
492 { | |
493 # GN version: //chrome:repack_pseudo_locales_pack | |
494 'action_name': 'repack_pseudo_locales_pack', | |
495 'variables': { | |
496 'pak_locales': '<(pseudo_locales)', | |
497 }, | |
498 'includes': ['chrome_repack_locales.gypi'] | |
499 }, | |
500 { | |
501 'includes': ['chrome_repack_chrome_100_percent.gypi'] | |
502 }, | |
503 { | |
504 'includes': ['chrome_repack_chrome_200_percent.gypi'] | |
505 }, | |
506 ], | |
507 'conditions': [ # GN version: chrome_repack_locales.gni template("_repack
_one_locale") | |
508 ['OS != "ios"', { | |
509 'dependencies': [ # Update duplicate logic in repack_locales.py | |
510 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resour
ces', | |
511 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings', | |
512 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:bluetooth_strings', | |
513 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resour
ces', | |
514 ], | |
515 }, { # else | |
516 'dependencies': [ # Update duplicate logic in repack_locales.py | |
517 '<(DEPTH)/ios/chrome/ios_chrome_resources.gyp:ios_strings_gen', | |
518 ], | |
519 'actions': [ | |
520 { | |
521 'includes': ['chrome_repack_chrome_300_percent.gypi'] | |
522 }, | |
523 ], | |
524 }], | |
525 ['use_ash==1', { | |
526 'dependencies': [ # Update duplicate logic in repack_locales.py | |
527 '<(DEPTH)/ash/ash_resources.gyp:ash_resources', | |
528 '<(DEPTH)/ash/ash_strings.gyp:ash_strings', | |
529 ], | |
530 }], | |
531 ['toolkit_views==1', { | |
532 'dependencies': [ | |
533 '<(DEPTH)/ui/views/resources/views_resources.gyp:views_resources', | |
534 ], | |
535 }], | |
536 ['chromeos==1', { | |
537 'dependencies': [ # Update duplicate logic in repack_locales.py | |
538 '<(DEPTH)/remoting/remoting.gyp:remoting_resources', | |
539 '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources', | |
540 '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings', | |
541 ], | |
542 }], | |
543 ['OS != "android" and OS != "ios"', { | |
544 'dependencies': [ # Update duplicate logic in repack_locales.py | |
545 '<(DEPTH)/third_party/libaddressinput/libaddressinput.gyp:libaddress
input_strings', | |
546 ], | |
547 }], | |
548 ['enable_extensions==1', { | |
549 'dependencies': [ # Update duplicate logic in repack_locales.py | |
550 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings', | |
551 ], | |
552 }], | |
553 ['enable_app_list==1', { | |
554 'dependencies': [ | |
555 '<(DEPTH)/ui/app_list/resources/app_list_resources.gyp:app_list_res
ources', | |
556 ], | |
557 }], | |
558 ['OS != "mac" and OS != "ios"', { | |
559 # Copy pak files to the product directory. These files will be picked | |
560 # up by the following installer scripts: | |
561 # - Windows: chrome/installer/mini_installer/chrome.release | |
562 # - Linux: chrome/installer/linux/internal/common/installer.include | |
563 # Ensure that the above scripts are updated when adding or removing | |
564 # pak files. | |
565 # Copying files to the product directory is not needed on the Mac | |
566 # since the framework build phase will copy them into the framework | |
567 # bundle directly. | |
568 'copies': [ | |
569 { | |
570 'destination': '<(PRODUCT_DIR)', | |
571 'files': [ | |
572 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak' | |
573 ], | |
574 }, | |
575 { | |
576 'destination': '<(PRODUCT_DIR)/locales', | |
577 'files': [ | |
578 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir)
-s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))' | |
579 ], | |
580 }, | |
581 { | |
582 'destination': '<(PRODUCT_DIR)/pseudo_locales', | |
583 'files': [ | |
584 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir)
-s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))' | |
585 ], | |
586 }, | |
587 ], | |
588 'conditions': [ | |
589 ['branding=="Chrome"', { | |
590 'copies': [ | |
591 { | |
592 # This location is for the Windows and Linux builds. For | |
593 # Windows, the chrome.release file ensures that these files | |
594 # are copied into the installer. Note that we have a separate | |
595 # section in chrome_dll.gyp to copy these files for Mac, as it | |
596 # needs to be dropped inside the framework. | |
597 'destination': '<(PRODUCT_DIR)/default_apps', | |
598 'files': ['<@(default_apps_list)'] | |
599 }, | |
600 ], | |
601 }], | |
602 ['enable_hidpi == 1', { | |
603 'copies': [ | |
604 { | |
605 'destination': '<(PRODUCT_DIR)', | |
606 'files': [ | |
607 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak', | |
608 ], | |
609 }, | |
610 ], | |
611 }], | |
612 ], # conditions | |
613 }], # end OS != "mac" and OS != "ios" | |
614 ], # conditions | |
615 }, | |
616 { | |
617 # GN version: //chrome/app/theme:chrome_unscaled_resources | |
618 'target_name': 'chrome_unscaled_resources', | |
619 'type': 'none', | |
620 'actions': [ | |
621 { | |
622 'action_name': 'generate_chrome_unscaled_resources', | |
623 'variables': { | |
624 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd', | |
625 }, | |
626 'includes': [ 'chrome_grit_action.gypi' ], | |
627 }, | |
628 ], | |
629 'includes': [ '../build/grit_target.gypi' ], | |
630 }, | |
631 { | |
632 # GN version: //chrome/browser/resources:options_test_resources | |
633 'target_name': 'options_test_resources', | |
634 'type': 'none', | |
635 'actions': [ | |
636 { | |
637 'action_name': 'generate_options_test_resources', | |
638 'variables': { | |
639 'grit_grd_file': 'browser/resources/options_test_resources.grd', | |
640 }, | |
641 'includes': [ 'chrome_grit_action.gypi' ], | |
642 }, | |
643 ], | |
644 'includes': [ '../build/grit_target.gypi' ], | |
645 }, | |
646 { | |
647 # GN version: //chrome/test/data/resources:webui_test_resources | |
648 'target_name': 'webui_test_resources', | |
649 'type': 'none', | |
650 'actions': [ | |
651 { | |
652 'action_name': 'generate_webui_test_resources', | |
653 'variables': { | |
654 'grit_grd_file': 'test/data/webui_test_resources.grd', | |
655 }, | |
656 'includes': [ 'chrome_grit_action.gypi' ], | |
657 }, | |
658 ], | |
659 'includes': [ '../build/grit_target.gypi' ], | |
660 }, | |
661 { | |
662 # GN version: //chrome:browser_tests_pak | |
663 'target_name': 'browser_tests_pak', | |
664 'type': 'none', | |
665 'dependencies': [ | |
666 'options_test_resources', | |
667 'webui_test_resources', | |
668 ], | |
669 'actions': [ | |
670 { | |
671 'action_name': 'repack_browser_tests_pak', | |
672 'variables': { | |
673 'pak_inputs': [ | |
674 '<(SHARED_INTERMEDIATE_DIR)/chrome/options_test_resources.pak', | |
675 '<(SHARED_INTERMEDIATE_DIR)/chrome/webui_test_resources.pak', | |
676 ], | |
677 'pak_output': '<(PRODUCT_DIR)/browser_tests.pak', | |
678 }, | |
679 'includes': [ '../build/repack_action.gypi' ], | |
680 }, | |
681 ], | |
682 }, | |
683 ], # targets | |
684 } | |
OLD | NEW |