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.
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html',
8 'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/internal/additional_modules_list.txt',
9 'omnibox_mojom_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/omnibox/omnibox.mojom.js',
13 # GN version: //chrome:extra_resources
14 'target_name': 'chrome_extra_resources',
16 # These resources end up in resources.pak because they are resources
17 # used by internal pages. Putting them in a separate pak file makes
18 # it easier for us to reference them internally.
21 # GN version: //chrome/browser/resources:memory_internals_resources
22 'action_name': 'generate_memory_internals_resources',
24 'grit_grd_file': 'browser/resources/memory_internals_resources.grd',
26 'includes': [ '../build/grit_action.gypi' ],
29 # GN version: //chrome/browser/resources:net_internals_resources
30 'action_name': 'generate_net_internals_resources',
32 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
34 'includes': [ '../build/grit_action.gypi' ],
37 # GN version: //chrome/browser/resources:invalidations_resources
38 'action_name': 'generate_invalidations_resources',
40 'grit_grd_file': 'browser/resources/invalidations_resources.grd',
42 'includes': ['../build/grit_action.gypi' ],
45 # GN version: //chrome/browser/resources:password_manager_internals_resources
46 'action_name': 'generate_password_manager_internals_resources',
48 'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd',
50 'includes': [ '../build/grit_action.gypi' ],
53 # GN version: //chrome/browser/resources:signin_internals_resources
54 'action_name': 'generate_signin_internals_resources',
56 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
58 'includes': ['../build/grit_action.gypi' ],
61 # GN version: //chrome/browser/resources:sync_internals_resources
62 'action_name': 'generate_sync_internals_resources',
64 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
66 'includes': [ '../build/grit_action.gypi' ],
69 # GN version: //chrome/browser/resources:translate_internals_resources
70 'action_name': 'generate_translate_internals_resources',
72 'grit_grd_file': 'browser/resources/translate_internals_resources.grd',
74 'includes': [ '../build/grit_action.gypi' ],
77 'includes': [ '../build/grit_target.gypi' ],
81 '../components/components_resources.gyp:components_resources',
82 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
83 '../content/browser/tracing/tracing_resources.gyp:tracing_resources',
84 'browser/devtools/webrtc_device_provider_resources.gyp:webrtc_device_provider_resources',
88 # GN version: //chrome/browser/resources:component_extension_resources
89 'action_name': 'generate_component_extension_resources',
91 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
93 'includes': [ '../build/grit_action.gypi' ],
96 # GN version: //chrome/browser/resources:options_resources
97 'action_name': 'generate_options_resources',
99 'grit_grd_file': 'browser/resources/options_resources.grd',
101 'includes': [ '../build/grit_action.gypi' ],
106 # GN version: //chrome/browser/resources:extension_resource_demo
107 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
109 'browser/resources/extension_resource/demo/library.js',
114 ['chromeos==1 and disable_nacl==0 and disable_nacl_untrusted==0', {
116 'browser/resources/chromeos/chromevox/chromevox.gyp:chromevox',
119 ['enable_extensions==1', {
122 # GN version: //chrome/browser/resources:quota_internals_resources
123 'action_name': 'generate_quota_internals_resources',
125 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
127 'includes': [ '../build/grit_action.gypi' ],
130 # GN version: //chrome/browser/resources:sync_file_system_internals_resources
131 'action_name': 'generate_sync_file_system_internals_resources',
133 'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd',
135 'includes': [ '../build/grit_action.gypi' ],
142 # GN version: //chrome/browser:chrome_internal_resources_gen
143 'target_name': 'chrome_internal_resources_gen',
146 ['branding=="Chrome"', {
149 'action_name': 'generate_transform_additional_modules_list',
151 'additional_modules_input_path':
152 'browser/internal/resources/additional_modules_list.input',
153 'additional_modules_py_path':
154 'browser/internal/transform_additional_modules_list.py',
157 '<(additional_modules_input_path)',
160 '<(additional_modules_list_file)',
164 '<(additional_modules_py_path)',
165 '<(additional_modules_input_path)',
168 'message': 'Transforming additional modules list',
175 # TODO(mark): It would be better if each static library that needed
176 # to run grit would list its own .grd files, but unfortunately some
177 # of the static libraries currently have circular dependencies among
180 # GN version: //chrome:resources
181 'target_name': 'chrome_resources',
185 'chrome_internal_resources_gen',
186 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings',
190 # GN version: //chrome/browser:resources
191 'action_name': 'generate_browser_resources',
193 'grit_grd_file': 'browser/browser_resources.grd',
194 'grit_additional_defines': [
195 '-E', 'about_credits_file=<(about_credits_file)',
196 '-E', 'additional_modules_list_file=<(additional_modules_list_file)',
197 '-E', 'omnibox_mojom_file=<(omnibox_mojom_file)',
200 'includes': [ '../build/grit_action.gypi' ],
203 # GN version: //chrome/common:resources
204 'action_name': 'generate_common_resources',
206 'grit_grd_file': 'common/common_resources.grd',
208 'includes': [ '../build/grit_action.gypi' ],
211 # GN version: //chrome/renderer:resources
212 'action_name': 'generate_renderer_resources',
214 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
216 'includes': [ '../build/grit_action.gypi' ],
220 ['enable_extensions==1', {
223 # GN version: //chrome/common:extensions_api_resources
224 'action_name': 'generate_extensions_api_resources',
226 'grit_grd_file': 'common/extensions_api_resources.grd',
228 'includes': [ '../build/grit_action.gypi' ],
233 'includes': [ '../build/grit_target.gypi' ],
236 # TODO(mark): It would be better if each static library that needed
237 # to run grit would list its own .grd files, but unfortunately some
238 # of the static libraries currently have circular dependencies among
241 # GN version: //chrome:strings
242 'target_name': 'chrome_strings',
246 # GN version: //chrome/app/resources:locale_settings
247 'action_name': 'generate_locale_settings',
249 'grit_grd_file': 'app/resources/locale_settings.grd',
251 'includes': [ '../build/grit_action.gypi' ],
254 # GN version: //chrome/app:chromium_strings
255 'action_name': 'generate_chromium_strings',
257 'grit_grd_file': 'app/chromium_strings.grd',
259 'includes': [ '../build/grit_action.gypi' ],
262 # GN version: //chrome/app:generated_resources
263 'action_name': 'generate_generated_resources',
265 'grit_grd_file': 'app/generated_resources.grd',
267 'includes': [ '../build/grit_action.gypi' ],
270 # GN version: //chrome/app:google_chrome_strings
271 'action_name': 'generate_google_chrome_strings',
273 'grit_grd_file': 'app/google_chrome_strings.grd',
275 'includes': [ '../build/grit_action.gypi' ],
280 # GN version: //chrome/app:make_generated_resources_map
281 'target_name': 'chrome_strings_map',
283 'dependencies': [ 'chrome_strings', ],
286 'action_name': 'generate_resources_map',
288 'browser/metrics/variations/generate_resources_map.py',
289 '<(grit_out_dir)/grit/generated_resources.h'
292 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
296 'browser/metrics/variations/generate_resources_map.py',
297 '<(grit_out_dir)/grit/generated_resources.h',
298 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc'
300 'message': 'Generating generated resources map.',
305 # GN version: //chrome/app/resources:platform_locale_settings
306 'target_name': 'platform_locale_settings',
311 'platform_locale_settings_grd':
312 'app/resources/locale_settings_win.grd',
318 ['branding=="Chrome"', {
319 'platform_locale_settings_grd':
320 'app/resources/locale_settings_google_chromeos.grd',
321 }, { # branding!=Chrome
322 'platform_locale_settings_grd':
323 'app/resources/locale_settings_chromiumos.grd',
327 'platform_locale_settings_grd':
328 'app/resources/locale_settings_linux.grd',
332 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
333 'platform_locale_settings_grd':
334 'app/resources/locale_settings_linux.grd',
336 ['OS == "mac" or OS == "ios"', {
337 'platform_locale_settings_grd':
338 'app/resources/locale_settings_mac.grd',
344 'action_name': 'generate_platform_locale_settings',
346 'grit_grd_file': '<(platform_locale_settings_grd)',
348 'includes': [ '../build/grit_action.gypi' ],
351 'includes': [ '../build/grit_target.gypi' ],
354 # GN version: //chrome/app/theme:theme_resources
355 'target_name': 'theme_resources',
358 '../ui/resources/ui_resources.gyp:ui_resources',
359 'chrome_unscaled_resources',
363 'action_name': 'generate_theme_resources',
365 'grit_grd_file': 'app/theme/theme_resources.grd',
367 'includes': [ '../build/grit_action.gypi' ],
370 'includes': [ '../build/grit_target.gypi' ],
373 # GN version: //chrome:packed_extra_resources
374 'target_name': 'packed_extra_resources',
377 'chrome_extra_resources',
382 'includes': ['chrome_repack_resources.gypi']
386 ['OS != "mac" and OS != "ios"', {
387 # We'll install the resource files to the product directory. The Mac
388 # copies the results over as bundle resources in its own special way.
391 'destination': '<(PRODUCT_DIR)',
393 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
401 # GN version: //chrome:packed_resources
402 'target_name': 'packed_resources',
405 # MSVS needs the dependencies explictly named, Make is able to
406 # derive the dependencies from the output files.
409 'platform_locale_settings',
411 '<(DEPTH)/components/components_strings.gyp:components_strings',
412 '<(DEPTH)/net/net.gyp:net_resources',
413 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
414 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
418 # GN version: //chrome:repack_locales_pack
419 'action_name': 'repack_locales_pack',
421 'pak_locales': '<(locales)',
423 'includes': ['chrome_repack_locales.gypi']
426 # GN version: //chrome:repack_pseudo_locales_pack
427 'action_name': 'repack_pseudo_locales_pack',
429 'pak_locales': '<(pseudo_locales)',
431 'includes': ['chrome_repack_locales.gypi']
434 'includes': ['chrome_repack_chrome_100_percent.gypi']
437 'includes': ['chrome_repack_chrome_200_percent.gypi']
443 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources',
444 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
445 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
452 'includes': ['chrome_repack_chrome_300_percent.gypi']
460 '<(DEPTH)/ash/ash_resources.gyp:ash_resources',
461 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
466 '<(DEPTH)/remoting/remoting.gyp:remoting_resources',
467 '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources',
468 '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings',
471 ['enable_autofill_dialog==1 and OS!="android"', {
473 '<(DEPTH)/third_party/libaddressinput/libaddressinput.gyp:libaddressinput_strings',
476 ['enable_extensions==1', {
478 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:device_bluetooth_strings',
479 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
482 ['OS != "mac" and OS != "ios"', {
483 # Copy pak files to the product directory. These files will be picked
484 # up by the following installer scripts:
485 # - Windows: chrome/installer/mini_installer/chrome.release
486 # - Linux: chrome/installer/linux/internal/common/installer.include
487 # Ensure that the above scripts are updated when adding or removing
489 # Copying files to the product directory is not needed on the Mac
490 # since the framework build phase will copy them into the framework
494 'destination': '<(PRODUCT_DIR)',
496 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
500 'destination': '<(PRODUCT_DIR)/locales',
502 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
506 'destination': '<(PRODUCT_DIR)/pseudo_locales',
508 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
513 ['branding=="Chrome"', {
516 # This location is for the Windows and Linux builds. For
517 # Windows, the chrome.release file ensures that these files
518 # are copied into the installer. Note that we have a separate
519 # section in chrome_dll.gyp to copy these files for Mac, as it
520 # needs to be dropped inside the framework.
521 'destination': '<(PRODUCT_DIR)/default_apps',
522 'files': ['<@(default_apps_list)']
526 ['enable_hidpi == 1', {
529 'destination': '<(PRODUCT_DIR)',
531 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
537 }], # end OS != "mac" and OS != "ios"
541 # GN version: //chrome/app/theme:chrome_unscaled_resources
542 'target_name': 'chrome_unscaled_resources',
546 'action_name': 'generate_chrome_unscaled_resources',
548 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
550 'includes': [ '../build/grit_action.gypi' ],
553 'includes': [ '../build/grit_target.gypi' ],
556 # GN version: //chrome/browser/resources:options_test_resources
557 'target_name': 'options_test_resources',
561 'action_name': 'generate_options_test_resources',
563 'grit_grd_file': 'browser/resources/options_test_resources.grd',
565 'includes': [ '../build/grit_action.gypi' ],
568 'includes': [ '../build/grit_target.gypi' ],
571 # GN version: //chrome:browser_tests_pak
572 'target_name': 'browser_tests_pak',
575 'options_test_resources',
579 'action_name': 'repack_browser_tests_pak',
582 '<(SHARED_INTERMEDIATE_DIR)/chrome/options_test_resources.pak',
584 'pak_output': '<(PRODUCT_DIR)/browser_tests.pak',
586 'includes': [ '../build/repack_action.gypi' ],
591 # GN version: //chrome/browser:about_credits
592 'target_name': 'about_credits',
597 'generator_path': '../tools/licenses.py',
599 'action_name': 'generate_about_credits',
601 # TODO(phajdan.jr): make licenses.py print license input files so
602 # about:credits gets rebuilt when one changes.
604 'browser/resources/about_credits.tmpl',
605 'browser/resources/about_credits_entry.tmpl',
608 '<(about_credits_file)',
610 'hard_dependency': 1,
614 '<(about_credits_file)',
616 'message': 'Generating about:credits',