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 'breakpad_sender.gypi', | 7 'breakpad_sender.gypi', |
8 'breakpad_handler.gypi', | 8 'breakpad_handler.gypi', |
9 ], | 9 ], |
10 'conditions': [ | 10 'conditions': [ |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 'src/processor/logging.cc', | 98 'src/processor/logging.cc', |
99 'src/processor/logging.h', | 99 'src/processor/logging.h', |
100 'src/processor/minidump.cc', | 100 'src/processor/minidump.cc', |
101 'src/processor/minidump_dump.cc', | 101 'src/processor/minidump_dump.cc', |
102 'src/processor/pathname_stripper.cc', | 102 'src/processor/pathname_stripper.cc', |
103 'src/processor/pathname_stripper.h', | 103 'src/processor/pathname_stripper.h', |
104 ], | 104 ], |
105 }, | 105 }, |
106 ], | 106 ], |
107 }], | 107 }], |
108 [ 'OS=="mac"', { | 108 [ 'OS=="mac" or (OS=="ios" and "<(GENERATOR)"=="ninja")', { |
109 'target_defaults': { | 109 'target_defaults': { |
110 'include_dirs': [ | 110 'include_dirs': [ |
111 'src', | 111 'src', |
112 ], | 112 ], |
113 'configurations': { | 113 'configurations': { |
114 'Debug_Base': { | 114 'Debug_Base': { |
115 'defines': [ | 115 'defines': [ |
116 # This is needed for GTMLogger to work correctly. | 116 # This is needed for GTMLogger to work correctly. |
117 'DEBUG', | 117 'DEBUG', |
118 ], | 118 ], |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
199 'libraries': [ | 199 'libraries': [ |
200 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | 200 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
201 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 201 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
202 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor k', | 202 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor k', |
203 ], | 203 ], |
204 } | 204 } |
205 }, | 205 }, |
206 { | 206 { |
207 'target_name': 'dump_syms', | 207 'target_name': 'dump_syms', |
208 'type': 'executable', | 208 'type': 'executable', |
209 'toolsets': ['host','target'], | |
stuartmorgan
2013/05/06 11:56:35
spaces after ,
justincohen
2013/05/06 14:17:36
Done.
| |
209 'include_dirs++': [ | 210 'include_dirs++': [ |
210 # ++ ensures this comes before src brought in from target_defaults. | 211 # ++ ensures this comes before src brought in from target_defaults. |
211 'pending/src', | 212 'pending/src', |
212 ], | 213 ], |
213 'include_dirs': [ | 214 'include_dirs': [ |
214 'src/common/mac', | 215 'src/common/mac', |
215 ], | 216 ], |
216 'sources': [ | 217 'sources': [ |
217 'pending/src/common/dwarf_cu_to_module.cc', | 218 'pending/src/common/dwarf_cu_to_module.cc', |
218 'pending/src/common/module.cc', | 219 'pending/src/common/module.cc', |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 # at -O0 until this can be sorted out. | 268 # at -O0 until this can be sorted out. |
268 # http://code.google.com/p/google-breakpad/issues/detail?id=329 | 269 # http://code.google.com/p/google-breakpad/issues/detail?id=329 |
269 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 | 270 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 |
270 }, | 271 }, |
271 }, | 272 }, |
272 }, | 273 }, |
273 }, | 274 }, |
274 { | 275 { |
275 'target_name': 'symupload', | 276 'target_name': 'symupload', |
276 'type': 'executable', | 277 'type': 'executable', |
278 'toolsets': ['host','target'], | |
277 'include_dirs': [ | 279 'include_dirs': [ |
278 'src/common/mac', | 280 'src/common/mac', |
279 ], | 281 ], |
280 'sources': [ | 282 'sources': [ |
281 'src/common/mac/HTTPMultipartUpload.m', | 283 'src/common/mac/HTTPMultipartUpload.m', |
282 'src/tools/mac/symupload/symupload.m', | 284 'src/tools/mac/symupload/symupload.m', |
283 ], | 285 ], |
284 'link_settings': { | 286 'link_settings': { |
285 'libraries': [ | 287 'libraries': [ |
286 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 288 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
660 'breakpad_client', | 662 'breakpad_client', |
661 ], | 663 ], |
662 | 664 |
663 'include_dirs': [ | 665 'include_dirs': [ |
664 '..', | 666 '..', |
665 'src', | 667 'src', |
666 ], | 668 ], |
667 }, | 669 }, |
668 ], | 670 ], |
669 }], | 671 }], |
670 [ 'OS=="ios"', { | 672 ['OS=="ios"', { |
673 'targets': [ | |
674 { | |
675 'target_name': 'breakpad_client', | |
676 'type': 'static_library', | |
677 'sources': [ | |
678 'src/client/ios/Breakpad.h', | |
679 'src/client/ios/Breakpad.mm', | |
680 'src/client/ios/BreakpadController.h', | |
681 'src/client/ios/BreakpadController.mm', | |
682 'src/client/ios/handler/ios_exception_minidump_generator.mm', | |
683 'src/client/ios/handler/ios_exception_minidump_generator.h', | |
684 'src/client/mac/crash_generation/ConfigFile.h', | |
685 'src/client/mac/crash_generation/ConfigFile.mm', | |
686 'src/client/mac/handler/breakpad_nlist_64.cc', | |
687 'src/client/mac/handler/breakpad_nlist_64.h', | |
688 'src/client/mac/handler/dynamic_images.cc', | |
689 'src/client/mac/handler/dynamic_images.h', | |
690 'src/client/mac/handler/protected_memory_allocator.cc', | |
691 'src/client/mac/handler/protected_memory_allocator.h', | |
692 'src/client/mac/handler/exception_handler.cc', | |
693 'src/client/mac/handler/exception_handler.h', | |
694 'src/client/mac/handler/minidump_generator.cc', | |
695 'src/client/mac/handler/minidump_generator.h', | |
696 'src/client/mac/sender/uploader.h', | |
697 'src/client/mac/sender/uploader.mm', | |
698 'src/client/minidump_file_writer.cc', | |
699 'src/client/minidump_file_writer.h', | |
700 'src/client/minidump_file_writer-inl.h', | |
701 'src/common/convert_UTF.c', | |
702 'src/common/convert_UTF.h', | |
703 'src/common/mac/file_id.cc', | |
704 'src/common/mac/file_id.h', | |
705 'src/common/mac/HTTPMultipartUpload.m', | |
706 'src/common/mac/macho_id.cc', | |
707 'src/common/mac/macho_id.h', | |
708 'src/common/mac/macho_utilities.cc', | |
709 'src/common/mac/macho_utilities.h', | |
710 'src/common/mac/macho_walker.cc', | |
711 'src/common/mac/macho_walker.h', | |
712 'src/common/mac/string_utilities.cc', | |
713 'src/common/mac/string_utilities.h', | |
714 'src/common/md5.cc', | |
715 'src/common/md5.h', | |
716 'src/common/simple_string_dictionary.cc', | |
717 'src/common/simple_string_dictionary.h', | |
718 'src/common/string_conversion.cc', | |
719 'src/common/string_conversion.h', | |
720 'src/google_breakpad/common/minidump_format.h', | |
721 ], | |
722 'include_dirs': [ | |
723 'src', | |
724 'src/client/mac/Framework', | |
725 'src/common/mac', | |
726 # For GTMLogger. | |
727 '<(DEPTH)/third_party/GTM', | |
728 '<(DEPTH)/third_party/GTM/Foundation', | |
729 ], | |
730 'link_settings': { | |
731 # Build the version of GTMLogger.m in third_party rather than the | |
732 # one in src/common/mac because the former catches all exceptions | |
733 # whereas the latter lets them propagate, which can cause odd | |
734 # crashes. | |
735 'sources': [ | |
736 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.h', | |
737 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.m', | |
738 ], | |
739 'include_dirs': [ | |
740 '<(DEPTH)/third_party/GTM', | |
741 '<(DEPTH)/third_party/GTM/Foundation', | |
742 ], | |
743 }, | |
744 } | |
745 ] | |
746 }], | |
747 ['OS=="ios" and "<(GENERATOR)"!="ninja"', { | |
671 'variables': { | 748 'variables': { |
672 'ninja_output_dir': 'ninja-breakpad', | 749 'ninja_output_dir': 'ninja-breakpad', |
673 'ninja_product_dir': | 750 'ninja_product_dir': |
674 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', | 751 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', |
675 }, | 752 }, |
676 # Generation is done via two actions: (1) compiling the executable with | 753 # Generation is done via two actions: (1) compiling the executable with |
677 # ninja, and (2) copying the executable into a location that is shared | 754 # ninja, and (2) copying the executable into a location that is shared |
678 # with other projects. These actions are separated into two targets in | 755 # with other projects. These actions are separated into two targets in |
679 # order to be able to specify that the second action should not run until | 756 # order to be able to specify that the second action should not run until |
680 # the first action finishes (since the ordering of multiple actions in | 757 # the first action finishes (since the ordering of multiple actions in |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
749 'dependencies': [ | 826 'dependencies': [ |
750 'breakpad_utilities', | 827 'breakpad_utilities', |
751 ], | 828 ], |
752 }, | 829 }, |
753 { | 830 { |
754 'target_name': 'symupload', | 831 'target_name': 'symupload', |
755 'type': 'none', | 832 'type': 'none', |
756 'dependencies': [ | 833 'dependencies': [ |
757 'breakpad_utilities', | 834 'breakpad_utilities', |
758 ], | 835 ], |
759 }, | 836 } |
760 { | |
761 'target_name': 'breakpad_client', | |
762 'type': 'static_library', | |
763 'sources': [ | |
764 'src/client/ios/Breakpad.h', | |
765 'src/client/ios/Breakpad.mm', | |
766 'src/client/ios/BreakpadController.h', | |
767 'src/client/ios/BreakpadController.mm', | |
768 'src/client/ios/handler/ios_exception_minidump_generator.mm', | |
769 'src/client/ios/handler/ios_exception_minidump_generator.h', | |
770 'src/client/mac/crash_generation/ConfigFile.h', | |
771 'src/client/mac/crash_generation/ConfigFile.mm', | |
772 'src/client/mac/handler/breakpad_nlist_64.cc', | |
773 'src/client/mac/handler/breakpad_nlist_64.h', | |
774 'src/client/mac/handler/dynamic_images.cc', | |
775 'src/client/mac/handler/dynamic_images.h', | |
776 'src/client/mac/handler/protected_memory_allocator.cc', | |
777 'src/client/mac/handler/protected_memory_allocator.h', | |
778 'src/client/mac/handler/exception_handler.cc', | |
779 'src/client/mac/handler/exception_handler.h', | |
780 'src/client/mac/handler/minidump_generator.cc', | |
781 'src/client/mac/handler/minidump_generator.h', | |
782 'src/client/mac/sender/uploader.h', | |
783 'src/client/mac/sender/uploader.mm', | |
784 'src/client/minidump_file_writer.cc', | |
785 'src/client/minidump_file_writer.h', | |
786 'src/client/minidump_file_writer-inl.h', | |
787 'src/common/convert_UTF.c', | |
788 'src/common/convert_UTF.h', | |
789 'src/common/mac/file_id.cc', | |
790 'src/common/mac/file_id.h', | |
791 'src/common/mac/HTTPMultipartUpload.m', | |
792 'src/common/mac/macho_id.cc', | |
793 'src/common/mac/macho_id.h', | |
794 'src/common/mac/macho_utilities.cc', | |
795 'src/common/mac/macho_utilities.h', | |
796 'src/common/mac/macho_walker.cc', | |
797 'src/common/mac/macho_walker.h', | |
798 'src/common/mac/string_utilities.cc', | |
799 'src/common/mac/string_utilities.h', | |
800 'src/common/md5.cc', | |
801 'src/common/md5.h', | |
802 'src/common/simple_string_dictionary.cc', | |
803 'src/common/simple_string_dictionary.h', | |
804 'src/common/string_conversion.cc', | |
805 'src/common/string_conversion.h', | |
806 'src/google_breakpad/common/minidump_format.h', | |
807 ], | |
808 'include_dirs': [ | |
809 'src', | |
810 'src/client/mac/Framework', | |
811 'src/common/mac', | |
812 # For GTMLogger. | |
813 '<(DEPTH)/third_party/GTM', | |
814 '<(DEPTH)/third_party/GTM/Foundation', | |
815 ], | |
816 'link_settings': { | |
817 # Build the version of GTMLogger.m in third_party rather than the | |
818 # one in src/common/mac because the former catches all exceptions | |
819 # whereas the latter lets them propagate, which can cause odd | |
820 # crashes. | |
821 'sources': [ | |
822 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.h', | |
823 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.m', | |
824 ], | |
825 'include_dirs': [ | |
826 '<(DEPTH)/third_party/GTM', | |
827 '<(DEPTH)/third_party/GTM/Foundation', | |
828 ], | |
829 }, | |
830 }, | |
831 ], | 837 ], |
832 }], | 838 }], |
833 ], | 839 ], |
834 } | 840 } |
OLD | NEW |