1 # Copyright (c) 2011 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',
14 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_devtools_grd',
16 # These resources end up in resources.pak because they are resources
17 # used by internal pages. Putting them in a spearate pak file makes
18 # it easier for us to reference them internally.
21 'action_name': 'component_extension_resources',
23 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
25 'includes': [ '../build/grit_action.gypi' ],
28 'action_name': 'net_internals_resources',
30 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
32 'includes': [ '../build/grit_action.gypi' ],
35 'action_name': 'options_resources',
37 'grit_grd_file': 'browser/resources/options_resources.grd',
39 'includes': [ '../build/grit_action.gypi' ],
42 'action_name': 'options2_resources',
44 'grit_grd_file': 'browser/resources/options2_resources.grd',
46 'includes': [ '../build/grit_action.gypi' ],
49 'action_name': 'quota_internals_resources',
51 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
53 'includes': [ '../build/grit_action.gypi' ],
56 'action_name': 'shared_resources',
58 'grit_grd_file': 'browser/resources/shared_resources.grd',
60 'includes': [ '../build/grit_action.gypi' ],
63 'action_name': 'sync_internals_resources',
65 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
67 'includes': [ '../build/grit_action.gypi' ],
70 'action_name': 'workers_resources',
72 'grit_grd_file': 'browser/resources/workers_resources.grd',
74 'includes': [ '../build/grit_action.gypi' ],
77 'action_name': 'devtools_frontend_resources',
80 'browser/debugger/frontend/devtools_frontend_resources.grd',
82 'includes': [ '../build/grit_action.gypi' ]
85 'action_name': 'devtools_resources',
86 # This can't use ../build/grit_action.gypi because the grd file
87 # is generated a build time, so the trick of using grit_info to get
88 # the real inputs/outputs at GYP time isn't possible.
90 'grit_cmd': ['python', '../tools/grit/grit.py'],
91 'grit_grd_file': '<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd',
95 '<!@pymod_do_main(grit_info --inputs)',
98 '<(grit_out_dir)/grit/devtools_resources.h',
99 '<(grit_out_dir)/devtools_resources.pak',
100 '<(grit_out_dir)/grit/devtools_resources_map.cc',
101 '<(grit_out_dir)/grit/devtools_resources_map.h',
103 'action': ['<@(grit_cmd)',
104 '-i', '<(grit_grd_file)', 'build',
105 '-o', '<(grit_out_dir)',
106 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)',
107 '<@(grit_defines)' ],
108 'message': 'Generating resources from <(grit_grd_file)',
111 'includes': [ '../build/grit_target.gypi' ],
114 # TODO(mark): It would be better if each static library that needed
115 # to run grit would list its own .grd files, but unfortunately some
116 # of the static libraries currently have circular dependencies among
118 'target_name': 'chrome_resources',
123 'action_name': 'browser_resources',
125 'grit_grd_file': 'browser/browser_resources.grd',
127 'includes': [ '../build/grit_action.gypi' ],
130 'action_name': 'common_resources',
132 'grit_grd_file': 'common/common_resources.grd',
134 'includes': [ '../build/grit_action.gypi' ],
137 'action_name': 'renderer_resources',
139 'grit_grd_file': 'renderer/renderer_resources.grd',
141 'includes': [ '../build/grit_action.gypi' ],
144 'includes': [ '../build/grit_target.gypi' ],
147 # TODO(mark): It would be better if each static library that needed
148 # to run grit would list its own .grd files, but unfortunately some
149 # of the static libraries currently have circular dependencies among
151 'target_name': 'chrome_strings',
155 # HACK(nsylvain): We want to enforce a fake dependency on
156 # intaller_util_string. install_util depends on both
157 # chrome_strings and installer_util_strings, but for some reasons
158 # Incredibuild does not enforce it (most likely a bug). By changing
159 # the type and making sure we depend on installer_util_strings, it
160 # will always get built before installer_util.
161 'type': 'dummy_executable',
162 'dependencies': ['chrome.gyp:installer_util_strings'],
166 # Localizable resources.
168 'action_name': 'locale_settings',
170 'grit_grd_file': 'app/resources/locale_settings.grd',
172 'includes': [ '../build/grit_action.gypi' ],
175 'action_name': 'chromium_strings.grd',
177 'grit_grd_file': 'app/chromium_strings.grd',
179 'includes': [ '../build/grit_action.gypi' ],
182 'action_name': 'generated_resources',
184 'grit_grd_file': 'app/generated_resources.grd',
186 'includes': [ '../build/grit_action.gypi' ],
189 'action_name': 'google_chrome_strings',
191 'grit_grd_file': 'app/google_chrome_strings.grd',
193 'includes': [ '../build/grit_action.gypi' ],
196 'includes': [ '../build/grit_target.gypi' ],
199 'target_name': 'platform_locale_settings',
204 'platform_locale_settings_grd':
205 'app/resources/locale_settings_win.grd',
210 'platform_locale_settings_grd':
211 'app/resources/locale_settings_cros.grd',
214 'platform_locale_settings_grd':
215 'app/resources/locale_settings_linux.grd',
219 ['os_posix == 1 and OS != "mac" and OS != "linux"', {
220 'platform_locale_settings_grd':
221 'app/resources/locale_settings_linux.grd',
224 'platform_locale_settings_grd':
225 'app/resources/locale_settings_mac.grd',
231 'action_name': 'platform_locale_settings',
233 'grit_grd_file': '<(platform_locale_settings_grd)',
235 'includes': [ '../build/grit_action.gypi' ],
238 'includes': [ '../build/grit_target.gypi' ],
241 'target_name': 'theme_resources',
245 'action_name': 'theme_resources',
247 'grit_grd_file': 'app/theme/theme_resources.grd',
249 'includes': [ '../build/grit_action.gypi' ],
252 'action_name': 'theme_resources_large',
254 'grit_grd_file': 'app/theme/theme_resources_large.grd',
256 'includes': [ '../build/grit_action.gypi' ],
259 'action_name': 'theme_resources_standard',
261 'grit_grd_file': 'app/theme/theme_resources_standard.grd',
263 'includes': [ '../build/grit_action.gypi' ],
266 'includes': [ '../build/grit_target.gypi' ],
269 'target_name': 'packed_extra_resources',
272 'repack_path': '../tools/grit/grit/format/repack.py',
275 'chrome_extra_resources',
279 'includes': ['chrome_repack_resources.gypi']
284 # We'll install the resource files to the product directory. The Mac
285 # copies the results over as bundle resources in its own special way.
288 'destination': '<(PRODUCT_DIR)',
290 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
298 'target_name': 'packed_resources',
301 'repack_path': '../tools/grit/grit/format/repack.py',
304 # MSVS needs the dependencies explictly named, Make is able to
305 # derive the dependencies from the output files.
308 'default_plugin/default_plugin.gyp:default_plugin_resources',
309 'platform_locale_settings',
311 '<(DEPTH)/content/content_resources.gyp:content_resources',
312 '<(DEPTH)/net/net.gyp:net_resources',
313 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
314 '<(DEPTH)/ui/ui.gyp:gfx_resources',
315 '<(DEPTH)/ui/ui.gyp:ui_resources',
316 '<(DEPTH)/ui/ui.gyp:ui_resources_large',
317 '<(DEPTH)/ui/ui.gyp:ui_resources_standard',
318 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
319 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
323 'includes': ['chrome_repack_chrome.gypi']
326 'includes': ['chrome_repack_locales.gypi']
329 'includes': ['chrome_repack_pseudo_locales.gypi']
334 # We'll install the resource files to the product directory. The Mac
335 # copies the results over as bundle resources in its own special way.
338 'destination': '<(PRODUCT_DIR)',
340 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
344 'destination': '<(PRODUCT_DIR)/locales',
346 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
350 'destination': '<(PRODUCT_DIR)/pseudo_locales',
352 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
357 ['branding=="Chrome"', {
360 # This location is for the Windows and Linux builds. For
361 # Windows, the chrome.release file ensures that these files
362 # are copied into the installer. Note that we have a separate
363 # section in chrome_dll.gyp to copy these files for Mac, as it
364 # needs to be dropped inside the framework.
365 'destination': '<(PRODUCT_DIR)/default_apps',
366 'files': ['<@(default_apps_list)']
371 }], # end OS != "mac"