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 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
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': 'signin_internals_resources',
35 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
37 'includes': ['../build/grit_action.gypi' ],
40 'action_name': 'sync_internals_resources',
42 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
44 'includes': [ '../build/grit_action.gypi' ],
47 'action_name': 'translate_internals_resources',
49 'grit_grd_file': 'browser/resources/translate_internals_resources.grd',
51 'includes': [ '../build/grit_action.gypi' ],
54 'includes': [ '../build/grit_target.gypi' ],
58 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
59 '../content/browser/tracing/tracing_resources.gyp:tracing_resources',
63 'action_name': 'component_extension_resources',
65 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
67 'includes': [ '../build/grit_action.gypi' ],
70 'action_name': 'options_resources',
72 'grit_grd_file': 'browser/resources/options_resources.grd',
74 'includes': [ '../build/grit_action.gypi' ],
77 'action_name': 'quota_internals_resources',
79 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
81 'includes': [ '../build/grit_action.gypi' ],
84 'action_name': 'devtools_discovery_page_resources',
87 'browser/devtools/frontend/devtools_discovery_page_resources.grd',
89 'includes': [ '../build/grit_action.gypi' ]
92 'action_name': 'sync_file_system_internals_resources',
94 'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd',
96 'includes': [ '../build/grit_action.gypi' ],
101 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
103 'browser/resources/extension_resource/demo/library.js',
111 # TODO(mark): It would be better if each static library that needed
112 # to run grit would list its own .grd files, but unfortunately some
113 # of the static libraries currently have circular dependencies among
115 'target_name': 'chrome_resources',
123 'action_name': 'browser_resources',
125 'grit_grd_file': 'browser/browser_resources.grd',
126 'grit_additional_defines': [
127 '-E', 'about_credits_file=<(about_credits_file)',
130 'includes': [ '../build/grit_action.gypi' ],
133 'action_name': 'common_resources',
135 'grit_grd_file': 'common/common_resources.grd',
137 'includes': [ '../build/grit_action.gypi' ],
140 'action_name': 'renderer_resources',
142 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
144 'includes': [ '../build/grit_action.gypi' ],
148 ['enable_extensions==1', {
151 'action_name': 'extensions_api_resources',
153 'grit_grd_file': 'common/extensions_api_resources.grd',
155 'includes': [ '../build/grit_action.gypi' ],
160 'includes': [ '../build/grit_target.gypi' ],
163 # TODO(mark): It would be better if each static library that needed
164 # to run grit would list its own .grd files, but unfortunately some
165 # of the static libraries currently have circular dependencies among
167 'target_name': 'chrome_strings',
170 # Localizable resources.
172 'action_name': 'locale_settings',
174 'grit_grd_file': 'app/resources/locale_settings.grd',
176 'includes': [ '../build/grit_action.gypi' ],
179 'action_name': 'chromium_strings.grd',
181 'grit_grd_file': 'app/chromium_strings.grd',
183 'includes': [ '../build/grit_action.gypi' ],
186 'action_name': 'generated_resources',
188 'grit_grd_file': 'app/generated_resources.grd',
190 'includes': [ '../build/grit_action.gypi' ],
193 'action_name': 'google_chrome_strings',
195 'grit_grd_file': 'app/google_chrome_strings.grd',
197 'includes': [ '../build/grit_action.gypi' ],
200 'includes': [ '../build/grit_target.gypi' ],
203 'target_name': 'platform_locale_settings',
208 'platform_locale_settings_grd':
209 'app/resources/locale_settings_win.grd',
215 ['branding=="Chrome"', {
216 'platform_locale_settings_grd':
217 'app/resources/locale_settings_google_chromeos.grd',
218 }, { # branding!=Chrome
219 'platform_locale_settings_grd':
220 'app/resources/locale_settings_chromiumos.grd',
224 'platform_locale_settings_grd':
225 'app/resources/locale_settings_linux.grd',
229 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
230 'platform_locale_settings_grd':
231 'app/resources/locale_settings_linux.grd',
233 ['OS == "mac" or OS == "ios"', {
234 'platform_locale_settings_grd':
235 'app/resources/locale_settings_mac.grd',
241 'action_name': 'platform_locale_settings',
243 'grit_grd_file': '<(platform_locale_settings_grd)',
245 'includes': [ '../build/grit_action.gypi' ],
248 'includes': [ '../build/grit_target.gypi' ],
251 'target_name': 'theme_resources_gen',
255 'action_name': 'theme_resources',
257 'grit_grd_file': 'app/theme/theme_resources.grd',
259 'includes': [ '../build/grit_action.gypi' ],
262 'includes': [ '../build/grit_target.gypi' ],
265 'target_name': 'theme_resources',
268 'chrome_unscaled_resources',
269 'theme_resources_gen',
270 '<(DEPTH)/ui/ui.gyp:ui_resources',
274 'target_name': 'packed_extra_resources',
277 'repack_path': '../tools/grit/grit/format/repack.py',
280 'chrome_extra_resources',
285 'includes': ['chrome_repack_resources.gypi']
289 ['OS != "mac" and OS != "ios"', {
290 # We'll install the resource files to the product directory. The Mac
291 # copies the results over as bundle resources in its own special way.
294 'destination': '<(PRODUCT_DIR)',
296 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
304 'target_name': 'packed_resources',
307 'repack_path': '../tools/grit/grit/format/repack.py',
310 # MSVS needs the dependencies explictly named, Make is able to
311 # derive the dependencies from the output files.
314 'platform_locale_settings',
316 '<(DEPTH)/components/component_strings.gyp:component_strings',
317 '<(DEPTH)/net/net.gyp:net_resources',
318 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
319 '<(DEPTH)/ui/ui.gyp:ui_resources',
323 'includes': ['chrome_repack_chrome.gypi']
326 'includes': ['chrome_repack_locales.gypi']
329 'includes': ['chrome_repack_pseudo_locales.gypi']
332 'includes': ['chrome_repack_chrome_100_percent.gypi']
335 'includes': ['chrome_repack_chrome_200_percent.gypi']
338 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
341 'includes': ['chrome_repack_chrome_touch_140_percent.gypi']
344 'includes': ['chrome_repack_chrome_touch_180_percent.gypi']
350 # TODO(zork): Protect this with if use_aura==1
351 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
352 '<(DEPTH)/content/content_resources.gyp:content_resources',
353 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:device_bluetooth_strings',
354 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
355 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
360 '<(DEPTH)/ash/ash.gyp:ash_resources',
363 ['OS != "mac" and OS != "ios"', {
364 # Copy pak files to the product directory. These files will be picked
365 # up by the following installer scripts:
366 # - Windows: chrome/installer/mini_installer/chrome.release
367 # - Linux: chrome/installer/linux/internal/common/installer.include
368 # Ensure that the above scripts are updated when adding or removing
370 # Copying files to the product directory is not needed on the Mac
371 # since the framework build phase will copy them into the framework
375 'destination': '<(PRODUCT_DIR)',
377 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
381 'destination': '<(PRODUCT_DIR)',
383 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
387 'destination': '<(PRODUCT_DIR)/locales',
389 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
393 'destination': '<(PRODUCT_DIR)/pseudo_locales',
395 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
400 ['branding=="Chrome"', {
403 # This location is for the Windows and Linux builds. For
404 # Windows, the chrome.release file ensures that these files
405 # are copied into the installer. Note that we have a separate
406 # section in chrome_dll.gyp to copy these files for Mac, as it
407 # needs to be dropped inside the framework.
408 'destination': '<(PRODUCT_DIR)/default_apps',
409 'files': ['<@(default_apps_list)']
413 ['enable_hidpi == 1 and OS!="win"', {
416 'destination': '<(PRODUCT_DIR)',
418 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
423 ['enable_touch_ui==1', {
426 'destination': '<(PRODUCT_DIR)',
428 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent.pak',
429 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent.pak',
430 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent.pak',
436 }], # end OS != "mac" and OS != "ios"
440 'target_name': 'chrome_unscaled_resources',
443 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
447 'action_name': 'chrome_unscaled_resources',
449 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
451 'includes': [ '../build/grit_action.gypi' ],
454 'includes': [ '../build/grit_target.gypi' ],
457 'target_name': 'about_credits',
462 'generator_path': '../tools/licenses.py',
464 'action_name': 'generate_about_credits',
466 # TODO(phajdan.jr): make licenses.py print inputs too.
470 '<(about_credits_file)',
472 'hard_dependency': 1,
476 '<(about_credits_file)',
478 'message': 'Generating about:credits.',