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',
62 'action_name': 'component_extension_resources',
64 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
66 'includes': [ '../build/grit_action.gypi' ],
69 'action_name': 'options_resources',
71 'grit_grd_file': 'browser/resources/options_resources.grd',
73 'includes': [ '../build/grit_action.gypi' ],
76 'action_name': 'quota_internals_resources',
78 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
80 'includes': [ '../build/grit_action.gypi' ],
83 'action_name': 'devtools_discovery_page_resources',
86 'browser/devtools/frontend/devtools_discovery_page_resources.grd',
88 'includes': [ '../build/grit_action.gypi' ]
91 'action_name': 'sync_file_system_internals_resources',
93 'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd',
95 'includes': [ '../build/grit_action.gypi' ],
100 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
102 'browser/resources/extension_resource/demo/library.js',
110 # TODO(mark): It would be better if each static library that needed
111 # to run grit would list its own .grd files, but unfortunately some
112 # of the static libraries currently have circular dependencies among
114 'target_name': 'chrome_resources',
122 'action_name': 'browser_resources',
124 'grit_grd_file': 'browser/browser_resources.grd',
125 'grit_additional_defines': [
126 '-E', 'about_credits_file=<(about_credits_file)',
129 'includes': [ '../build/grit_action.gypi' ],
132 'action_name': 'common_resources',
134 'grit_grd_file': 'common/common_resources.grd',
136 'includes': [ '../build/grit_action.gypi' ],
139 'action_name': 'renderer_resources',
141 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
143 'includes': [ '../build/grit_action.gypi' ],
147 ['enable_extensions==1', {
150 'action_name': 'extensions_api_resources',
152 'grit_grd_file': 'common/extensions_api_resources.grd',
154 'includes': [ '../build/grit_action.gypi' ],
159 'includes': [ '../build/grit_target.gypi' ],
162 # TODO(mark): It would be better if each static library that needed
163 # to run grit would list its own .grd files, but unfortunately some
164 # of the static libraries currently have circular dependencies among
166 'target_name': 'chrome_strings',
169 # Localizable resources.
171 'action_name': 'locale_settings',
173 'grit_grd_file': 'app/resources/locale_settings.grd',
175 'includes': [ '../build/grit_action.gypi' ],
178 'action_name': 'chromium_strings.grd',
180 'grit_grd_file': 'app/chromium_strings.grd',
182 'includes': [ '../build/grit_action.gypi' ],
185 'action_name': 'generated_resources',
187 'grit_grd_file': 'app/generated_resources.grd',
189 'includes': [ '../build/grit_action.gypi' ],
192 'action_name': 'google_chrome_strings',
194 'grit_grd_file': 'app/google_chrome_strings.grd',
196 'includes': [ '../build/grit_action.gypi' ],
199 'includes': [ '../build/grit_target.gypi' ],
202 'target_name': 'platform_locale_settings',
207 'platform_locale_settings_grd':
208 'app/resources/locale_settings_win.grd',
214 ['branding=="Chrome"', {
215 'platform_locale_settings_grd':
216 'app/resources/locale_settings_google_chromeos.grd',
217 }, { # branding!=Chrome
218 'platform_locale_settings_grd':
219 'app/resources/locale_settings_chromiumos.grd',
223 'platform_locale_settings_grd':
224 'app/resources/locale_settings_linux.grd',
228 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
229 'platform_locale_settings_grd':
230 'app/resources/locale_settings_linux.grd',
232 ['OS == "mac" or OS == "ios"', {
233 'platform_locale_settings_grd':
234 'app/resources/locale_settings_mac.grd',
240 'action_name': 'platform_locale_settings',
242 'grit_grd_file': '<(platform_locale_settings_grd)',
244 'includes': [ '../build/grit_action.gypi' ],
247 'includes': [ '../build/grit_target.gypi' ],
250 'target_name': 'theme_resources_gen',
254 'action_name': 'theme_resources',
256 'grit_grd_file': 'app/theme/theme_resources.grd',
258 'includes': [ '../build/grit_action.gypi' ],
261 'includes': [ '../build/grit_target.gypi' ],
264 'target_name': 'theme_resources',
267 'chrome_unscaled_resources',
268 'theme_resources_gen',
269 '<(DEPTH)/ui/ui.gyp:ui_resources',
273 'target_name': 'packed_extra_resources',
276 'repack_path': '../tools/grit/grit/format/repack.py',
279 'chrome_extra_resources',
283 'includes': ['chrome_repack_resources.gypi']
287 ['OS != "mac" and OS != "ios"', {
288 # We'll install the resource files to the product directory. The Mac
289 # copies the results over as bundle resources in its own special way.
292 'destination': '<(PRODUCT_DIR)',
294 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
302 'target_name': 'packed_resources',
305 'repack_path': '../tools/grit/grit/format/repack.py',
308 # MSVS needs the dependencies explictly named, Make is able to
309 # derive the dependencies from the output files.
312 'platform_locale_settings',
314 '<(DEPTH)/components/component_strings.gyp:component_strings',
315 '<(DEPTH)/net/net.gyp:net_resources',
316 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
317 '<(DEPTH)/ui/ui.gyp:ui_resources',
321 'includes': ['chrome_repack_chrome.gypi']
324 'includes': ['chrome_repack_locales.gypi']
327 'includes': ['chrome_repack_pseudo_locales.gypi']
330 'includes': ['chrome_repack_chrome_100_percent.gypi']
333 'includes': ['chrome_repack_chrome_200_percent.gypi']
336 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
339 'includes': ['chrome_repack_chrome_touch_140_percent.gypi']
342 'includes': ['chrome_repack_chrome_touch_180_percent.gypi']
348 # TODO(zork): Protect this with if use_aura==1
349 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
350 '<(DEPTH)/content/content_resources.gyp:content_resources',
351 '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:device_bluetooth_strings',
352 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
353 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
358 '<(DEPTH)/ash/ash.gyp:ash_resources',
359 '<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources',
362 ['OS != "mac" and OS != "ios"', {
363 # Copy pak files to the product directory. These files will be picked
364 # up by the following installer scripts:
365 # - Windows: chrome/installer/mini_installer/chrome.release
366 # - Linux: chrome/installer/linux/internal/common/installer.include
367 # Ensure that the above scripts are updated when adding or removing
369 # Copying files to the product directory is not needed on the Mac
370 # since the framework build phase will copy them into the framework
374 'destination': '<(PRODUCT_DIR)',
376 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
380 'destination': '<(PRODUCT_DIR)',
382 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
386 'destination': '<(PRODUCT_DIR)/locales',
388 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
392 'destination': '<(PRODUCT_DIR)/pseudo_locales',
394 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
399 ['branding=="Chrome"', {
402 # This location is for the Windows and Linux builds. For
403 # Windows, the chrome.release file ensures that these files
404 # are copied into the installer. Note that we have a separate
405 # section in chrome_dll.gyp to copy these files for Mac, as it
406 # needs to be dropped inside the framework.
407 'destination': '<(PRODUCT_DIR)/default_apps',
408 'files': ['<@(default_apps_list)']
412 ['enable_hidpi == 1 and OS!="win"', {
415 'destination': '<(PRODUCT_DIR)',
417 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
422 ['enable_touch_ui==1', {
425 'destination': '<(PRODUCT_DIR)',
427 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent.pak',
428 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent.pak',
429 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent.pak',
435 }], # end OS != "mac" and OS != "ios"
439 'target_name': 'chrome_unscaled_resources',
442 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
446 'action_name': 'chrome_unscaled_resources',
448 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
450 'includes': [ '../build/grit_action.gypi' ],
453 'includes': [ '../build/grit_target.gypi' ],
456 'target_name': 'about_credits',
461 'generator_path': '../tools/licenses.py',
463 'action_name': 'generate_about_credits',
465 # TODO(phajdan.jr): make licenses.py print inputs too.
469 '<(about_credits_file)',
471 'hard_dependency': 1,
475 '<(about_credits_file)',
477 'message': 'Generating about:credits.',