OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'variables': { | 5 'variables': { |
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | 6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], | 7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 'action_name': 'platform_locale_settings', | 186 'action_name': 'platform_locale_settings', |
187 'variables': { | 187 'variables': { |
188 'grit_grd_file': '<(platform_locale_settings_grd)', | 188 'grit_grd_file': '<(platform_locale_settings_grd)', |
189 }, | 189 }, |
190 'includes': [ '../build/grit_action.gypi' ], | 190 'includes': [ '../build/grit_action.gypi' ], |
191 }, | 191 }, |
192 ], | 192 ], |
193 'includes': [ '../build/grit_target.gypi' ], | 193 'includes': [ '../build/grit_target.gypi' ], |
194 }, | 194 }, |
195 { | 195 { |
196 'target_name': 'theme_resources_gen', | 196 'target_name': 'theme_resources', |
197 'type': 'none', | 197 'type': 'none', |
198 'actions': [ | 198 'actions': [ |
199 { | 199 { |
200 'action_name': 'theme_resources', | 200 'action_name': 'theme_resources', |
201 'variables': { | 201 'variables': { |
202 'grit_grd_file': 'app/theme/theme_resources.grd', | 202 'grit_grd_file': 'app/theme/theme_resources.grd', |
203 }, | 203 }, |
204 'includes': [ '../build/grit_action.gypi' ], | 204 'includes': [ '../build/grit_action.gypi' ], |
205 }, | 205 }, |
206 { | 206 { |
207 'action_name': 'theme_resources_2x', | 207 'action_name': 'theme_resources_2x', |
208 'variables': { | 208 'variables': { |
209 'grit_grd_file': 'app/theme/theme_resources_2x.grd', | 209 'grit_grd_file': 'app/theme/theme_resources_2x.grd', |
210 }, | 210 }, |
211 'includes': [ '../build/grit_action.gypi' ], | 211 'includes': [ '../build/grit_action.gypi' ], |
212 }, | 212 }, |
213 { | 213 { |
214 'action_name': 'theme_resources_standard', | 214 'action_name': 'theme_resources_standard', |
215 'variables': { | 215 'variables': { |
216 'grit_grd_file': 'app/theme/theme_resources_standard.grd', | 216 'grit_grd_file': 'app/theme/theme_resources_standard.grd', |
217 }, | 217 }, |
218 'includes': [ '../build/grit_action.gypi' ], | 218 'includes': [ '../build/grit_action.gypi' ], |
219 }, | 219 }, |
220 ], | 220 ], |
221 'includes': [ '../build/grit_target.gypi' ], | 221 'includes': [ '../build/grit_target.gypi' ], |
222 }, | 222 }, |
223 { | 223 { |
224 'target_name': 'theme_resources', | |
225 'type': 'none', | |
226 'dependencies': [ | |
227 'theme_resources_gen', | |
228 '<(DEPTH)/ui/ui.gyp:ui_resources_2x', | |
229 '<(DEPTH)/ui/ui.gyp:ui_resources_standard', | |
230 ], | |
231 'conditions': [ | |
232 ['OS != "mac"', { | |
233 # Copy pak files to the product directory. These files will be picked | |
234 # up by the following installer scripts: | |
235 # - Windows: chrome/installer/mini_installer/chrome.release | |
236 # - Linux: chrome/installer/linux/internal/common/installer.include | |
237 # Ensure that the above scripts are updated when adding or removing | |
238 # pak files. | |
239 # Coping files to the product directory is not needed on the Mac | |
240 # since the framework build phase will copy them into the framework | |
241 # bundle directly. | |
242 'copies': [ | |
243 { | |
244 'destination': '<(PRODUCT_DIR)', | |
245 'files': [ | |
246 '<(grit_out_dir)/theme_resources_standard.pak', | |
247 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resource
s_standard.pak', | |
248 ], | |
249 }, | |
250 ], | |
251 }], | |
252 ['OS != "mac" and enable_hidpi == 1', { | |
253 'copies': [ | |
254 { | |
255 'destination': '<(PRODUCT_DIR)', | |
256 'files': [ | |
257 '<(grit_out_dir)/theme_resources_2x.pak', | |
258 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_2x/ui_resources_2x.p
ak', | |
259 ], | |
260 }, | |
261 ], | |
262 }], | |
263 ], | |
264 }, | |
265 { | |
266 'target_name': 'packed_extra_resources', | 224 'target_name': 'packed_extra_resources', |
267 'type': 'none', | 225 'type': 'none', |
268 'variables': { | 226 'variables': { |
269 'repack_path': '../tools/grit/grit/format/repack.py', | 227 'repack_path': '../tools/grit/grit/format/repack.py', |
270 }, | 228 }, |
271 'dependencies': [ | 229 'dependencies': [ |
272 'chrome_extra_resources', | 230 'chrome_extra_resources', |
273 ], | 231 ], |
274 'actions': [ | 232 'actions': [ |
275 { | 233 { |
(...skipping 28 matching lines...) Expand all Loading... |
304 'chrome_strings', | 262 'chrome_strings', |
305 'platform_locale_settings', | 263 'platform_locale_settings', |
306 'theme_resources', | 264 'theme_resources', |
307 # TODO(zork): Protect this with if use_aura==1 | 265 # TODO(zork): Protect this with if use_aura==1 |
308 '<(DEPTH)/ash/ash_strings.gyp:ash_strings', | 266 '<(DEPTH)/ash/ash_strings.gyp:ash_strings', |
309 '<(DEPTH)/content/content_resources.gyp:content_resources', | 267 '<(DEPTH)/content/content_resources.gyp:content_resources', |
310 '<(DEPTH)/net/net.gyp:net_resources', | 268 '<(DEPTH)/net/net.gyp:net_resources', |
311 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', | 269 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
312 '<(DEPTH)/ui/ui.gyp:gfx_resources', | 270 '<(DEPTH)/ui/ui.gyp:gfx_resources', |
313 '<(DEPTH)/ui/ui.gyp:ui_resources', | 271 '<(DEPTH)/ui/ui.gyp:ui_resources', |
| 272 '<(DEPTH)/ui/ui.gyp:ui_resources_2x', |
| 273 '<(DEPTH)/ui/ui.gyp:ui_resources_standard', |
314 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', | 274 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', |
315 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', | 275 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', |
316 ], | 276 ], |
317 'actions': [ | 277 'actions': [ |
318 { | 278 { |
319 'includes': ['chrome_repack_chrome.gypi'] | 279 'includes': ['chrome_repack_chrome.gypi'] |
320 }, | 280 }, |
321 { | 281 { |
322 'includes': ['chrome_repack_locales.gypi'] | 282 'includes': ['chrome_repack_locales.gypi'] |
323 }, | 283 }, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 'files': ['<@(default_apps_list)'] | 322 'files': ['<@(default_apps_list)'] |
363 }, | 323 }, |
364 ], | 324 ], |
365 }], | 325 }], |
366 ], # conditions | 326 ], # conditions |
367 }], # end OS != "mac" | 327 }], # end OS != "mac" |
368 ], # conditions | 328 ], # conditions |
369 }, | 329 }, |
370 ], # targets | 330 ], # targets |
371 } | 331 } |
OLD | NEW |