| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 # | 1 # |
| 2 # Expects command line definition for variable 'target_arch' | 2 # Expects command line definition for variable 'target_arch' |
| 3 # Must be either 'ia32' or 'x64' | 3 # Must be either 'ia32' or 'x64' |
| 4 # | 4 # |
| 5 # This .gyp file sits in directory 'installer'. | 5 # This .gyp file sits in directory 'installer'. |
| 6 # When gyp translates files locations, base them here. | 6 # When gyp translates files locations, base them here. |
| 7 # | 7 # |
| 8 # The solution file from this .gyp source lands in 'installer/build/<(target_arc h)'. | 8 # The solution file from this .gyp source lands in 'installer/build/<(target_arc h)'. |
| 9 # When gyp does not translate file locations, base them here. | 9 # When gyp does not translate file locations, base them here. |
| 10 # | 10 # |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 664 'dependencies' : [ 'MSI zh-CN 2052 (Chinese - China)' ], | 664 'dependencies' : [ 'MSI zh-CN 2052 (Chinese - China)' ], |
| 665 'variables': { 'locale_id': '1028' }, | 665 'variables': { 'locale_id': '1028' }, |
| 666 'sources': [ 'src/msi/locale/zh-TW.wxl' ], | 666 'sources': [ 'src/msi/locale/zh-TW.wxl' ], |
| 667 }, | 667 }, |
| 668 | 668 |
| 669 ################################## | 669 ################################## |
| 670 # END of MSI section | 670 # END of MSI section |
| 671 ################################## | 671 ################################## |
| 672 | 672 |
| 673 ############# | 673 ############# |
| 674 # Custom Action library for the installer | 674 # Custom Action DLL for the installer |
| 675 ############# | 675 ############# |
| 676 { | 676 { |
| 677 'target_name': 'installer-ca', | 677 'target_name': 'installer-ca', |
| 678 'type': 'shared_library', | 678 'type': 'shared_library', |
| 679 'dependencies': [ 'installer-library' ], | |
| 679 'sources': | 680 'sources': |
| 680 [ | 681 [ |
| 681 # | |
| 682 # Custom Action | |
| 683 # | |
| 684 'src/custom-action/abp_ca.cpp', | 682 'src/custom-action/abp_ca.cpp', |
| 685 'src/custom-action/abp_ca.def', | 683 'src/custom-action/abp_ca.def', |
| 686 'src/custom-action/abp_ca.rc', | 684 'src/custom-action/abp_ca.rc', |
| 687 'src/custom-action/close_application.cpp', | 685 'src/custom-action/close_application.cpp', |
| 688 # | 686 'src/custom-action/close_ie.wxi', |
| 689 # Windows Installer library | |
| 690 # | |
| 691 'src/installer-lib/database.cpp', | |
| 692 'src/installer-lib/database.h', | |
| 693 'src/installer-lib/DLL.cpp', | |
| 694 'src/installer-lib/DLL.h', | |
| 695 'src/installer-lib/interaction.cpp', | |
| 696 'src/installer-lib/interaction.h', | |
| 697 'src/installer-lib/property.cpp', | |
| 698 'src/installer-lib/property.h', | |
| 699 'src/installer-lib/record.cpp', | |
| 700 'src/installer-lib/record.h', | |
| 701 'src/installer-lib/session.cpp', | |
| 702 'src/installer-lib/session.h', | |
| 703 ], | 687 ], |
| 704 'include_dirs': | 688 'include_dirs': |
| 705 [ | 689 [ |
| 706 'src/installer-lib', | 690 'src/installer-lib', |
| 707 ], | 691 ], |
| 708 'link_settings': | 692 'link_settings': |
| 709 { | 693 { |
| 710 'libraries': [ 'user32.lib', 'Shell32.lib', 'advapi32.lib', 'msi.lib', 'Ve rsion.lib' ] | 694 'libraries': [ 'user32.lib', 'Shell32.lib', 'advapi32.lib', 'msi.lib', 'Ve rsion.lib' ] |
| 711 }, | 695 }, |
| 712 'msvs_settings': | 696 'msvs_settings': |
| 713 { | 697 { |
| 714 'VCLinkerTool': {} | 698 'VCLinkerTool': {} |
| 715 } | 699 } |
| 716 }, | 700 }, |
| 717 | 701 |
| 718 ############# | 702 ############# |
| 719 # Windows Installer library | 703 # Windows Installer library |
| 720 ############# | 704 ############# |
| 721 { | 705 { |
| 722 'target_name': 'installer-ca-lib', | 706 'target_name': 'installer-library', |
| 723 'type': 'static_library', | 707 'type': 'static_library', |
| 724 'sources': | 708 'sources': |
| 725 [ | 709 [ |
| 710 'src/installer-lib/custom-i18n.h', | |
| 711 'src/installer-lib/custom-i18n.wxi', | |
| 726 'src/installer-lib/database.cpp', | 712 'src/installer-lib/database.cpp', |
| 727 'src/installer-lib/database.h', | 713 'src/installer-lib/database.h', |
| 728 'src/installer-lib/DLL.cpp', | 714 'src/installer-lib/DLL.cpp', |
| 729 'src/installer-lib/DLL.h', | 715 'src/installer-lib/DLL.h', |
| 716 'src/installer-lib/handle.h', | |
| 730 'src/installer-lib/interaction.cpp', | 717 'src/installer-lib/interaction.cpp', |
| 731 'src/installer-lib/interaction.h', | 718 'src/installer-lib/interaction.h', |
| 732 'src/installer-lib/process.cpp', | 719 'src/installer-lib/process.cpp', |
| 733 'src/installer-lib/process.h', | 720 'src/installer-lib/process.h', |
| 734 'src/installer-lib/property.cpp', | 721 'src/installer-lib/property.cpp', |
| 735 'src/installer-lib/property.h', | 722 'src/installer-lib/property.h', |
| 736 'src/installer-lib/record.cpp', | 723 'src/installer-lib/record.cpp', |
| 737 'src/installer-lib/record.h', | 724 'src/installer-lib/record.h', |
| 738 'src/installer-lib/session.cpp', | 725 'src/installer-lib/session.cpp', |
| 739 'src/installer-lib/session.h', | 726 'src/installer-lib/session.h', |
|
Oleksandr
2014/03/12 19:26:04
We don't usually include .h files in GYP, I believ
Eric
2014/03/17 12:26:46
They're not necessary for the build, true. But als
| |
| 740 ], | 727 ], |
| 741 'include_dirs': | 728 'include_dirs': |
| 742 [ | 729 [ |
| 743 'src/installer-lib', | 730 'src/installer-lib', |
| 744 ], | 731 ], |
| 732 'direct_dependent_settings': | |
| 733 { | |
| 734 'include_dirs': | |
| 735 [ | |
| 736 'src/installer-lib', | |
| 737 ], | |
| 738 }, | |
| 745 'link_settings': | 739 'link_settings': |
| 746 { | 740 { |
| 747 'libraries': [ 'user32.lib', 'Shell32.lib', 'advapi32.lib', 'msi.lib', 'Ve rsion.lib' ] | 741 'libraries': [ 'user32.lib', 'Shell32.lib', 'advapi32.lib', 'msi.lib', 'Ve rsion.lib' ] |
| 748 }, | 742 }, |
| 749 'msvs_settings': | 743 'msvs_settings': |
| 750 { | 744 { |
| 751 'VCLinkerTool': {} | 745 'VCLinkerTool': {} |
| 752 } | 746 } |
| 753 }, | 747 }, |
| 754 | 748 |
| 749 ############# | |
| 750 # Custom actions for library test MSI | |
| 751 ############# | |
| 752 { | |
| 753 'target_name': 'installer-library-test-customactions', | |
| 754 'type': 'shared_library', | |
| 755 'dependencies': | |
| 756 [ | |
| 757 'installer-library', | |
| 758 ], | |
| 759 'sources': | |
| 760 [ | |
| 761 'src/installer-lib/test/test-installer-lib-ca.cpp', | |
| 762 'src/installer-lib/test/test-installer-lib-ca.def', | |
| 763 'src/installer-lib/test/test-installer-lib-ca.rc', | |
| 764 'src/installer-lib/test/test-installer-lib-sandbox.cpp', | |
| 765 'src/installer-lib/test/custom-action-fail.cpp', | |
| 766 'src/custom-action/close_application.cpp', | |
| 767 ], | |
| 768 }, | |
| 769 | |
| 770 ############# | |
| 771 # WiX compile for library test MSI | |
| 772 ############# | |
| 773 { | |
| 774 'target_name': 'installer-library-test-wix', | |
| 775 'type': 'none', | |
| 776 'sources': | |
| 777 [ | |
| 778 'src/installer-lib/test/test-installer-lib.wxs', | |
| 779 'src/installer-lib/custom-i18n.wxi', | |
| 780 ], | |
| 781 'actions': | |
| 782 [ { | |
| 783 'action_name': 'WiX compile', | |
| 784 'message': 'Compiling WiX source', | |
| 785 'inputs': | |
| 786 [ | |
| 787 'src/installer-lib/test/test-installer-lib.wxs' | |
| 788 ], | |
| 789 'outputs': | |
| 790 [ | |
| 791 '<(build_dir_arch)/test-installer-lib.wixobj' | |
| 792 ], | |
| 793 'action': | |
| 794 [ 'candle -nologo -dNoDefault ', '-out', '<@(_outputs)', '<@(_inputs)' ] | |
| 795 } ] | |
| 796 }, | |
| 797 | |
| 798 ############# | |
| 799 # WiX link for library test MSI | |
| 800 ############# | |
| 801 { | |
| 802 'target_name': 'installer-library-test-msi', | |
| 803 'type': 'none', | |
| 804 'dependencies': | |
| 805 [ | |
| 806 'installer-library-test-customactions', | |
| 807 'installer-library-test-wix', | |
| 808 ], | |
| 809 'sources': | |
| 810 [ | |
| 811 '<(build_dir_arch)/test-installer-lib.wixobj', | |
| 812 ], | |
| 813 'actions': | |
| 814 [ { | |
| 815 'action_name': 'WiX link', | |
| 816 'message': 'Linking WiX objects', | |
| 817 'linked_inputs': | |
| 818 [ | |
| 819 '<(build_dir_arch)/test-installer-lib.wixobj', | |
| 820 ], | |
| 821 'localization_input': | |
| 822 [ | |
| 823 'src/custom-action/close_ie_default.wxl', # Keep the .WXL file out of 'sources', since otherwise the custom rule will kick in | |
| 824 ], | |
| 825 'inputs': | |
| 826 [ | |
| 827 '<@(_linked_inputs)', | |
| 828 | |
| 829 # Keep the .WXL file out of here, since otherwise the custom rul e will kick in | |
| 830 # This isn't the best solution, since it means manual recompilat ion it this file changes, | |
| 831 # but it's easier to do this than to deal with how to change t he default rule for '.wxl' that all the MSI targets use. | |
| 832 #'<@(_localization_input)', | |
| 833 | |
| 834 'src/custom-action/close_ie.wxi', | |
| 835 '<(build_dir_arch)/Debug/installer-library-test-customactions.dl l' | |
| 836 ], | |
| 837 'outputs': | |
| 838 [ | |
| 839 '<(build_dir_arch)/test-installer-lib.msi' | |
| 840 ], | |
| 841 'action': | |
| 842 # ICE71: The Media table has no entries | |
| 843 # Suppress ICE71 because the test MSI does not install any files . | |
| 844 [ | |
| 845 'light -notidy -nologo -ext WixUIExtension -sice:ICE71', | |
| 846 '<@(_linked_inputs)', | |
| 847 '-out', '<(build_dir_arch)/test-installer-lib.msi', | |
| 848 '-loc', '<@(_localization_input)' | |
| 849 ] | |
| 850 } ] | |
| 851 }, | |
| 852 | |
| 853 ############# | |
| 854 # Custom Action unit tests | |
| 855 ############# | |
| 755 { | 856 { |
| 756 'target_name': 'installer-ca-tests', | 857 'target_name': 'installer-ca-tests', |
| 757 'type': 'executable', | 858 'type': 'executable', |
| 758 'dependencies': [ | 859 'dependencies': |
| 759 » 'installer-ca-lib', | 860 » [ |
| 861 » 'installer-library', | |
| 862 » 'installer-library-test-msi',»» » # Some unit tests open t he test MSI database | |
| 760 'googletest.gyp:googletest_main', | 863 'googletest.gyp:googletest_main', |
| 761 ], | 864 ], |
| 762 » 'sources': [ | 865 » 'sources': |
| 866 » [ | |
| 867 » 'src/installer-lib/test/database_test.cpp', | |
| 763 'src/installer-lib/test/process_test.cpp', | 868 'src/installer-lib/test/process_test.cpp', |
| 869 'src/installer-lib/test/property_test.cpp', | |
| 764 'src/installer-lib/test/record_test.cpp', | 870 'src/installer-lib/test/record_test.cpp', |
| 765 ], | 871 ], |
| 766 'link_settings': { | 872 'link_settings': |
| 873 » { | |
| 767 'libraries': [], | 874 'libraries': [], |
| 768 }, | 875 }, |
| 769 'msvs_settings': { | 876 'msvs_settings': |
| 770 'VCLinkerTool': { | 877 » { |
| 878 'VCLinkerTool': | |
| 879 » { | |
| 771 'SubSystem': '1', # Console | 880 'SubSystem': '1', # Console |
| 772 }, | 881 }, |
| 773 }, | 882 }, |
| 774 } | 883 }, |
| 884 | |
| 775 ] | 885 ] |
| 776 } | 886 } |
| 887 | |
| 888 | |
| 889 | |
| OLD | NEW |