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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # TODO(dmaclach): can we pick this up some other way? Right now it's | 7 # TODO(dmaclach): can we pick this up some other way? Right now it's |
8 # duplicated from chrome.gyp | 8 # duplicated from chrome.gyp |
9 'chromium_code': 1, | 9 'chromium_code': 1, |
10 # Use consistent strings across all platforms. Note that the plugin name | 10 # Use consistent strings across all platforms. Note that the plugin name |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
679 'rules': [ | 679 'rules': [ |
680 { | 680 { |
681 'rule_name': 'candle', | 681 'rule_name': 'candle', |
682 'extension': 'wxs', | 682 'extension': 'wxs', |
683 'inputs': [ | 683 'inputs': [ |
684 '<(PRODUCT_DIR)/remoting_host_controller.exe', | 684 '<(PRODUCT_DIR)/remoting_host_controller.exe', |
685 '<(PRODUCT_DIR)/remoting_me2me_host.exe', | 685 '<(PRODUCT_DIR)/remoting_me2me_host.exe', |
686 '<(PRODUCT_DIR)/remoting_service.exe', | 686 '<(PRODUCT_DIR)/remoting_service.exe', |
687 '<(platformsdk_path)/redist/x86/sas.dll', | 687 '<(platformsdk_path)/redist/x86/sas.dll', |
688 'resources/chromoting.ico', | 688 'resources/chromoting.ico', |
689 'candle_and_light.py', | |
689 ], | 690 ], |
690 'outputs': [ | 691 'outputs': [ |
691 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wixobj', | 692 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
692 ], | 693 ], |
693 'process_outputs_as_sources': 1, | |
694 'msvs_cygwin_shell': 0, | 694 'msvs_cygwin_shell': 0, |
695 'action': [ | 695 'action': [ |
696 '<(wix_path)\\candle', | 696 'python', 'candle_and_light.py', |
697 '-ext', '<(wix_path)\\WixFirewallExtension.dll', | 697 '--wix_path', '<(wix_path)', |
698 '-ext', '<(wix_path)\\WixUIExtension.dll', | 698 '--version', '<(version_full)', |
699 '-ext', '<(wix_path)\\WixUtilExtension.dll', | 699 '--product_dir', '<(PRODUCT_DIR)', |
700 '-dVersion=<(version_full)', | 700 '--intermediate_root', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)', |
alexeypa (please no reviews)
2012/05/21 16:24:51
I think it is better to pass '--intermediate_dir',
scottmg
2012/05/21 17:00:38
Done.
| |
701 '-dFileSource=<(PRODUCT_DIR).', | 701 '--platformsdk_path', '<(platformsdk_path)', |
702 '-dIconPath=resources/chromoting.ico', | 702 '--defines', '<(_wix_defines)', |
alexeypa (please no reviews)
2012/05/21 16:24:51
Does this work if there is no defines or more than
scottmg
2012/05/21 17:00:38
Yes, when a list is inserted into a string context
| |
703 '-dSasDllPath=<(platformsdk_path)/redist/x86/sas.dll', | 703 '--input', '<(RULE_INPUT_PATH)', |
704 '<@(_wix_defines)', | 704 '--output', '<@(_outputs)', |
705 '-out', '<@(_outputs)', | |
706 '<(RULE_INPUT_PATH)', | |
707 ], | 705 ], |
708 'message': 'Generating <@(_outputs)', | 706 'message': 'Generating <@(_outputs)', |
709 }, | 707 }, |
710 { | |
711 'rule_name': 'light', | |
712 'extension': 'wixobj', | |
713 'inputs': [ | |
714 '<(PRODUCT_DIR)/remoting_host_controller.exe', | |
715 '<(PRODUCT_DIR)/remoting_me2me_host.exe', | |
716 '<(PRODUCT_DIR)/remoting_service.exe', | |
717 '<(platformsdk_path)/redist/x86/sas.dll', | |
718 'resources/chromoting.ico', | |
719 ], | |
720 'outputs': [ | |
721 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | |
722 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).wixpdb', | |
723 ], | |
724 'msvs_cygwin_shell': 0, | |
725 'action': [ | |
726 '<(wix_path)\\light', | |
727 '-ext', '<(wix_path)\\WixFirewallExtension.dll', | |
728 '-ext', '<(wix_path)\\WixUIExtension.dll', | |
729 '-ext', '<(wix_path)\\WixUtilExtension.dll', | |
730 '-cultures:en-us', | |
731 '-sw1076', | |
732 '-dVersion=<(version_full)', | |
733 '-dFileSource=<(PRODUCT_DIR).', | |
734 '-dIconPath=resources/chromoting.ico', | |
735 '-dSasDllPath=<(platformsdk_path)/redist/x86/sas.dll', | |
736 '<@(_wix_defines)', | |
737 '-out', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | |
738 '<(RULE_INPUT_PATH)', | |
739 ], | |
740 'message': 'Generating <(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | |
741 }, | |
742 ], | 708 ], |
743 }, # end of target 'remoting_host_installation' | 709 }, # end of target 'remoting_host_installation' |
744 | 710 |
745 # The 'remoting_host_installation_unittest' target is used to make sure | 711 # The 'remoting_host_installation_unittest' target is used to make sure |
746 # that the code signing job (running outside of Chromium tree) will be | 712 # that the code signing job (running outside of Chromium tree) will be |
747 # able to unpack and re-assemble the installation successfully. | 713 # able to unpack and re-assemble the installation successfully. |
748 # | 714 # |
749 # *** If this target fails to compile the code signing job will fail | 715 # *** If this target fails to compile the code signing job will fail |
750 # too, breaking the official build. *** | 716 # too, breaking the official build. *** |
751 # | 717 # |
752 # N.B. The command lines passed to the WiX tools here should be in sync | 718 # N.B. The command lines passed to the WiX tools here should be in sync |
753 # with the code signing script. | 719 # with the code signing script. |
754 { | 720 { |
755 'target_name': 'remoting_host_installation_unittest', | 721 'target_name': 'remoting_host_installation_unittest', |
756 'type': 'none', | 722 'type': 'none', |
757 'dependencies': [ | 723 'dependencies': [ |
758 'remoting_host_installation', | 724 'remoting_host_installation', |
759 ], | 725 ], |
760 'sources': [ | 726 'sources': [ |
761 '<(PRODUCT_DIR)/chromoting.msi', | 727 '<(PRODUCT_DIR)/chromoting.msi', |
762 ], | 728 ], |
763 'outputs': [ | 729 'outputs': [ |
764 '<(INTERMEDIATE_DIR)/chromoting-test.msi', | 730 '<(INTERMEDIATE_DIR)/chromoting-test.msi', |
765 ], | 731 ], |
766 'rules': [ | 732 'rules': [ |
767 { | 733 { |
768 'rule_name': 'dark', | 734 'rule_name': 'dark_and_candle_and_light', |
769 'extension': 'msi', | 735 'extension': 'msi', |
736 'inputs': [ | |
737 'dark_and_candle_and_light.py', | |
738 ], | |
770 'outputs': [ | 739 'outputs': [ |
771 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wxs', | 740 '<(INTERMEDIATE_DIR)/chromoting-test.msi', |
772 ], | |
773 'process_outputs_as_sources': 1, | |
774 'msvs_cygwin_shell': 0, | |
775 'action': [ | |
776 '<(wix_path)\\dark', | |
777 '<(RULE_INPUT_PATH)', | |
778 '-o', '<@(_outputs)', | |
779 '-x', '<(INTERMEDIATE_DIR).', | |
780 ], | |
781 'message': 'Dark: unpacking <(RULE_INPUT_PATH)', | |
782 }, | |
783 { | |
784 'rule_name': 'candle', | |
785 'extension': 'wxs', | |
786 'outputs': [ | |
787 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wixobj', | |
788 ], | |
789 'process_outputs_as_sources': 1, | |
790 'msvs_cygwin_shell': 0, | |
791 'action': [ | |
792 '<(wix_path)\\candle', | |
793 '<(RULE_INPUT_PATH)', | |
794 '-o', '<@(_outputs)', | |
795 '-ext', '<(wix_path)\\WixFirewallExtension.dll', | |
796 ], | |
797 'message': 'Candle: compiling <(RULE_INPUT_PATH)', | |
798 }, | |
799 { | |
800 'rule_name': 'light', | |
801 'extension': 'wixobj', | |
802 'outputs': [ | |
803 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)-test.msi', | |
804 ], | 741 ], |
805 'msvs_cygwin_shell': 0, | 742 'msvs_cygwin_shell': 0, |
806 'action': [ | 743 'action': [ |
807 '<(wix_path)\\light', | 744 'python', |
808 '<(RULE_INPUT_PATH)', | 745 'dark_and_candle_and_light.py', |
809 '-o', '<@(_outputs)', | 746 '--wix_path', '<(wix_path)', |
810 '-ext', '<(wix_path)\\WixFirewallExtension.dll', | 747 '--input', '<(RULE_INPUT_PATH)', |
811 '-sw1076', | 748 '--intermediate_root', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)', |
749 '--intermediate_dir', '<(INTERMEDIATE_DIR)', | |
alexeypa (please no reviews)
2012/05/21 16:24:51
It is confusing that |intermediate_dir| is a paren
scottmg
2012/05/21 17:00:38
Agreed, they should have had better names at least
| |
750 '--output', '<@(_outputs)', | |
812 ], | 751 ], |
813 'message': 'Light: linking <(RULE_INPUT_PATH)', | 752 'message': 'Unpacking and repacking to <@(_outputs)', |
814 }, | 753 }, |
815 ], | 754 ], |
816 }, # end of target 'remoting_host_installation_unittest' | 755 }, # end of target 'remoting_host_installation_unittest' |
817 ], # end of 'targets' | 756 ], # end of 'targets' |
818 }], # '<(wix_path) != ""' | 757 }], # '<(wix_path) != ""' |
819 | 758 |
820 ], # end of 'conditions' | 759 ], # end of 'conditions' |
821 | 760 |
822 'targets': [ | 761 'targets': [ |
823 { | 762 { |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1769 '../base/allocator/allocator.gyp:allocator', | 1708 '../base/allocator/allocator.gyp:allocator', |
1770 ], | 1709 ], |
1771 }, | 1710 }, |
1772 ], | 1711 ], |
1773 ], | 1712 ], |
1774 }], | 1713 }], |
1775 ], # end of 'conditions' | 1714 ], # end of 'conditions' |
1776 }, # end of target 'remoting_unittests' | 1715 }, # end of target 'remoting_unittests' |
1777 ], # end of targets | 1716 ], # end of targets |
1778 } | 1717 } |
OLD | NEW |