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 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', | 7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', |
8 'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/i
nternal/additional_modules_list.txt', | 8 'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/i
nternal/additional_modules_list.txt', |
9 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], | |
10 }, | 9 }, |
11 'targets': [ | 10 'targets': [ |
12 { | 11 { |
13 'target_name': 'chrome_extra_resources', | 12 'target_name': 'chrome_extra_resources', |
14 'type': 'none', | 13 'type': 'none', |
15 # These resources end up in resources.pak because they are resources | 14 # These resources end up in resources.pak because they are resources |
16 # used by internal pages. Putting them in a separate pak file makes | 15 # used by internal pages. Putting them in a separate pak file makes |
17 # it easier for us to reference them internally. | 16 # it easier for us to reference them internally. |
18 'actions': [ | 17 'actions': [ |
19 { | 18 { |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 'type': 'none', | 312 'type': 'none', |
314 'dependencies': [ | 313 'dependencies': [ |
315 'chrome_unscaled_resources', | 314 'chrome_unscaled_resources', |
316 'theme_resources_gen', | 315 'theme_resources_gen', |
317 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | 316 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
318 ], | 317 ], |
319 }, | 318 }, |
320 { | 319 { |
321 'target_name': 'packed_extra_resources', | 320 'target_name': 'packed_extra_resources', |
322 'type': 'none', | 321 'type': 'none', |
323 'variables': { | |
324 'repack_path': '../tools/grit/grit/format/repack.py', | |
325 }, | |
326 'dependencies': [ | 322 'dependencies': [ |
327 'chrome_extra_resources', | 323 'chrome_extra_resources', |
328 'packed_resources', | 324 'packed_resources', |
329 ], | 325 ], |
330 'actions': [ | 326 'actions': [ |
331 { | 327 { |
332 'includes': ['chrome_repack_resources.gypi'] | 328 'includes': ['chrome_repack_resources.gypi'] |
333 }, | 329 }, |
334 ], | 330 ], |
335 'conditions': [ | 331 'conditions': [ |
336 ['OS != "mac" and OS != "ios"', { | 332 ['OS != "mac" and OS != "ios"', { |
337 # We'll install the resource files to the product directory. The Mac | 333 # We'll install the resource files to the product directory. The Mac |
338 # copies the results over as bundle resources in its own special way. | 334 # copies the results over as bundle resources in its own special way. |
339 'copies': [ | 335 'copies': [ |
340 { | 336 { |
341 'destination': '<(PRODUCT_DIR)', | 337 'destination': '<(PRODUCT_DIR)', |
342 'files': [ | 338 'files': [ |
343 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak' | 339 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak' |
344 ], | 340 ], |
345 }, | 341 }, |
346 ], | 342 ], |
347 }], | 343 }], |
348 ], | 344 ], |
349 }, | 345 }, |
350 { | 346 { |
351 'target_name': 'packed_resources', | 347 'target_name': 'packed_resources', |
352 'type': 'none', | 348 'type': 'none', |
353 'variables': { | |
354 'repack_path': '../tools/grit/grit/format/repack.py', | |
355 }, | |
356 'dependencies': [ | 349 'dependencies': [ |
357 # MSVS needs the dependencies explictly named, Make is able to | 350 # MSVS needs the dependencies explictly named, Make is able to |
358 # derive the dependencies from the output files. | 351 # derive the dependencies from the output files. |
359 'chrome_resources', | 352 'chrome_resources', |
360 'chrome_strings', | 353 'chrome_strings', |
361 'platform_locale_settings', | 354 'platform_locale_settings', |
362 'theme_resources', | 355 'theme_resources', |
363 '<(DEPTH)/components/components_strings.gyp:components_strings', | 356 '<(DEPTH)/components/components_strings.gyp:components_strings', |
364 '<(DEPTH)/net/net.gyp:net_resources', | 357 '<(DEPTH)/net/net.gyp:net_resources', |
365 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', | 358 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
366 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | 359 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
367 ], | 360 ], |
368 'actions': [ | 361 'actions': [ |
369 { | 362 { |
| 363 'action_name': 'repack_locales_pack', |
| 364 'variables': { |
| 365 'pak_locales': '<(locales)', |
| 366 }, |
370 'includes': ['chrome_repack_locales.gypi'] | 367 'includes': ['chrome_repack_locales.gypi'] |
371 }, | 368 }, |
372 { | 369 { |
373 'includes': ['chrome_repack_pseudo_locales.gypi'] | 370 'action_name': 'repack_pseudo_locales_pack', |
| 371 'variables': { |
| 372 'pak_locales': '<(pseudo_locales)', |
| 373 }, |
| 374 'includes': ['chrome_repack_locales.gypi'] |
374 }, | 375 }, |
375 { | 376 { |
376 'includes': ['chrome_repack_chrome_100_percent.gypi'] | 377 'includes': ['chrome_repack_chrome_100_percent.gypi'] |
377 }, | 378 }, |
378 { | 379 { |
379 'includes': ['chrome_repack_chrome_200_percent.gypi'] | 380 'includes': ['chrome_repack_chrome_200_percent.gypi'] |
380 }, | 381 }, |
381 ], | 382 ], |
382 'conditions': [ | 383 'conditions': [ |
383 ['OS != "ios"', { | 384 ['OS != "ios"', { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 '<(generator_path)', | 496 '<(generator_path)', |
496 'credits', | 497 'credits', |
497 '<(about_credits_file)', | 498 '<(about_credits_file)', |
498 ], | 499 ], |
499 'message': 'Generating about:credits', | 500 'message': 'Generating about:credits', |
500 }, | 501 }, |
501 ], | 502 ], |
502 }, | 503 }, |
503 ], # targets | 504 ], # targets |
504 } | 505 } |
OLD | NEW |