Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: remoting/remoting_host.gypi

Issue 186763004: Add breakpad support for me2me and it2me native messaging host on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 'type': 'none', 570 'type': 'none',
571 'conditions': [ 571 'conditions': [
572 [ 'OS == "win"', { 572 [ 'OS == "win"', {
573 'variables': { 573 'variables': {
574 'me2me_host_path': 'remoting_native_messaging_host.exe', 574 'me2me_host_path': 'remoting_native_messaging_host.exe',
575 'it2me_host_path': 'remote_assistance_host.exe', 575 'it2me_host_path': 'remote_assistance_host.exe',
576 }, 576 },
577 }], 577 }],
578 [ 'OS == "mac"', { 578 [ 'OS == "mac"', {
579 'variables': { 579 'variables': {
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@")',
582 'remoting_name': '<!(python <(version_py_path) -f <(branding_pat h) -t "@MAC_REMOTING_NAME@")',
580 'me2me_host_path': 583 'me2me_host_path':
581 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m e_host.app/Contents/MacOS/native_messaging_host', 584 '/Library/Google/<(remoting_name)/<(native_messaging_host_bu ndle_name).app/Contents/MacOS/native_messaging_host',
582 'it2me_host_path': 585 'it2me_host_path':
583 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m e_host.app/Contents/MacOS/remote_assistance_host', 586 '/Library/Google/<(remoting_name)/<(remote_assistance_host_b undle_name).app/Contents/MacOS/remote_assistance_host',
584 }, 587 },
585 }], 588 }],
586 [ 'OS != "mac" and OS != "win"', { 589 [ 'OS != "mac" and OS != "win"', {
587 'variables': { 590 'variables': {
588 'me2me_host_path': 591 'me2me_host_path':
589 '/opt/google/chrome-remote-desktop/native-messaging-host', 592 '/opt/google/chrome-remote-desktop/native-messaging-host',
590 'it2me_host_path': 593 'it2me_host_path':
591 '/opt/google/chrome-remote-desktop/remote-assistance-host', 594 '/opt/google/chrome-remote-desktop/remote-assistance-host',
592 }, 595 },
593 }], 596 }],
(...skipping 29 matching lines...) Expand all
623 'target_name': 'remoting_infoplist_strings', 626 'target_name': 'remoting_infoplist_strings',
624 'type': 'none', 627 'type': 'none',
625 'dependencies': [ 628 'dependencies': [
626 'remoting_resources', 629 'remoting_resources',
627 ], 630 ],
628 'sources': [ 631 'sources': [
629 'host/plugin/host_plugin-InfoPlist.strings.jinja2', 632 'host/plugin/host_plugin-InfoPlist.strings.jinja2',
630 'host/remoting_me2me_host-InfoPlist.strings.jinja2', 633 'host/remoting_me2me_host-InfoPlist.strings.jinja2',
631 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2', 634 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
632 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strin gs.jinja2', 635 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strin gs.jinja2',
636 'host/setup/native_messaging_host-InfoPlist.strings.jinja2',
637 'host/it2me/remote_assistance_host-InfoPlist.strings.jinja2',
633 ], 638 ],
634 'rules': [{ 639 'rules': [{
635 'rule_name': 'generate_strings', 640 'rule_name': 'generate_strings',
636 'extension': 'jinja2', 641 'extension': 'jinja2',
637 'inputs': [ 642 'inputs': [
638 '<(remoting_localize_path)', 643 '<(remoting_localize_path)',
639 '<(RULE_INPUT_PATH)', 644 '<(RULE_INPUT_PATH)',
640 ], 645 ],
641 'outputs': [ 646 'outputs': [
642 '<!@pymod_do_main(remoting_localize --locale_output ' 647 '<!@pymod_do_main(remoting_localize --locale_output '
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', { 752 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
748 'dependencies': [ 753 'dependencies': [
749 '../base/allocator/allocator.gyp:allocator', 754 '../base/allocator/allocator.gyp:allocator',
750 ], 755 ],
751 }], # OS=linux 756 }], # OS=linux
752 ], # end of 'conditions' 757 ], # end of 'conditions'
753 }, # end of target 'remoting_me2me_host' 758 }, # end of target 'remoting_me2me_host'
754 { 759 {
755 'target_name': 'remoting_me2me_native_messaging_host', 760 'target_name': 'remoting_me2me_native_messaging_host',
756 'type': 'executable', 761 'type': 'executable',
757 'product_name': 'remoting_native_messaging_host', 762 'product_name': 'native_messaging_host',
758 'variables': { 'enable_wexit_time_destructors': 1, }, 763 'variables': { 'enable_wexit_time_destructors': 1, },
759 'dependencies': [ 764 'dependencies': [
760 '../base/base.gyp:base', 765 '../base/base.gyp:base',
766 'remoting_breakpad',
761 'remoting_host', 767 'remoting_host',
762 'remoting_host_setup_base', 768 'remoting_host_setup_base',
769 'remoting_infoplist_strings',
763 'remoting_native_messaging_base', 770 'remoting_native_messaging_base',
764 ], 771 ],
765 'sources': [ 772 'sources': [
766 'host/setup/me2me_native_messaging_host.cc', 773 'host/setup/me2me_native_messaging_host.cc',
767 'host/setup/me2me_native_messaging_host.h', 774 'host/setup/me2me_native_messaging_host.h',
768 'host/setup/me2me_native_messaging_host_entry_point.cc', 775 'host/setup/me2me_native_messaging_host_entry_point.cc',
769 'host/setup/me2me_native_messaging_host_main.cc', 776 'host/setup/me2me_native_messaging_host_main.cc',
770 'host/setup/me2me_native_messaging_host_main.h', 777 'host/setup/me2me_native_messaging_host_main.h',
771 ], 778 ],
772 'conditions': [ 779 'conditions': [
773 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 780 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
774 ['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))', {
775 'dependencies': [ 782 'dependencies': [
776 '../base/allocator/allocator.gyp:allocator', 783 '../base/allocator/allocator.gyp:allocator',
777 ], 784 ],
778 }], 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
779 ], 842 ],
780 }, # end of target 'remoting_me2me_native_messaging_host' 843 }, # end of target 'remoting_me2me_native_messaging_host'
781 { 844 {
782 'target_name': 'remoting_it2me_native_messaging_host', 845 'target_name': 'remoting_it2me_native_messaging_host',
783 'type': 'executable', 846 'type': 'executable',
847 'product_name': 'remote_assistance_host',
784 'variables': { 'enable_wexit_time_destructors': 1, }, 848 'variables': { 'enable_wexit_time_destructors': 1, },
785 'dependencies': [ 849 'dependencies': [
786 '../base/base.gyp:base', 850 '../base/base.gyp:base',
787 'remoting_base', 851 'remoting_base',
788 'remoting_breakpad', 852 'remoting_breakpad',
789 'remoting_host', 853 'remoting_host',
790 'remoting_it2me_host_static', 854 'remoting_it2me_host_static',
791 'remoting_native_messaging_base', 855 'remoting_native_messaging_base',
792 'remoting_protocol', 856 'remoting_protocol',
793 ], 857 ],
794 'sources': [ 858 'sources': [
795 'host/it2me/it2me_native_messaging_host_entry_point.cc', 859 'host/it2me/it2me_native_messaging_host_entry_point.cc',
796 'host/it2me/it2me_native_messaging_host_main.cc', 860 'host/it2me/it2me_native_messaging_host_main.cc',
797 'host/it2me/it2me_native_messaging_host_main.h', 861 'host/it2me/it2me_native_messaging_host_main.h',
798 ], 862 ],
799 'conditions': [ 863 'conditions': [
800 ['OS=="linux"', { 864 ['OS=="linux"', {
801 'dependencies': [ 865 'dependencies': [
802 # Always use GTK on Linux, even for Aura builds. 866 # Always use GTK on Linux, even for Aura builds.
803 '../build/linux/system.gyp:gtk', 867 '../build/linux/system.gyp:gtk',
804 ], 868 ],
805 }], 869 }],
806 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 870 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
807 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', { 871 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_us e_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
808 'dependencies': [ 872 'dependencies': [
809 '../base/allocator/allocator.gyp:allocator', 873 '../base/allocator/allocator.gyp:allocator',
810 ], 874 ],
811 }], 875 }],
876 ['OS=="mac"', {
877 'mac_bundle': 1,
878 'variables': {
879 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_p ath) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")',
880 },
881 'xcode_settings': {
882 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist' ,
883 'INFOPLIST_PREPROCESS': 'YES',
884 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_f ull)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
885 },
886 'mac_bundle_resources': [
887 '<(PRODUCT_DIR)/icudtl.dat',
888 'host/it2me/remote_assistance_host-Info.plist',
889 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT _DIR) <(remoting_locales))',
890
891 # Localized strings for 'Info.plist'
892 '<!@pymod_do_main(remoting_localize --locale_output '
893 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host -InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
894 '--print_only <(remoting_locales))',
895 ],
896 'mac_bundle_resources!': [
897 'host/it2me/remote_assistance_host-Info.plist',
898 ],
899 'conditions': [
900 ['mac_breakpad==1', {
901 'variables': {
902 # A real .dSYM is needed for dump_syms to operate on.
903 'mac_real_dsym': 1,
904 },
905 'copies': [
906 {
907 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Res ources',
908 'files': [
909 '<(PRODUCT_DIR)/crash_inspector',
910 '<(PRODUCT_DIR)/crash_report_sender.app'
911 ],
912 },
913 ],
914 'dependencies': [
915 '../breakpad/breakpad.gyp:dump_syms',
916 ],
917 'postbuilds': [
918 {
919 'postbuild_name': 'Dump Symbols',
920 'variables': {
921 'dump_product_syms_path':
922 'scripts/mac/dump_product_syms',
923 },
924 'action': [
925 '<(dump_product_syms_path)',
926 '<(version_full)',
927 ],
928 }, # end of postbuild 'dump_symbols'
929 ], # end of 'postbuilds'
930 }], # mac_breakpad==1
931 ], # conditions
932 }], # OS=mac
812 ], 933 ],
813 }, # end of target 'remoting_it2me_native_messaging_host' 934 }, # end of target 'remoting_it2me_native_messaging_host'
814 ], # end of 'targets' 935 ], # end of 'targets'
815 }], # OS!="win" 936 }], # OS!="win"
816 937
817 ], # end of 'conditions' 938 ], # end of 'conditions'
818 } 939 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698