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 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
11 'target_name': 'chrome_extra_resources',
13 # These resources end up in resources.pak because they are resources
14 # used by internal pages. Putting them in a spearate pak file makes
15 # it easier for us to reference them internally.
18 'action_name': 'net_internals_resources',
20 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
22 'includes': [ '../build/grit_action.gypi' ],
25 'action_name': 'shared_resources',
27 'grit_grd_file': 'browser/resources/shared_resources.grd',
29 'includes': [ '../build/grit_action.gypi' ],
32 'action_name': 'signin_internals_resources',
34 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
36 'includes': ['../build/grit_action.gypi' ],
39 'action_name': 'sync_internals_resources',
41 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
43 'includes': [ '../build/grit_action.gypi' ],
46 'includes': [ '../build/grit_target.gypi' ],
50 '../content/browser/debugger/devtools_resources.gyp:devtools_resources',
54 'action_name': 'component_extension_resources',
56 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
58 'includes': [ '../build/grit_action.gypi' ],
61 'action_name': 'options_resources',
63 'grit_grd_file': 'browser/resources/options_resources.grd',
65 'includes': [ '../build/grit_action.gypi' ],
68 'action_name': 'quota_internals_resources',
70 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
72 'includes': [ '../build/grit_action.gypi' ],
75 'action_name': 'devtools_discovery_page_resources',
78 'browser/debugger/frontend/devtools_discovery_page_resources.grd',
80 'includes': [ '../build/grit_action.gypi' ]
85 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
87 'browser/resources/extension_resource/demo/library.js',
95 # TODO(mark): It would be better if each static library that needed
96 # to run grit would list its own .grd files, but unfortunately some
97 # of the static libraries currently have circular dependencies among
99 'target_name': 'chrome_resources',
104 'action_name': 'browser_resources',
106 'grit_grd_file': 'browser/browser_resources.grd',
108 'includes': [ '../build/grit_action.gypi' ],
111 'action_name': 'common_resources',
113 'grit_grd_file': 'common/common_resources.grd',
115 'includes': [ '../build/grit_action.gypi' ],
118 'action_name': 'renderer_resources',
120 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
122 'includes': [ '../build/grit_action.gypi' ],
126 ['enable_extensions==1', {
129 'action_name': 'extensions_api_resources',
131 'grit_grd_file': 'common/extensions_api_resources.grd',
133 'includes': [ '../build/grit_action.gypi' ],
138 'includes': [ '../build/grit_target.gypi' ],
141 # TODO(mark): It would be better if each static library that needed
142 # to run grit would list its own .grd files, but unfortunately some
143 # of the static libraries currently have circular dependencies among
145 'target_name': 'chrome_strings',
148 # Localizable resources.
150 'action_name': 'locale_settings',
152 'grit_grd_file': 'app/resources/locale_settings.grd',
154 'includes': [ '../build/grit_action.gypi' ],
157 'action_name': 'chromium_strings.grd',
159 'grit_grd_file': 'app/chromium_strings.grd',
161 'includes': [ '../build/grit_action.gypi' ],
164 'action_name': 'generated_resources',
166 'grit_grd_file': 'app/generated_resources.grd',
168 'includes': [ '../build/grit_action.gypi' ],
171 'action_name': 'google_chrome_strings',
173 'grit_grd_file': 'app/google_chrome_strings.grd',
175 'includes': [ '../build/grit_action.gypi' ],
178 'includes': [ '../build/grit_target.gypi' ],
181 'target_name': 'platform_locale_settings',
186 'platform_locale_settings_grd':
187 'app/resources/locale_settings_win.grd',
193 ['branding=="Chrome"', {
194 'platform_locale_settings_grd':
195 'app/resources/locale_settings_google_chromeos.grd',
196 }, { # branding!=Chrome
197 'platform_locale_settings_grd':
198 'app/resources/locale_settings_chromiumos.grd',
202 'platform_locale_settings_grd':
203 'app/resources/locale_settings_linux.grd',
207 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
208 'platform_locale_settings_grd':
209 'app/resources/locale_settings_linux.grd',
211 ['OS == "mac" or OS == "ios"', {
212 'platform_locale_settings_grd':
213 'app/resources/locale_settings_mac.grd',
219 'action_name': 'platform_locale_settings',
221 'grit_grd_file': '<(platform_locale_settings_grd)',
223 'includes': [ '../build/grit_action.gypi' ],
226 'includes': [ '../build/grit_target.gypi' ],
229 'target_name': 'theme_resources_gen',
233 'action_name': 'theme_resources',
235 'grit_grd_file': 'app/theme/theme_resources.grd',
237 'includes': [ '../build/grit_action.gypi' ],
240 'includes': [ '../build/grit_target.gypi' ],
243 'target_name': 'theme_resources',
246 'chrome_unscaled_resources',
247 'theme_resources_gen',
248 '<(DEPTH)/ui/ui.gyp:ui_resources',
252 'target_name': 'packed_extra_resources',
255 'repack_path': '../tools/grit/grit/format/repack.py',
258 'chrome_extra_resources',
262 'includes': ['chrome_repack_resources.gypi']
266 ['OS != "mac" and OS != "ios"', {
267 # We'll install the resource files to the product directory. The Mac
268 # copies the results over as bundle resources in its own special way.
271 'destination': '<(PRODUCT_DIR)',
273 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
281 'target_name': 'packed_resources',
284 'repack_path': '../tools/grit/grit/format/repack.py',
287 # MSVS needs the dependencies explictly named, Make is able to
288 # derive the dependencies from the output files.
291 'platform_locale_settings',
293 '<(DEPTH)/net/net.gyp:net_resources',
294 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
295 '<(DEPTH)/ui/ui.gyp:ui_resources',
299 'includes': ['chrome_repack_chrome.gypi']
302 'includes': ['chrome_repack_locales.gypi']
305 'includes': ['chrome_repack_pseudo_locales.gypi']
308 'includes': ['chrome_repack_chrome_100_percent.gypi']
311 'includes': ['chrome_repack_chrome_200_percent.gypi']
314 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
317 'includes': ['chrome_repack_chrome_touch_140_percent.gypi']
320 'includes': ['chrome_repack_chrome_touch_180_percent.gypi']
326 # TODO(zork): Protect this with if use_aura==1
327 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
328 '<(DEPTH)/content/content_resources.gyp:content_resources',
329 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
330 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
335 '<(DEPTH)/ash/ash.gyp:ash_resources',
336 '<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources',
339 ['OS != "mac" and OS != "ios"', {
340 # Copy pak files to the product directory. These files will be picked
341 # up by the following installer scripts:
342 # - Windows: chrome/installer/mini_installer/chrome.release
343 # - Linux: chrome/installer/linux/internal/common/installer.include
344 # Ensure that the above scripts are updated when adding or removing
346 # Copying files to the product directory is not needed on the Mac
347 # since the framework build phase will copy them into the framework
351 'destination': '<(PRODUCT_DIR)',
353 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
357 'destination': '<(PRODUCT_DIR)',
359 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
363 'destination': '<(PRODUCT_DIR)/locales',
365 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
369 'destination': '<(PRODUCT_DIR)/pseudo_locales',
371 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
376 ['branding=="Chrome"', {
379 # This location is for the Windows and Linux builds. For
380 # Windows, the chrome.release file ensures that these files
381 # are copied into the installer. Note that we have a separate
382 # section in chrome_dll.gyp to copy these files for Mac, as it
383 # needs to be dropped inside the framework.
384 'destination': '<(PRODUCT_DIR)/default_apps',
385 'files': ['<@(default_apps_list)']
389 ['enable_hidpi == 1 and OS!="win"', {
392 'destination': '<(PRODUCT_DIR)',
394 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
399 ['enable_touch_ui==1', {
402 'destination': '<(PRODUCT_DIR)',
404 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent.pak',
405 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent.pak',
406 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent.pak',
412 }], # end OS != "mac" and OS != "ios"
416 'target_name': 'chrome_unscaled_resources',
419 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
423 'action_name': 'chrome_unscaled_resources',
425 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
427 'includes': [ '../build/grit_action.gypi' ],
430 'includes': [ '../build/grit_target.gypi' ],