Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/chrome_resources.gyp

Issue 10825234: Revert 150411 - Repack separate 100 / 200 / touch_100 / touch_200 files into single pak files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 ], 214 ],
215 'includes': [ '../build/grit_target.gypi' ], 215 'includes': [ '../build/grit_target.gypi' ],
216 }, 216 },
217 { 217 {
218 'target_name': 'theme_resources', 218 'target_name': 'theme_resources',
219 'type': 'none', 219 'type': 'none',
220 'dependencies': [ 220 'dependencies': [
221 'theme_resources_gen', 221 'theme_resources_gen',
222 '<(DEPTH)/ui/ui.gyp:ui_resources', 222 '<(DEPTH)/ui/ui.gyp:ui_resources',
223 ], 223 ],
224 'conditions': [
225 ['OS != "mac"', {
226 # Copy pak files to the product directory. These files will be picked
227 # up by the following installer scripts:
228 # - Windows: chrome/installer/mini_installer/chrome.release
229 # - Linux: chrome/installer/linux/internal/common/installer.include
230 # Ensure that the above scripts are updated when adding or removing
231 # pak files.
232 # Copying files to the product directory is not needed on the Mac
233 # since the framework build phase will copy them into the framework
234 # bundle directly.
235 'copies': [
236 {
237 'destination': '<(PRODUCT_DIR)',
238 'files': [
239 '<(grit_out_dir)/theme_resources_100_percent.pak',
240 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_per cent.pak',
241 ],
242 },
243 ],
244 }],
245 ['(OS != "mac" and enable_hidpi == 1) or chromeos == 1', {
246 'copies': [
247 {
248 'destination': '<(PRODUCT_DIR)',
249 'files': [
250 '<(grit_out_dir)/theme_resources_200_percent.pak',
251 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_200_per cent.pak',
252 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_200_percent. pak',
253 ],
254 },
255 ],
256 }],
257 ['enable_touch_ui==1', {
258 'copies': [
259 {
260 'destination': '<(PRODUCT_DIR)',
261 'files': [
262 '<(grit_out_dir)/theme_resources_touch_100_percent.pak',
263 '<(grit_out_dir)/theme_resources_touch_200_percent.pak',
264 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_touch_1 00_percent.pak',
265 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_touch_2 00_percent.pak',
266 ],
267 },
268 ],
269 }],
270 ],
224 }, 271 },
225 { 272 {
226 'target_name': 'packed_extra_resources', 273 'target_name': 'packed_extra_resources',
227 'type': 'none', 274 'type': 'none',
228 'variables': { 275 'variables': {
229 'repack_path': '../tools/grit/grit/format/repack.py', 276 'repack_path': '../tools/grit/grit/format/repack.py',
230 }, 277 },
231 'dependencies': [ 278 'dependencies': [
232 'chrome_extra_resources', 279 'chrome_extra_resources',
233 ], 280 ],
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 'actions': [ 323 'actions': [
277 { 324 {
278 'includes': ['chrome_repack_chrome.gypi'] 325 'includes': ['chrome_repack_chrome.gypi']
279 }, 326 },
280 { 327 {
281 'includes': ['chrome_repack_locales.gypi'] 328 'includes': ['chrome_repack_locales.gypi']
282 }, 329 },
283 { 330 {
284 'includes': ['chrome_repack_pseudo_locales.gypi'] 331 'includes': ['chrome_repack_pseudo_locales.gypi']
285 }, 332 },
286 {
287 'includes': ['chrome_repack_chrome_100_percent.gypi']
288 },
289 {
290 'includes': ['chrome_repack_chrome_200_percent.gypi']
291 },
292 {
293 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
294 },
295 {
296 'includes': ['chrome_repack_chrome_touch_200_percent.gypi']
297 },
298 ], 333 ],
299 'conditions': [ 334 'conditions': [
300 ['OS != "mac"', { 335 ['OS != "mac"', {
301 # Copy pak files to the product directory. These files will be picked 336 # We'll install the resource files to the product directory. The Mac
302 # up by the following installer scripts: 337 # copies the results over as bundle resources in its own special way.
303 # - Windows: chrome/installer/mini_installer/chrome.release
304 # - Linux: chrome/installer/linux/internal/common/installer.include
305 # Ensure that the above scripts are updated when adding or removing
306 # pak files.
307 # Copying files to the product directory is not needed on the Mac
308 # since the framework build phase will copy them into the framework
309 # bundle directly.
310 'copies': [ 338 'copies': [
311 { 339 {
312 'destination': '<(PRODUCT_DIR)', 340 'destination': '<(PRODUCT_DIR)',
313 'files': [ 341 'files': [
314 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak' 342 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak'
315 ], 343 ],
316 }, 344 },
317 { 345 {
318 'destination': '<(PRODUCT_DIR)',
319 'files': [
320 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak'
321 ],
322 },
323 {
324 'destination': '<(PRODUCT_DIR)/locales', 346 'destination': '<(PRODUCT_DIR)/locales',
325 'files': [ 347 'files': [
326 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))' 348 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))'
327 ], 349 ],
328 }, 350 },
329 { 351 {
330 'destination': '<(PRODUCT_DIR)/pseudo_locales', 352 'destination': '<(PRODUCT_DIR)/pseudo_locales',
331 'files': [ 353 'files': [
332 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))' 354 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
333 ], 355 ],
334 }, 356 },
335 ], 357 ],
336 'conditions': [ 358 'conditions': [
337 ['branding=="Chrome"', { 359 ['branding=="Chrome"', {
338 'copies': [ 360 'copies': [
339 { 361 {
340 # This location is for the Windows and Linux builds. For 362 # This location is for the Windows and Linux builds. For
341 # Windows, the chrome.release file ensures that these files 363 # Windows, the chrome.release file ensures that these files
342 # are copied into the installer. Note that we have a separate 364 # are copied into the installer. Note that we have a separate
343 # section in chrome_dll.gyp to copy these files for Mac, as it 365 # section in chrome_dll.gyp to copy these files for Mac, as it
344 # needs to be dropped inside the framework. 366 # needs to be dropped inside the framework.
345 'destination': '<(PRODUCT_DIR)/default_apps', 367 'destination': '<(PRODUCT_DIR)/default_apps',
346 'files': ['<@(default_apps_list)'] 368 'files': ['<@(default_apps_list)']
347 }, 369 },
348 ], 370 ],
349 }], 371 }],
350 ['enable_hidpi == 1 or chromeos == 1', {
351 'copies': [
352 {
353 'destination': '<(PRODUCT_DIR)',
354 'files': [
355 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
356 ],
357 },
358 ],
359 }],
360 ['enable_touch_ui==1', {
361 'copies': [
362 {
363 'destination': '<(PRODUCT_DIR)',
364 'files': [
365 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent. pak',
366 ],
367 },
368 ],
369 }],
370 ['enable_hidpi == 1 and enable_touch_ui==1', {
371 'copies': [
372 {
373 'destination': '<(PRODUCT_DIR)',
374 'files': [
375 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_200_percent. pak',
376 ],
377 },
378 ],
379 }],
380 ], # conditions 372 ], # conditions
381 }], # end OS != "mac" 373 }], # end OS != "mac"
382 ], # conditions 374 ], # conditions
383 }, 375 },
384 ], # targets 376 ], # targets
385 } 377 }
OLDNEW
« no previous file with comments | « chrome/chrome_repack_chrome_touch_200_percent.gypi ('k') | chrome/installer/mini_installer/chrome.release » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698