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 'includes': [ | 6 'includes': [ |
7 'remoting_host_linux.gypi', | 7 'remoting_host_linux.gypi', |
8 'remoting_host_mac.gypi', | 8 'remoting_host_mac.gypi', |
9 'remoting_host_win.gypi', | 9 'remoting_host_win.gypi', |
10 ], | 10 ], |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 'type': 'none', | 569 'type': 'none', |
570 'conditions': [ | 570 'conditions': [ |
571 [ 'OS == "win"', { | 571 [ 'OS == "win"', { |
572 'variables': { | 572 'variables': { |
573 'me2me_host_path': 'remoting_native_messaging_host.exe', | 573 'me2me_host_path': 'remoting_native_messaging_host.exe', |
574 'it2me_host_path': 'remote_assistance_host.exe', | 574 'it2me_host_path': 'remote_assistance_host.exe', |
575 }, | 575 }, |
576 }], | 576 }], |
577 [ 'OS == "mac"', { | 577 [ 'OS == "mac"', { |
578 'variables': { | 578 'variables': { |
| 579 'me2me_host_bundle_name': '<!(python <(version_py_path) -f <(bra
nding_path) -t "@MAC_HOST_BUNDLE_NAME@")', |
| 580 'native_messaging_host_bundle_name': '<!(python <(version_py_pat
h) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_NAME@")', |
| 581 'remote_assistance_host_bundle_name': '<!(python <(version_py_pa
th) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_NAME@")', |
579 'me2me_host_path': | 582 'me2me_host_path': |
580 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m
e_host.app/Contents/MacOS/native_messaging_host', | 583 '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Co
ntents/MacOS/<(native_messaging_host_bundle_name)/Contents/MacOS/native_messagin
g_host', |
581 'it2me_host_path': | 584 'it2me_host_path': |
582 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m
e_host.app/Contents/MacOS/remote_assistance_host', | 585 '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Co
ntents/MacOS/<(remote_assistance_host_bundle_name)/Contents/MacOS/remote_assista
nce_host', |
583 }, | 586 }, |
584 }], | 587 }], |
585 [ 'OS != "mac" and OS != "win"', { | 588 [ 'OS != "mac" and OS != "win"', { |
586 'variables': { | 589 'variables': { |
587 'me2me_host_path': | 590 'me2me_host_path': |
588 '/opt/google/chrome-remote-desktop/native-messaging-host', | 591 '/opt/google/chrome-remote-desktop/native-messaging-host', |
589 'it2me_host_path': | 592 'it2me_host_path': |
590 '/opt/google/chrome-remote-desktop/remote-assistance-host', | 593 '/opt/google/chrome-remote-desktop/remote-assistance-host', |
591 }, | 594 }, |
592 }], | 595 }], |
(...skipping 28 matching lines...) Expand all Loading... |
621 'target_name': 'remoting_infoplist_strings', | 624 'target_name': 'remoting_infoplist_strings', |
622 'type': 'none', | 625 'type': 'none', |
623 'dependencies': [ | 626 'dependencies': [ |
624 'remoting_resources', | 627 'remoting_resources', |
625 ], | 628 ], |
626 'sources': [ | 629 'sources': [ |
627 'host/plugin/host_plugin-InfoPlist.strings.jinja2', | 630 'host/plugin/host_plugin-InfoPlist.strings.jinja2', |
628 'host/remoting_me2me_host-InfoPlist.strings.jinja2', | 631 'host/remoting_me2me_host-InfoPlist.strings.jinja2', |
629 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2', | 632 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2', |
630 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strin
gs.jinja2', | 633 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strin
gs.jinja2', |
| 634 'host/setup/native_messaging_host-InfoPlist.strings.jinja2', |
| 635 'host/it2me/remote_assistance_host-InfoPlist.strings.jinja2', |
631 ], | 636 ], |
632 'rules': [{ | 637 'rules': [{ |
633 'rule_name': 'generate_strings', | 638 'rule_name': 'generate_strings', |
634 'extension': 'jinja2', | 639 'extension': 'jinja2', |
635 'inputs': [ | 640 'inputs': [ |
636 '<(remoting_localize_path)', | 641 '<(remoting_localize_path)', |
637 ], | 642 ], |
638 'outputs': [ | 643 'outputs': [ |
639 '<!@pymod_do_main(remoting_localize --locale_output ' | 644 '<!@pymod_do_main(remoting_localize --locale_output ' |
640 '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{jso
n_suffix}.lproj/InfoPlist.strings" ' | 645 '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{jso
n_suffix}.lproj/InfoPlist.strings" ' |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us
e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))',
{ | 749 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us
e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))',
{ |
745 'dependencies': [ | 750 'dependencies': [ |
746 '../base/allocator/allocator.gyp:allocator', | 751 '../base/allocator/allocator.gyp:allocator', |
747 ], | 752 ], |
748 }], # OS=linux | 753 }], # OS=linux |
749 ], # end of 'conditions' | 754 ], # end of 'conditions' |
750 }, # end of target 'remoting_me2me_host' | 755 }, # end of target 'remoting_me2me_host' |
751 { | 756 { |
752 'target_name': 'remoting_me2me_native_messaging_host', | 757 'target_name': 'remoting_me2me_native_messaging_host', |
753 'type': 'executable', | 758 'type': 'executable', |
754 'product_name': 'remoting_native_messaging_host', | 759 'product_name': 'native_messaging_host', |
755 'variables': { 'enable_wexit_time_destructors': 1, }, | 760 'variables': { 'enable_wexit_time_destructors': 1, }, |
756 'dependencies': [ | 761 'dependencies': [ |
757 '../base/base.gyp:base', | 762 '../base/base.gyp:base', |
| 763 'remoting_breakpad', |
758 'remoting_host', | 764 'remoting_host', |
759 'remoting_host_setup_base', | 765 'remoting_host_setup_base', |
| 766 'remoting_infoplist_strings', |
760 'remoting_native_messaging_base', | 767 'remoting_native_messaging_base', |
761 ], | 768 ], |
| 769 'defines': [ |
| 770 'VERSION=<(version_full)', |
| 771 ], |
762 'sources': [ | 772 'sources': [ |
763 'host/setup/me2me_native_messaging_host.cc', | 773 'host/setup/me2me_native_messaging_host.cc', |
764 'host/setup/me2me_native_messaging_host.h', | 774 'host/setup/me2me_native_messaging_host.h', |
765 'host/setup/me2me_native_messaging_host_entry_point.cc', | 775 'host/setup/me2me_native_messaging_host_entry_point.cc', |
766 'host/setup/me2me_native_messaging_host_main.cc', | 776 'host/setup/me2me_native_messaging_host_main.cc', |
767 'host/setup/me2me_native_messaging_host_main.h', | 777 'host/setup/me2me_native_messaging_host_main.h', |
768 ], | 778 ], |
769 'conditions': [ | 779 'conditions': [ |
770 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 780 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
771 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us
e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))',
{ | 781 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us
e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))',
{ |
772 'dependencies': [ | 782 'dependencies': [ |
773 '../base/allocator/allocator.gyp:allocator', | 783 '../base/allocator/allocator.gyp:allocator', |
774 ], | 784 ], |
775 }], | 785 }], |
| 786 ['OS=="mac"', { |
| 787 'mac_bundle': 1, |
| 788 'variables': { |
| 789 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_p
ath) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_ID@")', |
| 790 }, |
| 791 'xcode_settings': { |
| 792 'INFOPLIST_FILE': 'host/setup/native_messaging_host-Info.plist', |
| 793 'INFOPLIST_PREPROCESS': 'YES', |
| 794 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_f
ull)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"', |
| 795 }, |
| 796 'mac_bundle_resources': [ |
| 797 'host/setup/native_messaging_host-Info.plist', |
| 798 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT
_DIR) <(remoting_locales))', |
| 799 |
| 800 # Localized strings for 'Info.plist' |
| 801 '<!@pymod_do_main(remoting_localize --locale_output ' |
| 802 '"<(SHARED_INTERMEDIATE_DIR)/remoting/native_messaging_host-
InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' |
| 803 '--print_only <(remoting_locales))', |
| 804 ], |
| 805 'mac_bundle_resources!': [ |
| 806 'host/setup/native_messaging_host-Info.plist', |
| 807 ], |
| 808 'conditions': [ |
| 809 ['mac_breakpad==1', { |
| 810 'variables': { |
| 811 # A real .dSYM is needed for dump_syms to operate on. |
| 812 'mac_real_dsym': 1, |
| 813 }, |
| 814 'copies': [ |
| 815 { |
| 816 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Res
ources', |
| 817 'files': [ |
| 818 '<(PRODUCT_DIR)/crash_inspector', |
| 819 '<(PRODUCT_DIR)/crash_report_sender.app' |
| 820 ], |
| 821 }, |
| 822 ], |
| 823 'dependencies': [ |
| 824 '../breakpad/breakpad.gyp:dump_syms', |
| 825 ], |
| 826 'postbuilds': [ |
| 827 { |
| 828 'postbuild_name': 'Dump Symbols', |
| 829 'variables': { |
| 830 'dump_product_syms_path': |
| 831 'scripts/mac/dump_product_syms', |
| 832 }, |
| 833 'action': [ |
| 834 '<(dump_product_syms_path)', |
| 835 '<(version_full)', |
| 836 ], |
| 837 }, # end of postbuild 'dump_symbols' |
| 838 ], # end of 'postbuilds' |
| 839 }], # mac_breakpad==1 |
| 840 ], # conditions |
| 841 }], # OS=mac |
776 ], | 842 ], |
777 }, # end of target 'remoting_me2me_native_messaging_host' | 843 }, # end of target 'remoting_me2me_native_messaging_host' |
778 { | 844 { |
779 'target_name': 'remoting_it2me_native_messaging_host', | 845 'target_name': 'remoting_it2me_native_messaging_host', |
780 'type': 'executable', | 846 'type': 'executable', |
| 847 'product_name': 'remote_assistance_host', |
781 'variables': { 'enable_wexit_time_destructors': 1, }, | 848 'variables': { 'enable_wexit_time_destructors': 1, }, |
782 'dependencies': [ | 849 'dependencies': [ |
783 '../base/base.gyp:base', | 850 '../base/base.gyp:base', |
784 'remoting_base', | 851 'remoting_base', |
785 'remoting_breakpad', | 852 'remoting_breakpad', |
786 'remoting_host', | 853 'remoting_host', |
787 'remoting_it2me_host_static', | 854 'remoting_it2me_host_static', |
788 'remoting_native_messaging_base', | 855 'remoting_native_messaging_base', |
789 'remoting_protocol', | 856 'remoting_protocol', |
790 ], | 857 ], |
| 858 'defines': [ |
| 859 'VERSION=<(version_full)', |
| 860 ], |
791 'sources': [ | 861 'sources': [ |
792 'host/it2me/it2me_native_messaging_host_entry_point.cc', | 862 'host/it2me/it2me_native_messaging_host_entry_point.cc', |
793 'host/it2me/it2me_native_messaging_host_main.cc', | 863 'host/it2me/it2me_native_messaging_host_main.cc', |
794 'host/it2me/it2me_native_messaging_host_main.h', | 864 'host/it2me/it2me_native_messaging_host_main.h', |
795 ], | 865 ], |
796 'conditions': [ | 866 'conditions': [ |
797 ['OS=="linux"', { | 867 ['OS=="linux"', { |
798 'dependencies': [ | 868 'dependencies': [ |
799 # Always use GTK on Linux, even for Aura builds. | 869 # Always use GTK on Linux, even for Aura builds. |
800 '../build/linux/system.gyp:gtk', | 870 '../build/linux/system.gyp:gtk', |
801 ], | 871 ], |
802 }], | 872 }], |
803 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 873 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
804 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us
e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))',
{ | 874 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us
e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))',
{ |
805 'dependencies': [ | 875 'dependencies': [ |
806 '../base/allocator/allocator.gyp:allocator', | 876 '../base/allocator/allocator.gyp:allocator', |
807 ], | 877 ], |
808 }], | 878 }], |
| 879 ['OS=="mac"', { |
| 880 'mac_bundle': 1, |
| 881 'variables': { |
| 882 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_p
ath) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")', |
| 883 }, |
| 884 'xcode_settings': { |
| 885 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist'
, |
| 886 'INFOPLIST_PREPROCESS': 'YES', |
| 887 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_f
ull)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"', |
| 888 }, |
| 889 'mac_bundle_resources': [ |
| 890 '<(PRODUCT_DIR)/icudtl.dat', |
| 891 'host/it2me/remote_assistance_host-Info.plist', |
| 892 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT
_DIR) <(remoting_locales))', |
| 893 |
| 894 # Localized strings for 'Info.plist' |
| 895 '<!@pymod_do_main(remoting_localize --locale_output ' |
| 896 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host
-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' |
| 897 '--print_only <(remoting_locales))', |
| 898 ], |
| 899 'mac_bundle_resources!': [ |
| 900 'host/it2me/remote_assistance_host-Info.plist', |
| 901 ], |
| 902 'conditions': [ |
| 903 ['mac_breakpad==1', { |
| 904 'variables': { |
| 905 # A real .dSYM is needed for dump_syms to operate on. |
| 906 'mac_real_dsym': 1, |
| 907 }, |
| 908 'copies': [ |
| 909 { |
| 910 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Res
ources', |
| 911 'files': [ |
| 912 '<(PRODUCT_DIR)/crash_inspector', |
| 913 '<(PRODUCT_DIR)/crash_report_sender.app' |
| 914 ], |
| 915 }, |
| 916 ], |
| 917 'dependencies': [ |
| 918 '../breakpad/breakpad.gyp:dump_syms', |
| 919 ], |
| 920 'postbuilds': [ |
| 921 { |
| 922 'postbuild_name': 'Dump Symbols', |
| 923 'variables': { |
| 924 'dump_product_syms_path': |
| 925 'scripts/mac/dump_product_syms', |
| 926 }, |
| 927 'action': [ |
| 928 '<(dump_product_syms_path)', |
| 929 '<(version_full)', |
| 930 ], |
| 931 }, # end of postbuild 'dump_symbols' |
| 932 ], # end of 'postbuilds' |
| 933 }], # mac_breakpad==1 |
| 934 ], # conditions |
| 935 }], # OS=mac |
809 ], | 936 ], |
810 }, # end of target 'remoting_it2me_native_messaging_host' | 937 }, # end of target 'remoting_it2me_native_messaging_host' |
811 ], # end of 'targets' | 938 ], # end of 'targets' |
812 }], # OS!="win" | 939 }], # OS!="win" |
813 | 940 |
814 ], # end of 'conditions' | 941 ], # end of 'conditions' |
815 } | 942 } |
OLD | NEW |