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': 'shared_resources',
20 'grit_grd_file': 'browser/resources/shared_resources.grd',
22 'includes': [ '../build/grit_action.gypi' ],
25 'action_name': 'sync_internals_resources',
27 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
29 'includes': [ '../build/grit_action.gypi' ],
32 'includes': [ '../build/grit_target.gypi' ],
36 '../content/browser/debugger/devtools_resources.gyp:devtools_resources',
40 'action_name': 'component_extension_resources',
42 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
44 'includes': [ '../build/grit_action.gypi' ],
47 'action_name': 'net_internals_resources',
49 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
51 'includes': [ '../build/grit_action.gypi' ],
54 'action_name': 'options_resources',
56 'grit_grd_file': 'browser/resources/options_resources.grd',
58 'includes': [ '../build/grit_action.gypi' ],
61 'action_name': 'quota_internals_resources',
63 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
65 'includes': [ '../build/grit_action.gypi' ],
68 'action_name': 'devtools_discovery_page_resources',
71 'browser/debugger/frontend/devtools_discovery_page_resources.grd',
73 'includes': [ '../build/grit_action.gypi' ]
78 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
80 'browser/resources/extension_resource/demo/library.js',
88 # TODO(mark): It would be better if each static library that needed
89 # to run grit would list its own .grd files, but unfortunately some
90 # of the static libraries currently have circular dependencies among
92 'target_name': 'chrome_resources',
97 'action_name': 'browser_resources',
99 'grit_grd_file': 'browser/browser_resources.grd',
101 'includes': [ '../build/grit_action.gypi' ],
104 'action_name': 'common_resources',
106 'grit_grd_file': 'common/common_resources.grd',
108 'includes': [ '../build/grit_action.gypi' ],
111 'action_name': 'renderer_resources',
113 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
115 'includes': [ '../build/grit_action.gypi' ],
122 'action_name': 'extensions_api_resources',
124 'grit_grd_file': 'common/extensions_api_resources.grd',
126 'includes': [ '../build/grit_action.gypi' ],
131 'includes': [ '../build/grit_target.gypi' ],
134 # TODO(mark): It would be better if each static library that needed
135 # to run grit would list its own .grd files, but unfortunately some
136 # of the static libraries currently have circular dependencies among
138 'target_name': 'chrome_strings',
141 # Localizable resources.
143 'action_name': 'locale_settings',
145 'grit_grd_file': 'app/resources/locale_settings.grd',
147 'includes': [ '../build/grit_action.gypi' ],
150 'action_name': 'chromium_strings.grd',
152 'grit_grd_file': 'app/chromium_strings.grd',
154 'includes': [ '../build/grit_action.gypi' ],
157 'action_name': 'generated_resources',
159 'grit_grd_file': 'app/generated_resources.grd',
161 'includes': [ '../build/grit_action.gypi' ],
164 'action_name': 'google_chrome_strings',
166 'grit_grd_file': 'app/google_chrome_strings.grd',
168 'includes': [ '../build/grit_action.gypi' ],
171 'includes': [ '../build/grit_target.gypi' ],
174 'target_name': 'platform_locale_settings',
179 'platform_locale_settings_grd':
180 'app/resources/locale_settings_win.grd',
185 'platform_locale_settings_grd':
186 'app/resources/locale_settings_cros.grd',
188 'platform_locale_settings_grd':
189 'app/resources/locale_settings_linux.grd',
193 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
194 'platform_locale_settings_grd':
195 'app/resources/locale_settings_linux.grd',
197 ['OS == "mac" or OS == "ios"', {
198 'platform_locale_settings_grd':
199 'app/resources/locale_settings_mac.grd',
205 'action_name': 'platform_locale_settings',
207 'grit_grd_file': '<(platform_locale_settings_grd)',
209 'includes': [ '../build/grit_action.gypi' ],
212 'includes': [ '../build/grit_target.gypi' ],
215 'target_name': 'theme_resources_gen',
219 'action_name': 'theme_resources',
221 'grit_grd_file': 'app/theme/theme_resources.grd',
223 'includes': [ '../build/grit_action.gypi' ],
226 'includes': [ '../build/grit_target.gypi' ],
229 'target_name': 'theme_resources',
232 'theme_resources_gen',
233 '<(DEPTH)/ui/ui.gyp:ui_resources',
237 'target_name': 'packed_extra_resources',
240 'repack_path': '../tools/grit/grit/format/repack.py',
243 'chrome_extra_resources',
247 'includes': ['chrome_repack_resources.gypi']
251 ['OS != "mac" and OS != "ios"', {
252 # We'll install the resource files to the product directory. The Mac
253 # copies the results over as bundle resources in its own special way.
256 'destination': '<(PRODUCT_DIR)',
258 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
266 'target_name': 'packed_resources',
269 'repack_path': '../tools/grit/grit/format/repack.py',
272 # MSVS needs the dependencies explictly named, Make is able to
273 # derive the dependencies from the output files.
276 'platform_locale_settings',
278 '<(DEPTH)/net/net.gyp:net_resources',
279 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
280 '<(DEPTH)/ui/ui.gyp:ui_resources',
284 'includes': ['chrome_repack_chrome.gypi']
287 'includes': ['chrome_repack_locales.gypi']
290 'includes': ['chrome_repack_pseudo_locales.gypi']
293 'includes': ['chrome_repack_chrome_100_percent.gypi']
296 'includes': ['chrome_repack_chrome_200_percent.gypi']
299 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
302 'includes': ['chrome_repack_chrome_touch_140_percent.gypi']
305 'includes': ['chrome_repack_chrome_touch_180_percent.gypi']
311 # TODO(zork): Protect this with if use_aura==1
312 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
313 '<(DEPTH)/content/content_resources.gyp:content_resources',
314 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
315 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
320 '<(DEPTH)/ash/ash.gyp:ash_resources',
321 '<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources',
324 ['OS != "mac" and OS != "ios"', {
325 # Copy pak files to the product directory. These files will be picked
326 # up by the following installer scripts:
327 # - Windows: chrome/installer/mini_installer/chrome.release
328 # - Linux: chrome/installer/linux/internal/common/installer.include
329 # Ensure that the above scripts are updated when adding or removing
331 # Copying files to the product directory is not needed on the Mac
332 # since the framework build phase will copy them into the framework
336 'destination': '<(PRODUCT_DIR)',
338 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
342 'destination': '<(PRODUCT_DIR)',
344 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
348 'destination': '<(PRODUCT_DIR)/locales',
350 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
354 'destination': '<(PRODUCT_DIR)/pseudo_locales',
356 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
361 ['branding=="Chrome"', {
364 # This location is for the Windows and Linux builds. For
365 # Windows, the chrome.release file ensures that these files
366 # are copied into the installer. Note that we have a separate
367 # section in chrome_dll.gyp to copy these files for Mac, as it
368 # needs to be dropped inside the framework.
369 'destination': '<(PRODUCT_DIR)/default_apps',
370 'files': ['<@(default_apps_list)']
374 ['enable_hidpi == 1 and OS!="win"', {
377 'destination': '<(PRODUCT_DIR)',
379 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
384 ['enable_touch_ui==1', {
387 'destination': '<(PRODUCT_DIR)',
389 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent.pak',
390 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent.pak',
391 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent.pak',
397 }], # end OS != "mac" and OS != "ios"