OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 { | 5 { |
6 'target_defaults': { | 6 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 'chrome_exe_target': 0, | 8 'chrome_exe_target': 0, |
9 }, | 9 }, |
10 'target_conditions': [ | 10 'target_conditions': [ |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 }, | 512 }, |
513 }, | 513 }, |
514 'configurations': { | 514 'configurations': { |
515 'Common_Base': { | 515 'Common_Base': { |
516 'msvs_target_platform': 'x64', | 516 'msvs_target_platform': 'x64', |
517 }, | 517 }, |
518 }, | 518 }, |
519 }, | 519 }, |
520 ], | 520 ], |
521 }], | 521 }], |
522 ['OS=="mac"', { | |
523 'targets': [ | |
524 { | |
525 # This is the bundle of the manifest file of Chrome. | |
526 # It contains the manifest file and its string tables. | |
527 'target_name': 'chrome_manifest_bundle', | |
528 'type': 'loadable_module', | |
529 'mac_bundle': 1, | |
530 'product_extension': 'manifest', | |
531 'product_name': '<(mac_bundle_id)', | |
532 'variables': { | |
533 # This avoids stripping debugging symbols from the target, which | |
534 # would fail because there is no binary code here. | |
535 'mac_strip': 0, | |
536 }, | |
537 'dependencies': [ | |
538 # Provides app-Manifest.plist and its string tables: | |
539 'policy_templates', | |
540 ], | |
541 'actions': [ | |
542 { | |
543 'action_name': 'Copy MCX manifest file to manifest bundle', | |
544 'inputs': [ | |
545 '<(grit_out_dir)/app/policy/mac/app-Manifest.plist', | |
546 ], | |
547 'outputs': [ | |
548 '<(INTERMEDIATE_DIR)/app_manifest/<(mac_bundle_id).manifest', | |
549 ], | |
550 'action': [ | |
551 'cp', | |
552 '<@(_inputs)', | |
553 '<@(_outputs)', | |
554 ], | |
555 'message': | |
556 'Copying the MCX policy manifest file to the manifest bundle', | |
557 'process_outputs_as_mac_bundle_resources': 1, | |
558 }, | |
559 { | |
560 'action_name': | |
561 'Copy Localizable.strings files to manifest bundle', | |
562 'variables': { | |
563 'input_path': '<(grit_out_dir)/app/policy/mac/strings', | |
564 # Directory to collect the Localizable.strings files before | |
565 # they are copied to the bundle. | |
566 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', | |
567 # TODO(gfeher): replace this with <(locales) when we have real | |
568 # translations | |
569 'available_locales': 'en', | |
570 }, | |
571 'inputs': [ | |
572 # TODO: remove this helper when we have loops in GYP | |
573 '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Loca
lizable.strings\' <(available_locales))', | |
574 ], | |
575 'outputs': [ | |
576 # TODO: remove this helper when we have loops in GYP | |
577 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Loc
alizable.strings\' <(available_locales))', | |
578 ], | |
579 'action': [ | |
580 'cp', '-R', | |
581 '<(input_path)/', | |
582 '<(output_path)', | |
583 ], | |
584 'message': | |
585 'Copy the Localizable.strings files to the manifest bundle', | |
586 'process_outputs_as_mac_bundle_resources': 1, | |
587 }, | |
588 ], | |
589 }, | |
590 ] | |
591 }] | |
592 ], | 522 ], |
593 } | 523 } |
OLD | NEW |