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': 'memory_internals_resources',
22 'grit_grd_file': 'browser/resources/memory_internals_resources.grd',
24 'includes': [ '../build/grit_action.gypi' ],
27 'action_name': 'net_internals_resources',
29 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
31 'includes': [ '../build/grit_action.gypi' ],
34 'action_name': 'invalidations_resources',
36 'grit_grd_file': 'browser/resources/invalidations_resources.grd',
38 'includes': ['../build/grit_action.gypi' ],
41 'action_name': 'password_manager_internals_resources',
43 'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd',
45 'includes': [ '../build/grit_action.gypi' ],
48 'action_name': 'signin_internals_resources',
50 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
52 'includes': ['../build/grit_action.gypi' ],
55 'action_name': 'sync_internals_resources',
57 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
59 'includes': [ '../build/grit_action.gypi' ],
62 'action_name': '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': 'component_extension_resources',
81 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
83 'includes': [ '../build/grit_action.gypi' ],
86 'action_name': 'options_resources',
88 'grit_grd_file': 'browser/resources/options_resources.grd',
90 'includes': [ '../build/grit_action.gypi' ],
93 'action_name': 'quota_internals_resources',
95 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
97 'includes': [ '../build/grit_action.gypi' ],
100 'action_name': '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 '../chrome/third_party/chromevox/chromevox.gyp:chromevox_resources',
125 'target_name': 'chrome_internal_resources_gen',
128 ['branding=="Chrome"', {
131 'action_name': 'transform_additional_modules_list',
133 'additional_modules_input_path':
134 'browser/internal/resources/additional_modules_list.input',
135 'additional_modules_py_path':
136 'browser/internal/transform_additional_modules_list.py',
139 '<(additional_modules_input_path)',
142 '<(additional_modules_list_file)',
146 '<(additional_modules_py_path)',
147 '<(additional_modules_input_path)',
150 'message': 'Transforming additional modules list',
157 # TODO(mark): It would be better if each static library that needed
158 # to run grit would list its own .grd files, but unfortunately some
159 # of the static libraries currently have circular dependencies among
161 'target_name': 'chrome_resources',
165 'chrome_internal_resources_gen',
166 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings',
171 'action_name': 'browser_resources',
173 'grit_grd_file': 'browser/browser_resources.grd',
174 'grit_additional_defines': [
175 '-E', 'about_credits_file=<(about_credits_file)',
176 '-E', 'additional_modules_list_file=<(additional_modules_list_file)',
177 '-E', 'omnibox_mojom_file=<(omnibox_mojom_file)',
180 'includes': [ '../build/grit_action.gypi' ],
183 'action_name': 'common_resources',
185 'grit_grd_file': 'common/common_resources.grd',
187 'includes': [ '../build/grit_action.gypi' ],
190 'action_name': 'renderer_resources',
192 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
194 'includes': [ '../build/grit_action.gypi' ],
198 ['enable_extensions==1', {
201 'action_name': 'extensions_api_resources',
203 'grit_grd_file': 'common/extensions_api_resources.grd',
205 'includes': [ '../build/grit_action.gypi' ],
210 'includes': [ '../build/grit_target.gypi' ],
213 # TODO(mark): It would be better if each static library that needed
214 # to run grit would list its own .grd files, but unfortunately some
215 # of the static libraries currently have circular dependencies among
217 'target_name': 'chrome_strings',
220 # Localizable resources.
222 'action_name': 'locale_settings',
224 'grit_grd_file': 'app/resources/locale_settings.grd',
226 'includes': [ '../build/grit_action.gypi' ],
229 'action_name': 'chromium_strings.grd',
231 'grit_grd_file': 'app/chromium_strings.grd',
233 'includes': [ '../build/grit_action.gypi' ],
236 'action_name': 'generated_resources',
238 'grit_grd_file': 'app/generated_resources.grd',
240 'includes': [ '../build/grit_action.gypi' ],
243 'action_name': 'google_chrome_strings',
245 'grit_grd_file': 'app/google_chrome_strings.grd',
247 'includes': [ '../build/grit_action.gypi' ],
250 'includes': [ '../build/grit_target.gypi' ],
253 'target_name': 'platform_locale_settings',
258 'platform_locale_settings_grd':
259 'app/resources/locale_settings_win.grd',
265 ['branding=="Chrome"', {
266 'platform_locale_settings_grd':
267 'app/resources/locale_settings_google_chromeos.grd',
268 }, { # branding!=Chrome
269 'platform_locale_settings_grd':
270 'app/resources/locale_settings_chromiumos.grd',
274 'platform_locale_settings_grd':
275 'app/resources/locale_settings_linux.grd',
279 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
280 'platform_locale_settings_grd':
281 'app/resources/locale_settings_linux.grd',
283 ['OS == "mac" or OS == "ios"', {
284 'platform_locale_settings_grd':
285 'app/resources/locale_settings_mac.grd',
291 'action_name': 'platform_locale_settings',
293 'grit_grd_file': '<(platform_locale_settings_grd)',
295 'includes': [ '../build/grit_action.gypi' ],
298 'includes': [ '../build/grit_target.gypi' ],
301 'target_name': 'theme_resources_gen',
305 'action_name': 'theme_resources',
307 'grit_grd_file': 'app/theme/theme_resources.grd',
309 'includes': [ '../build/grit_action.gypi' ],
312 'includes': [ '../build/grit_target.gypi' ],
315 'target_name': 'theme_resources',
318 'chrome_unscaled_resources',
319 'theme_resources_gen',
320 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
324 'target_name': 'packed_extra_resources',
327 'chrome_extra_resources',
332 'includes': ['chrome_repack_resources.gypi']
336 ['OS != "mac" and OS != "ios"', {
337 # We'll install the resource files to the product directory. The Mac
338 # copies the results over as bundle resources in its own special way.
341 'destination': '<(PRODUCT_DIR)',
343 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
351 'target_name': 'packed_resources',
354 # MSVS needs the dependencies explictly named, Make is able to
355 # derive the dependencies from the output files.
358 'platform_locale_settings',
360 '<(DEPTH)/components/components_strings.gyp:components_strings',
361 '<(DEPTH)/net/net.gyp:net_resources',
362 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
363 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
367 'action_name': 'repack_locales_pack',
369 'pak_locales': '<(locales)',
371 'includes': ['chrome_repack_locales.gypi']
374 'action_name': 'repack_pseudo_locales_pack',
376 'pak_locales': '<(pseudo_locales)',
378 'includes': ['chrome_repack_locales.gypi']
381 'includes': ['chrome_repack_chrome_100_percent.gypi']
384 'includes': ['chrome_repack_chrome_200_percent.gypi']
390 '<(DEPTH)/content/content_resources.gyp:content_resources',
391 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:device_bluetooth_strings',
392 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
393 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
394 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
399 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
400 '<(DEPTH)/ash/ash.gyp:ash_resources',
403 ['enable_autofill_dialog==1 and OS!="android"', {
405 '<(DEPTH)/third_party/libaddressinput/libaddressinput.gyp:libaddressinput_strings',
408 ['OS != "mac" and OS != "ios"', {
409 # Copy pak files to the product directory. These files will be picked
410 # up by the following installer scripts:
411 # - Windows: chrome/installer/mini_installer/chrome.release
412 # - Linux: chrome/installer/linux/internal/common/installer.include
413 # Ensure that the above scripts are updated when adding or removing
415 # Copying files to the product directory is not needed on the Mac
416 # since the framework build phase will copy them into the framework
420 'destination': '<(PRODUCT_DIR)',
422 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
426 'destination': '<(PRODUCT_DIR)/locales',
428 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
432 'destination': '<(PRODUCT_DIR)/pseudo_locales',
434 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
439 ['branding=="Chrome"', {
442 # This location is for the Windows and Linux builds. For
443 # Windows, the chrome.release file ensures that these files
444 # are copied into the installer. Note that we have a separate
445 # section in chrome_dll.gyp to copy these files for Mac, as it
446 # needs to be dropped inside the framework.
447 'destination': '<(PRODUCT_DIR)/default_apps',
448 'files': ['<@(default_apps_list)']
452 ['enable_hidpi == 1', {
455 'destination': '<(PRODUCT_DIR)',
457 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
463 }], # end OS != "mac" and OS != "ios"
467 'target_name': 'chrome_unscaled_resources',
470 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
474 'action_name': 'chrome_unscaled_resources',
476 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
478 'includes': [ '../build/grit_action.gypi' ],
481 'includes': [ '../build/grit_target.gypi' ],
484 'target_name': 'about_credits',
489 'generator_path': '../tools/licenses.py',
491 'action_name': 'generate_about_credits',
493 # TODO(phajdan.jr): make licenses.py print inputs too.
497 '<(about_credits_file)',
499 'hard_dependency': 1,
503 '<(about_credits_file)',
505 'message': 'Generating about:credits',
510 'target_name': 'chromevox_strings',
514 'action_name': 'chromevox_strings',
516 'grit_grd_file': 'browser/resources/chromeos/chromevox/strings/chromevox_strings.grd',
517 # TODO(plundblad): Change to use PRODUCT_DIR when we have
519 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/resources/chromeos/chromevox',
520 # We don't generate any RC files, so no resource_ds file is needed.
521 'grit_resource_ids': '',
523 'includes': [ '../build/grit_action.gypi' ],