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 'target_name': 'chrome_extra_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
17 # it easier for us to reference them internally.
20 'action_name': 'generate_memory_internals_resources',
22 'grit_grd_file': 'browser/resources/memory_internals_resources.grd',
24 'includes': [ '../build/grit_action.gypi' ],
27 'action_name': 'generate_net_internals_resources',
29 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
31 'includes': [ '../build/grit_action.gypi' ],
34 'action_name': 'generate_invalidations_resources',
36 'grit_grd_file': 'browser/resources/invalidations_resources.grd',
38 'includes': ['../build/grit_action.gypi' ],
41 'action_name': 'generate_password_manager_internals_resources',
43 'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd',
45 'includes': [ '../build/grit_action.gypi' ],
48 'action_name': 'generate_signin_internals_resources',
50 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
52 'includes': ['../build/grit_action.gypi' ],
55 'action_name': 'generate_sync_internals_resources',
57 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
59 'includes': [ '../build/grit_action.gypi' ],
62 'action_name': 'generate_translate_internals_resources',
64 'grit_grd_file': 'browser/resources/translate_internals_resources.grd',
66 'includes': [ '../build/grit_action.gypi' ],
69 'includes': [ '../build/grit_target.gypi' ],
73 '../components/components_resources.gyp:components_resources',
74 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
75 '../content/browser/tracing/tracing_resources.gyp:tracing_resources',
79 'action_name': 'generate_component_extension_resources',
81 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
83 'includes': [ '../build/grit_action.gypi' ],
86 'action_name': 'generate_options_resources',
88 'grit_grd_file': 'browser/resources/options_resources.grd',
90 'includes': [ '../build/grit_action.gypi' ],
93 'action_name': 'generate_quota_internals_resources',
95 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
97 'includes': [ '../build/grit_action.gypi' ],
100 'action_name': 'generate_sync_file_system_internals_resources',
102 'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd',
104 'includes': [ '../build/grit_action.gypi' ],
109 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
111 'browser/resources/extension_resource/demo/library.js',
116 ['chromeos==1 and disable_nacl==0 and disable_nacl_untrusted==0', {
118 # TODO(dtseng): Remove use_chromevox_next once ChromeVox Next is ready for testing.
119 ['use_chromevox_next==1', {
121 'browser/resources/chromeos/chromevox2/chromevox.gyp:chromevox2',
123 }, { # else use_chromevox_next == 0
125 'browser/resources/chromeos/chromevox/chromevox.gyp:chromevox',
133 'target_name': 'chrome_internal_resources_gen',
136 ['branding=="Chrome"', {
139 'action_name': 'generate_transform_additional_modules_list',
141 'additional_modules_input_path':
142 'browser/internal/resources/additional_modules_list.input',
143 'additional_modules_py_path':
144 'browser/internal/transform_additional_modules_list.py',
147 '<(additional_modules_input_path)',
150 '<(additional_modules_list_file)',
154 '<(additional_modules_py_path)',
155 '<(additional_modules_input_path)',
158 'message': 'Transforming additional modules list',
165 # TODO(mark): It would be better if each static library that needed
166 # to run grit would list its own .grd files, but unfortunately some
167 # of the static libraries currently have circular dependencies among
169 'target_name': 'chrome_resources',
173 'chrome_internal_resources_gen',
174 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings',
178 'action_name': 'generate_browser_resources',
180 'grit_grd_file': 'browser/browser_resources.grd',
181 'grit_additional_defines': [
182 '-E', 'about_credits_file=<(about_credits_file)',
183 '-E', 'additional_modules_list_file=<(additional_modules_list_file)',
184 '-E', 'omnibox_mojom_file=<(omnibox_mojom_file)',
187 'includes': [ '../build/grit_action.gypi' ],
190 'action_name': 'generate_common_resources',
192 'grit_grd_file': 'common/common_resources.grd',
194 'includes': [ '../build/grit_action.gypi' ],
197 'action_name': 'generate_renderer_resources',
199 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
201 'includes': [ '../build/grit_action.gypi' ],
205 ['enable_extensions==1', {
208 'action_name': 'generate_extensions_api_resources',
210 'grit_grd_file': 'common/extensions_api_resources.grd',
212 'includes': [ '../build/grit_action.gypi' ],
217 'includes': [ '../build/grit_target.gypi' ],
220 # 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
222 # of the static libraries currently have circular dependencies among
224 'target_name': 'chrome_strings',
228 'action_name': 'generate_locale_settings',
230 'grit_grd_file': 'app/resources/locale_settings.grd',
232 'includes': [ '../build/grit_action.gypi' ],
235 'action_name': 'generate_chromium_strings',
237 'grit_grd_file': 'app/chromium_strings.grd',
239 'includes': [ '../build/grit_action.gypi' ],
242 'action_name': 'generate_generated_resources',
244 'grit_grd_file': 'app/generated_resources.grd',
246 'includes': [ '../build/grit_action.gypi' ],
249 'action_name': 'generate_google_chrome_strings',
251 'grit_grd_file': 'app/google_chrome_strings.grd',
253 'includes': [ '../build/grit_action.gypi' ],
256 'includes': [ '../build/grit_target.gypi' ],
259 'target_name': 'chrome_strings_map',
261 'dependencies': [ 'chrome_strings', ],
264 'action_name': 'generate_resources_map',
266 '<(grit_out_dir)/grit/generated_resources.h'
269 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc',
273 'browser/metrics/variations/generate_resources_map.py',
274 '<(grit_out_dir)/grit/generated_resources.h',
275 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc'
277 'message': 'Generating generated resources map.',
282 'target_name': 'platform_locale_settings',
287 'platform_locale_settings_grd':
288 'app/resources/locale_settings_win.grd',
294 ['branding=="Chrome"', {
295 'platform_locale_settings_grd':
296 'app/resources/locale_settings_google_chromeos.grd',
297 }, { # branding!=Chrome
298 'platform_locale_settings_grd':
299 'app/resources/locale_settings_chromiumos.grd',
303 'platform_locale_settings_grd':
304 'app/resources/locale_settings_linux.grd',
308 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
309 'platform_locale_settings_grd':
310 'app/resources/locale_settings_linux.grd',
312 ['OS == "mac" or OS == "ios"', {
313 'platform_locale_settings_grd':
314 'app/resources/locale_settings_mac.grd',
320 'action_name': 'generate_platform_locale_settings',
322 'grit_grd_file': '<(platform_locale_settings_grd)',
324 'includes': [ '../build/grit_action.gypi' ],
327 'includes': [ '../build/grit_target.gypi' ],
330 'target_name': 'theme_resources',
333 '../ui/resources/ui_resources.gyp:ui_resources',
334 'chrome_unscaled_resources',
338 'action_name': 'generate_theme_resources',
340 'grit_grd_file': 'app/theme/theme_resources.grd',
342 'includes': [ '../build/grit_action.gypi' ],
345 'includes': [ '../build/grit_target.gypi' ],
348 'target_name': 'packed_extra_resources',
351 'chrome_extra_resources',
356 'includes': ['chrome_repack_resources.gypi']
360 ['OS != "mac" and OS != "ios"', {
361 # We'll install the resource files to the product directory. The Mac
362 # copies the results over as bundle resources in its own special way.
365 'destination': '<(PRODUCT_DIR)',
367 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
375 'target_name': 'packed_resources',
378 # MSVS needs the dependencies explictly named, Make is able to
379 # derive the dependencies from the output files.
382 'platform_locale_settings',
384 '<(DEPTH)/components/components_strings.gyp:components_strings',
385 '<(DEPTH)/net/net.gyp:net_resources',
386 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
387 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
391 'action_name': 'repack_locales_pack',
393 'pak_locales': '<(locales)',
395 'includes': ['chrome_repack_locales.gypi']
398 'action_name': 'repack_pseudo_locales_pack',
400 'pak_locales': '<(pseudo_locales)',
402 'includes': ['chrome_repack_locales.gypi']
405 'includes': ['chrome_repack_chrome_100_percent.gypi']
408 'includes': ['chrome_repack_chrome_200_percent.gypi']
414 '<(DEPTH)/content/content_resources.gyp:content_resources',
415 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:device_bluetooth_strings',
416 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
417 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
418 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
423 '<(DEPTH)/ash/ash_resources.gyp:ash_resources',
424 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
427 ['enable_autofill_dialog==1 and OS!="android"', {
429 '<(DEPTH)/third_party/libaddressinput/libaddressinput.gyp:libaddressinput_strings',
432 ['OS != "mac" and OS != "ios"', {
433 # Copy pak files to the product directory. These files will be picked
434 # up by the following installer scripts:
435 # - Windows: chrome/installer/mini_installer/chrome.release
436 # - Linux: chrome/installer/linux/internal/common/installer.include
437 # Ensure that the above scripts are updated when adding or removing
439 # Copying files to the product directory is not needed on the Mac
440 # since the framework build phase will copy them into the framework
444 'destination': '<(PRODUCT_DIR)',
446 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
450 'destination': '<(PRODUCT_DIR)/locales',
452 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
456 'destination': '<(PRODUCT_DIR)/pseudo_locales',
458 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
463 ['branding=="Chrome"', {
466 # This location is for the Windows and Linux builds. For
467 # Windows, the chrome.release file ensures that these files
468 # are copied into the installer. Note that we have a separate
469 # section in chrome_dll.gyp to copy these files for Mac, as it
470 # needs to be dropped inside the framework.
471 'destination': '<(PRODUCT_DIR)/default_apps',
472 'files': ['<@(default_apps_list)']
476 ['enable_hidpi == 1', {
479 'destination': '<(PRODUCT_DIR)',
481 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
487 }], # end OS != "mac" and OS != "ios"
491 'target_name': 'chrome_unscaled_resources',
495 'action_name': 'generate_chrome_unscaled_resources',
497 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
499 'includes': [ '../build/grit_action.gypi' ],
502 'includes': [ '../build/grit_target.gypi' ],
505 'target_name': 'about_credits',
510 'generator_path': '../tools/licenses.py',
512 'action_name': 'generate_about_credits',
514 # TODO(phajdan.jr): make licenses.py print inputs too.
518 '<(about_credits_file)',
520 'hard_dependency': 1,
524 '<(about_credits_file)',
526 'message': 'Generating about:credits',