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',
12 'target_name': 'chrome_extra_resources',
14 # These resources end up in resources.pak because they are resources
15 # used by internal pages. Putting them in a separate pak file makes
16 # it easier for us to reference them internally.
19 'action_name': 'memory_internals_resources',
21 'grit_grd_file': 'browser/resources/memory_internals_resources.grd',
23 'includes': [ '../build/grit_action.gypi' ],
26 'action_name': 'net_internals_resources',
28 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
30 'includes': [ '../build/grit_action.gypi' ],
33 'action_name': 'invalidations_resources',
35 'grit_grd_file': 'browser/resources/invalidations_resources.grd',
37 'includes': ['../build/grit_action.gypi' ],
40 'action_name': 'password_manager_internals_resources',
42 'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd',
44 'includes': [ '../build/grit_action.gypi' ],
47 'action_name': 'signin_internals_resources',
49 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
51 'includes': ['../build/grit_action.gypi' ],
54 'action_name': 'sync_internals_resources',
56 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
58 'includes': [ '../build/grit_action.gypi' ],
61 'action_name': 'translate_internals_resources',
63 'grit_grd_file': 'browser/resources/translate_internals_resources.grd',
65 'includes': [ '../build/grit_action.gypi' ],
68 'includes': [ '../build/grit_target.gypi' ],
72 '../components/components_resources.gyp:components_resources',
73 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
74 '../content/browser/tracing/tracing_resources.gyp:tracing_resources',
78 'action_name': 'component_extension_resources',
80 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
82 'includes': [ '../build/grit_action.gypi' ],
85 'action_name': 'options_resources',
87 'grit_grd_file': 'browser/resources/options_resources.grd',
89 'includes': [ '../build/grit_action.gypi' ],
92 'action_name': 'quota_internals_resources',
94 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
96 'includes': [ '../build/grit_action.gypi' ],
99 'action_name': 'sync_file_system_internals_resources',
101 'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd',
103 'includes': [ '../build/grit_action.gypi' ],
108 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
110 'browser/resources/extension_resource/demo/library.js',
115 ['chromeos==1 and disable_nacl==0 and disable_nacl_untrusted==0', {
117 '../chrome/third_party/chromevox/chromevox.gyp:chromevox_resources',
123 'target_name': 'chrome_internal_resources_gen',
126 ['branding=="Chrome"', {
129 'action_name': 'transform_additional_modules_list',
131 'additional_modules_input_path':
132 'browser/internal/resources/additional_modules_list.input',
133 'additional_modules_py_path':
134 'browser/internal/transform_additional_modules_list.py',
137 '<(additional_modules_input_path)',
140 '<(additional_modules_list_file)',
144 '<(additional_modules_py_path)',
145 '<(additional_modules_input_path)',
148 'message': 'Transforming additional modules list',
155 # TODO(mark): It would be better if each static library that needed
156 # to run grit would list its own .grd files, but unfortunately some
157 # of the static libraries currently have circular dependencies among
159 'target_name': 'chrome_resources',
163 'chrome_internal_resources_gen',
168 'action_name': 'browser_resources',
170 'grit_grd_file': 'browser/browser_resources.grd',
171 'grit_additional_defines': [
172 '-E', 'about_credits_file=<(about_credits_file)',
173 '-E', 'additional_modules_list_file=<(additional_modules_list_file)',
176 'includes': [ '../build/grit_action.gypi' ],
179 'action_name': 'common_resources',
181 'grit_grd_file': 'common/common_resources.grd',
183 'includes': [ '../build/grit_action.gypi' ],
186 'action_name': 'renderer_resources',
188 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
190 'includes': [ '../build/grit_action.gypi' ],
194 ['enable_extensions==1', {
197 'action_name': 'extensions_api_resources',
199 'grit_grd_file': 'common/extensions_api_resources.grd',
201 'includes': [ '../build/grit_action.gypi' ],
206 'includes': [ '../build/grit_target.gypi' ],
209 # TODO(mark): It would be better if each static library that needed
210 # to run grit would list its own .grd files, but unfortunately some
211 # of the static libraries currently have circular dependencies among
213 'target_name': 'chrome_strings',
216 # Localizable resources.
218 'action_name': 'locale_settings',
220 'grit_grd_file': 'app/resources/locale_settings.grd',
222 'includes': [ '../build/grit_action.gypi' ],
225 'action_name': 'chromium_strings.grd',
227 'grit_grd_file': 'app/chromium_strings.grd',
229 'includes': [ '../build/grit_action.gypi' ],
232 'action_name': 'generated_resources',
234 'grit_grd_file': 'app/generated_resources.grd',
236 'includes': [ '../build/grit_action.gypi' ],
239 'action_name': 'google_chrome_strings',
241 'grit_grd_file': 'app/google_chrome_strings.grd',
243 'includes': [ '../build/grit_action.gypi' ],
246 'includes': [ '../build/grit_target.gypi' ],
249 'target_name': 'platform_locale_settings',
254 'platform_locale_settings_grd':
255 'app/resources/locale_settings_win.grd',
261 ['branding=="Chrome"', {
262 'platform_locale_settings_grd':
263 'app/resources/locale_settings_google_chromeos.grd',
264 }, { # branding!=Chrome
265 'platform_locale_settings_grd':
266 'app/resources/locale_settings_chromiumos.grd',
270 'platform_locale_settings_grd':
271 'app/resources/locale_settings_linux.grd',
275 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
276 'platform_locale_settings_grd':
277 'app/resources/locale_settings_linux.grd',
279 ['OS == "mac" or OS == "ios"', {
280 'platform_locale_settings_grd':
281 'app/resources/locale_settings_mac.grd',
287 'action_name': 'platform_locale_settings',
289 'grit_grd_file': '<(platform_locale_settings_grd)',
291 'includes': [ '../build/grit_action.gypi' ],
294 'includes': [ '../build/grit_target.gypi' ],
297 'target_name': 'theme_resources_gen',
301 'action_name': 'theme_resources',
303 'grit_grd_file': 'app/theme/theme_resources.grd',
305 'includes': [ '../build/grit_action.gypi' ],
308 'includes': [ '../build/grit_target.gypi' ],
311 'target_name': 'theme_resources',
314 'chrome_unscaled_resources',
315 'theme_resources_gen',
316 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
320 'target_name': 'packed_extra_resources',
323 'chrome_extra_resources',
328 'includes': ['chrome_repack_resources.gypi']
332 ['OS != "mac" and OS != "ios"', {
333 # We'll install the resource files to the product directory. The Mac
334 # copies the results over as bundle resources in its own special way.
337 'destination': '<(PRODUCT_DIR)',
339 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
347 'target_name': 'packed_resources',
350 # MSVS needs the dependencies explictly named, Make is able to
351 # derive the dependencies from the output files.
354 'platform_locale_settings',
356 '<(DEPTH)/components/components_strings.gyp:components_strings',
357 '<(DEPTH)/net/net.gyp:net_resources',
358 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
359 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
363 'action_name': 'repack_locales_pack',
365 'pak_locales': '<(locales)',
367 'includes': ['chrome_repack_locales.gypi']
370 'action_name': 'repack_pseudo_locales_pack',
372 'pak_locales': '<(pseudo_locales)',
374 'includes': ['chrome_repack_locales.gypi']
377 'includes': ['chrome_repack_chrome_100_percent.gypi']
380 'includes': ['chrome_repack_chrome_200_percent.gypi']
386 '<(DEPTH)/content/content_resources.gyp:content_resources',
387 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:device_bluetooth_strings',
388 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
389 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
390 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
395 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
396 '<(DEPTH)/ash/ash.gyp:ash_resources',
399 ['enable_autofill_dialog==1 and OS!="android"', {
401 '<(DEPTH)/third_party/libaddressinput/libaddressinput.gyp:libaddressinput_strings',
404 ['OS != "mac" and OS != "ios"', {
405 # Copy pak files to the product directory. These files will be picked
406 # up by the following installer scripts:
407 # - Windows: chrome/installer/mini_installer/chrome.release
408 # - Linux: chrome/installer/linux/internal/common/installer.include
409 # Ensure that the above scripts are updated when adding or removing
411 # Copying files to the product directory is not needed on the Mac
412 # since the framework build phase will copy them into the framework
416 'destination': '<(PRODUCT_DIR)',
418 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
422 'destination': '<(PRODUCT_DIR)/locales',
424 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
428 'destination': '<(PRODUCT_DIR)/pseudo_locales',
430 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
435 ['branding=="Chrome"', {
438 # This location is for the Windows and Linux builds. For
439 # Windows, the chrome.release file ensures that these files
440 # are copied into the installer. Note that we have a separate
441 # section in chrome_dll.gyp to copy these files for Mac, as it
442 # needs to be dropped inside the framework.
443 'destination': '<(PRODUCT_DIR)/default_apps',
444 'files': ['<@(default_apps_list)']
448 ['enable_hidpi == 1', {
451 'destination': '<(PRODUCT_DIR)',
453 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
459 }], # end OS != "mac" and OS != "ios"
463 'target_name': 'chrome_unscaled_resources',
466 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
470 'action_name': 'chrome_unscaled_resources',
472 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
474 'includes': [ '../build/grit_action.gypi' ],
477 'includes': [ '../build/grit_target.gypi' ],
480 'target_name': 'about_credits',
485 'generator_path': '../tools/licenses.py',
487 'action_name': 'generate_about_credits',
489 # TODO(phajdan.jr): make licenses.py print inputs too.
493 '<(about_credits_file)',
495 'hard_dependency': 1,
499 '<(about_credits_file)',
501 'message': 'Generating about:credits',