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',
14 '../content/browser/debugger/devtools_resources.gyp:devtools_resources',
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': 'quota_internals_resources',
44 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
46 'includes': [ '../build/grit_action.gypi' ],
49 'action_name': 'shared_resources',
51 'grit_grd_file': 'browser/resources/shared_resources.grd',
53 'includes': [ '../build/grit_action.gypi' ],
56 'action_name': 'sync_internals_resources',
58 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
60 'includes': [ '../build/grit_action.gypi' ],
63 'action_name': 'devtools_discovery_page_resources',
66 'browser/debugger/frontend/devtools_discovery_page_resources.grd',
68 'includes': [ '../build/grit_action.gypi' ]
71 'includes': [ '../build/grit_target.gypi' ],
74 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
76 'browser/resources/extension_resource/demo/library.js',
82 # TODO(mark): It would be better if each static library that needed
83 # to run grit would list its own .grd files, but unfortunately some
84 # of the static libraries currently have circular dependencies among
86 'target_name': 'chrome_resources',
91 'action_name': 'browser_resources',
93 'grit_grd_file': 'browser/browser_resources.grd',
95 'includes': [ '../build/grit_action.gypi' ],
98 'action_name': 'common_resources',
100 'grit_grd_file': 'common/common_resources.grd',
102 'includes': [ '../build/grit_action.gypi' ],
105 'action_name': 'renderer_resources',
107 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
109 'includes': [ '../build/grit_action.gypi' ],
112 'action_name': 'extensions_api_resources',
114 'grit_grd_file': 'common/extensions_api_resources.grd',
116 'includes': [ '../build/grit_action.gypi' ],
119 'includes': [ '../build/grit_target.gypi' ],
122 # TODO(mark): It would be better if each static library that needed
123 # to run grit would list its own .grd files, but unfortunately some
124 # of the static libraries currently have circular dependencies among
126 'target_name': 'chrome_strings',
129 # Localizable resources.
131 'action_name': 'locale_settings',
133 'grit_grd_file': 'app/resources/locale_settings.grd',
135 'includes': [ '../build/grit_action.gypi' ],
138 'action_name': 'chromium_strings.grd',
140 'grit_grd_file': 'app/chromium_strings.grd',
142 'includes': [ '../build/grit_action.gypi' ],
145 'action_name': 'generated_resources',
147 'grit_grd_file': 'app/generated_resources.grd',
149 'includes': [ '../build/grit_action.gypi' ],
152 'action_name': 'google_chrome_strings',
154 'grit_grd_file': 'app/google_chrome_strings.grd',
156 'includes': [ '../build/grit_action.gypi' ],
159 'includes': [ '../build/grit_target.gypi' ],
162 'target_name': 'platform_locale_settings',
167 'platform_locale_settings_grd':
168 'app/resources/locale_settings_win.grd',
173 'platform_locale_settings_grd':
174 'app/resources/locale_settings_cros.grd',
176 'platform_locale_settings_grd':
177 'app/resources/locale_settings_linux.grd',
181 ['os_posix == 1 and OS != "mac" and OS != "linux"', {
182 'platform_locale_settings_grd':
183 'app/resources/locale_settings_linux.grd',
186 'platform_locale_settings_grd':
187 'app/resources/locale_settings_mac.grd',
193 'action_name': 'platform_locale_settings',
195 'grit_grd_file': '<(platform_locale_settings_grd)',
197 'includes': [ '../build/grit_action.gypi' ],
200 'includes': [ '../build/grit_target.gypi' ],
203 'target_name': 'theme_resources_gen',
207 'action_name': 'theme_resources',
209 'grit_grd_file': 'app/theme/theme_resources.grd',
211 'includes': [ '../build/grit_action.gypi' ],
214 'includes': [ '../build/grit_target.gypi' ],
217 'target_name': 'theme_resources',
220 'theme_resources_gen',
221 '<(DEPTH)/ui/ui.gyp:ui_resources',
225 'target_name': 'packed_extra_resources',
228 'repack_path': '../tools/grit/grit/format/repack.py',
231 'chrome_extra_resources',
235 'includes': ['chrome_repack_resources.gypi']
240 # We'll install the resource files to the product directory. The Mac
241 # copies the results over as bundle resources in its own special way.
244 'destination': '<(PRODUCT_DIR)',
246 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
254 'target_name': 'packed_resources',
257 'repack_path': '../tools/grit/grit/format/repack.py',
260 # MSVS needs the dependencies explictly named, Make is able to
261 # derive the dependencies from the output files.
264 'platform_locale_settings',
266 # TODO(zork): Protect this with if use_aura==1
267 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
268 '<(DEPTH)/content/content_resources.gyp:content_resources',
269 '<(DEPTH)/net/net.gyp:net_resources',
270 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
271 '<(DEPTH)/ui/ui.gyp:ui_resources',
272 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
273 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
277 'includes': ['chrome_repack_chrome.gypi']
280 'includes': ['chrome_repack_locales.gypi']
283 'includes': ['chrome_repack_pseudo_locales.gypi']
286 'includes': ['chrome_repack_chrome_100_percent.gypi']
289 'includes': ['chrome_repack_chrome_200_percent.gypi']
292 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
295 'includes': ['chrome_repack_chrome_touch_140_percent.gypi']
298 'includes': ['chrome_repack_chrome_touch_180_percent.gypi']
304 '<(DEPTH)/ash/ash.gyp:ash_resources',
305 '<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources',
309 # Copy pak files to the product directory. These files will be picked
310 # up by the following installer scripts:
311 # - Windows: chrome/installer/mini_installer/chrome.release
312 # - Linux: chrome/installer/linux/internal/common/installer.include
313 # Ensure that the above scripts are updated when adding or removing
315 # Copying files to the product directory is not needed on the Mac
316 # since the framework build phase will copy them into the framework
320 'destination': '<(PRODUCT_DIR)',
322 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
326 'destination': '<(PRODUCT_DIR)',
328 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
332 'destination': '<(PRODUCT_DIR)/locales',
334 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
338 'destination': '<(PRODUCT_DIR)/pseudo_locales',
340 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
345 ['branding=="Chrome"', {
348 # This location is for the Windows and Linux builds. For
349 # Windows, the chrome.release file ensures that these files
350 # are copied into the installer. Note that we have a separate
351 # section in chrome_dll.gyp to copy these files for Mac, as it
352 # needs to be dropped inside the framework.
353 'destination': '<(PRODUCT_DIR)/default_apps',
354 'files': ['<@(default_apps_list)']
358 ['enable_hidpi == 1 and OS!="win"', {
361 'destination': '<(PRODUCT_DIR)',
363 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
368 ['enable_touch_ui==1', {
371 'destination': '<(PRODUCT_DIR)',
373 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent.pak',
374 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent.pak',
375 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent.pak',
381 }], # end OS != "mac"