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 ], |
119 }, | 119 }, |
120 }, | 120 }, |
121 }, | 121 }, |
122 'targets': [ | 122 'targets': [ |
123 { | 123 { |
124 'target_name': 'breakpad_utilities', | |
125 'type': 'static_library', | |
126 'sources': [ | |
127 'src/client/mac/handler/breakpad_nlist_64.cc', | |
128 'src/client/mac/handler/dynamic_images.cc', | |
129 'src/client/mac/handler/minidump_generator.cc', | |
130 'src/client/minidump_file_writer.cc', | |
131 'src/common/convert_UTF.c', | |
132 'src/common/mac/MachIPC.mm', | |
133 'src/common/mac/arch_utilities.cc', | |
134 'src/common/mac/bootstrap_compat.cc', | |
135 'src/common/mac/file_id.cc', | |
136 'src/common/mac/macho_id.cc', | |
137 'src/common/mac/macho_utilities.cc', | |
138 'src/common/mac/macho_walker.cc', | |
139 'src/common/mac/string_utilities.cc', | |
140 'src/common/md5.cc', | |
141 'src/common/simple_string_dictionary.cc', | |
142 'src/common/string_conversion.cc', | |
143 ], | |
144 }, | |
145 { | |
146 'target_name': 'crash_inspector', | |
147 'type': 'executable', | |
148 'variables': { | |
149 'mac_real_dsym': 1, | |
150 }, | |
151 'dependencies': [ | |
152 'breakpad_utilities', | |
153 ], | |
154 'include_dirs': [ | |
155 'src/client/apple/Framework', | |
156 'src/common/mac', | |
157 ], | |
158 'sources': [ | |
159 'src/client/mac/crash_generation/ConfigFile.mm', | |
160 'src/client/mac/crash_generation/Inspector.mm', | |
161 'src/client/mac/crash_generation/InspectorMain.mm', | |
162 ], | |
163 'link_settings': { | |
164 'libraries': [ | |
165 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', | |
166 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
167 ], | |
168 } | |
169 }, | |
170 { | |
171 'target_name': 'crash_report_sender', | |
172 'type': 'executable', | |
173 'mac_bundle': 1, | |
174 'variables': { | |
175 'mac_real_dsym': 1, | |
176 }, | |
177 'include_dirs': [ | |
178 'src/common/mac', | |
179 ], | |
180 'sources': [ | |
181 'src/common/mac/HTTPMultipartUpload.m', | |
182 'src/client/mac/sender/crash_report_sender.m', | |
183 'src/client/mac/sender/uploader.mm', | |
184 'src/common/mac/GTMLogger.m', | |
185 ], | |
186 'mac_bundle_resources': [ | |
187 'src/client/mac/sender/English.lproj/Localizable.strings', | |
188 'src/client/mac/sender/crash_report_sender.icns', | |
189 'src/client/mac/sender/Breakpad.xib', | |
190 'src/client/mac/sender/crash_report_sender-Info.plist', | |
191 ], | |
192 'mac_bundle_resources!': [ | |
193 'src/client/mac/sender/crash_report_sender-Info.plist', | |
194 ], | |
195 'xcode_settings': { | |
196 'INFOPLIST_FILE': 'src/client/mac/sender/crash_report_sender-Info.p
list', | |
197 }, | |
198 'link_settings': { | |
199 'libraries': [ | |
200 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
201 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
202 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', | |
203 ], | |
204 } | |
205 }, | |
206 { | |
207 'target_name': 'dump_syms', | 124 'target_name': 'dump_syms', |
208 'type': 'executable', | 125 'type': 'executable', |
| 126 'toolsets': ['host'], |
209 'include_dirs++': [ | 127 'include_dirs++': [ |
210 # ++ ensures this comes before src brought in from target_defaults. | 128 # ++ ensures this comes before src brought in from target_defaults. |
211 'pending/src', | 129 'pending/src', |
212 ], | 130 ], |
213 'include_dirs': [ | 131 'include_dirs': [ |
214 'src/common/mac', | 132 'src/common/mac', |
215 ], | 133 ], |
216 'sources': [ | 134 'sources': [ |
217 'pending/src/common/dwarf_cu_to_module.cc', | 135 'pending/src/common/dwarf_cu_to_module.cc', |
218 'pending/src/common/module.cc', | 136 '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. | 185 # at -O0 until this can be sorted out. |
268 # http://code.google.com/p/google-breakpad/issues/detail?id=329 | 186 # http://code.google.com/p/google-breakpad/issues/detail?id=329 |
269 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 | 187 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 |
270 }, | 188 }, |
271 }, | 189 }, |
272 }, | 190 }, |
273 }, | 191 }, |
274 { | 192 { |
275 'target_name': 'symupload', | 193 'target_name': 'symupload', |
276 'type': 'executable', | 194 'type': 'executable', |
| 195 'toolsets': ['host'], |
277 'include_dirs': [ | 196 'include_dirs': [ |
278 'src/common/mac', | 197 'src/common/mac', |
279 ], | 198 ], |
280 'sources': [ | 199 'sources': [ |
281 'src/common/mac/HTTPMultipartUpload.m', | 200 'src/common/mac/HTTPMultipartUpload.m', |
282 'src/tools/mac/symupload/symupload.m', | 201 'src/tools/mac/symupload/symupload.m', |
283 ], | 202 ], |
284 'link_settings': { | 203 'link_settings': { |
285 'libraries': [ | 204 'libraries': [ |
286 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 205 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
287 ], | 206 ], |
288 } | 207 } |
289 }, | 208 }, |
| 209 ], |
| 210 }], |
| 211 ['OS=="mac"', { |
| 212 'target_defaults': { |
| 213 'include_dirs': [ |
| 214 'src', |
| 215 ], |
| 216 'configurations': { |
| 217 'Debug_Base': { |
| 218 'defines': [ |
| 219 # This is needed for GTMLogger to work correctly. |
| 220 'DEBUG', |
| 221 ], |
| 222 }, |
| 223 }, |
| 224 }, |
| 225 'targets': [ |
| 226 { |
| 227 'target_name': 'breakpad_utilities', |
| 228 'type': 'static_library', |
| 229 'sources': [ |
| 230 'src/client/mac/handler/breakpad_nlist_64.cc', |
| 231 'src/client/mac/handler/dynamic_images.cc', |
| 232 'src/client/mac/handler/minidump_generator.cc', |
| 233 'src/client/minidump_file_writer.cc', |
| 234 'src/common/convert_UTF.c', |
| 235 'src/common/mac/MachIPC.mm', |
| 236 'src/common/mac/arch_utilities.cc', |
| 237 'src/common/mac/bootstrap_compat.cc', |
| 238 'src/common/mac/file_id.cc', |
| 239 'src/common/mac/macho_id.cc', |
| 240 'src/common/mac/macho_utilities.cc', |
| 241 'src/common/mac/macho_walker.cc', |
| 242 'src/common/mac/string_utilities.cc', |
| 243 'src/common/md5.cc', |
| 244 'src/common/simple_string_dictionary.cc', |
| 245 'src/common/string_conversion.cc', |
| 246 ], |
| 247 }, |
| 248 { |
| 249 'target_name': 'crash_inspector', |
| 250 'type': 'executable', |
| 251 'variables': { |
| 252 'mac_real_dsym': 1, |
| 253 }, |
| 254 'dependencies': [ |
| 255 'breakpad_utilities', |
| 256 ], |
| 257 'include_dirs': [ |
| 258 'src/client/apple/Framework', |
| 259 'src/common/mac', |
| 260 ], |
| 261 'sources': [ |
| 262 'src/client/mac/crash_generation/ConfigFile.mm', |
| 263 'src/client/mac/crash_generation/Inspector.mm', |
| 264 'src/client/mac/crash_generation/InspectorMain.mm', |
| 265 ], |
| 266 'link_settings': { |
| 267 'libraries': [ |
| 268 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', |
| 269 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 270 ], |
| 271 } |
| 272 }, |
| 273 { |
| 274 'target_name': 'crash_report_sender', |
| 275 'type': 'executable', |
| 276 'mac_bundle': 1, |
| 277 'variables': { |
| 278 'mac_real_dsym': 1, |
| 279 }, |
| 280 'include_dirs': [ |
| 281 'src/common/mac', |
| 282 ], |
| 283 'sources': [ |
| 284 'src/common/mac/HTTPMultipartUpload.m', |
| 285 'src/client/mac/sender/crash_report_sender.m', |
| 286 'src/client/mac/sender/uploader.mm', |
| 287 'src/common/mac/GTMLogger.m', |
| 288 ], |
| 289 'mac_bundle_resources': [ |
| 290 'src/client/mac/sender/English.lproj/Localizable.strings', |
| 291 'src/client/mac/sender/crash_report_sender.icns', |
| 292 'src/client/mac/sender/Breakpad.xib', |
| 293 'src/client/mac/sender/crash_report_sender-Info.plist', |
| 294 ], |
| 295 'mac_bundle_resources!': [ |
| 296 'src/client/mac/sender/crash_report_sender-Info.plist', |
| 297 ], |
| 298 'xcode_settings': { |
| 299 'INFOPLIST_FILE': 'src/client/mac/sender/crash_report_sender-Info.p
list', |
| 300 }, |
| 301 'link_settings': { |
| 302 'libraries': [ |
| 303 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 304 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 305 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', |
| 306 ], |
| 307 } |
| 308 }, |
290 { | 309 { |
291 'target_name': 'breakpad', | 310 'target_name': 'breakpad', |
292 'type': 'static_library', | 311 'type': 'static_library', |
293 'dependencies': [ | 312 'dependencies': [ |
294 'breakpad_utilities', | 313 'breakpad_utilities', |
295 'crash_inspector', | 314 'crash_inspector', |
296 'crash_report_sender', | 315 'crash_report_sender', |
297 ], | 316 ], |
298 'include_dirs': [ | 317 'include_dirs': [ |
299 'src/client/apple/Framework', | 318 'src/client/apple/Framework', |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 'breakpad_client', | 684 'breakpad_client', |
666 ], | 685 ], |
667 | 686 |
668 'include_dirs': [ | 687 'include_dirs': [ |
669 '..', | 688 '..', |
670 'src', | 689 'src', |
671 ], | 690 ], |
672 }, | 691 }, |
673 ], | 692 ], |
674 }], | 693 }], |
675 [ 'OS=="ios"', { | 694 ['OS=="ios"', { |
| 695 'targets': [ |
| 696 { |
| 697 'target_name': 'breakpad_client', |
| 698 'type': 'static_library', |
| 699 'sources': [ |
| 700 'src/client/ios/Breakpad.h', |
| 701 'src/client/ios/Breakpad.mm', |
| 702 'src/client/ios/BreakpadController.h', |
| 703 'src/client/ios/BreakpadController.mm', |
| 704 'src/client/ios/handler/ios_exception_minidump_generator.mm', |
| 705 'src/client/ios/handler/ios_exception_minidump_generator.h', |
| 706 'src/client/mac/crash_generation/ConfigFile.h', |
| 707 'src/client/mac/crash_generation/ConfigFile.mm', |
| 708 'src/client/mac/handler/breakpad_nlist_64.cc', |
| 709 'src/client/mac/handler/breakpad_nlist_64.h', |
| 710 'src/client/mac/handler/dynamic_images.cc', |
| 711 'src/client/mac/handler/dynamic_images.h', |
| 712 'src/client/mac/handler/protected_memory_allocator.cc', |
| 713 'src/client/mac/handler/protected_memory_allocator.h', |
| 714 'src/client/mac/handler/exception_handler.cc', |
| 715 'src/client/mac/handler/exception_handler.h', |
| 716 'src/client/mac/handler/minidump_generator.cc', |
| 717 'src/client/mac/handler/minidump_generator.h', |
| 718 'src/client/mac/sender/uploader.h', |
| 719 'src/client/mac/sender/uploader.mm', |
| 720 'src/client/minidump_file_writer.cc', |
| 721 'src/client/minidump_file_writer.h', |
| 722 'src/client/minidump_file_writer-inl.h', |
| 723 'src/common/convert_UTF.c', |
| 724 'src/common/convert_UTF.h', |
| 725 'src/common/mac/file_id.cc', |
| 726 'src/common/mac/file_id.h', |
| 727 'src/common/mac/HTTPMultipartUpload.m', |
| 728 'src/common/mac/macho_id.cc', |
| 729 'src/common/mac/macho_id.h', |
| 730 'src/common/mac/macho_utilities.cc', |
| 731 'src/common/mac/macho_utilities.h', |
| 732 'src/common/mac/macho_walker.cc', |
| 733 'src/common/mac/macho_walker.h', |
| 734 'src/common/mac/string_utilities.cc', |
| 735 'src/common/mac/string_utilities.h', |
| 736 'src/common/md5.cc', |
| 737 'src/common/md5.h', |
| 738 'src/common/simple_string_dictionary.cc', |
| 739 'src/common/simple_string_dictionary.h', |
| 740 'src/common/string_conversion.cc', |
| 741 'src/common/string_conversion.h', |
| 742 'src/google_breakpad/common/minidump_format.h', |
| 743 ], |
| 744 'include_dirs': [ |
| 745 'src', |
| 746 'src/client/mac/Framework', |
| 747 'src/common/mac', |
| 748 # For GTMLogger. |
| 749 '<(DEPTH)/third_party/GTM', |
| 750 '<(DEPTH)/third_party/GTM/Foundation', |
| 751 ], |
| 752 'link_settings': { |
| 753 # Build the version of GTMLogger.m in third_party rather than the |
| 754 # one in src/common/mac because the former catches all exceptions |
| 755 # whereas the latter lets them propagate, which can cause odd |
| 756 # crashes. |
| 757 'sources': [ |
| 758 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.h', |
| 759 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.m', |
| 760 ], |
| 761 'include_dirs': [ |
| 762 '<(DEPTH)/third_party/GTM', |
| 763 '<(DEPTH)/third_party/GTM/Foundation', |
| 764 ], |
| 765 }, |
| 766 } |
| 767 ] |
| 768 }], |
| 769 ['OS=="ios" and "<(GENERATOR)"!="ninja"', { |
676 'variables': { | 770 'variables': { |
677 'ninja_output_dir': 'ninja-breakpad', | 771 'ninja_output_dir': 'ninja-breakpad', |
678 'ninja_product_dir': | 772 'ninja_product_dir': |
679 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', | 773 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', |
680 }, | 774 }, |
681 # Generation is done via two actions: (1) compiling the executable with | 775 # Generation is done via two actions: (1) compiling the executable with |
682 # ninja, and (2) copying the executable into a location that is shared | 776 # ninja, and (2) copying the executable into a location that is shared |
683 # with other projects. These actions are separated into two targets in | 777 # with other projects. These actions are separated into two targets in |
684 # order to be able to specify that the second action should not run until | 778 # order to be able to specify that the second action should not run until |
685 # the first action finishes (since the ordering of multiple actions in | 779 # the first action finishes (since the ordering of multiple actions in |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 'dependencies': [ | 848 'dependencies': [ |
755 'breakpad_utilities', | 849 'breakpad_utilities', |
756 ], | 850 ], |
757 }, | 851 }, |
758 { | 852 { |
759 'target_name': 'symupload', | 853 'target_name': 'symupload', |
760 'type': 'none', | 854 'type': 'none', |
761 'dependencies': [ | 855 'dependencies': [ |
762 'breakpad_utilities', | 856 'breakpad_utilities', |
763 ], | 857 ], |
764 }, | 858 } |
765 { | |
766 'target_name': 'breakpad_client', | |
767 'type': 'static_library', | |
768 'sources': [ | |
769 'src/client/ios/Breakpad.h', | |
770 'src/client/ios/Breakpad.mm', | |
771 'src/client/ios/BreakpadController.h', | |
772 'src/client/ios/BreakpadController.mm', | |
773 'src/client/ios/handler/ios_exception_minidump_generator.mm', | |
774 'src/client/ios/handler/ios_exception_minidump_generator.h', | |
775 'src/client/mac/crash_generation/ConfigFile.h', | |
776 'src/client/mac/crash_generation/ConfigFile.mm', | |
777 'src/client/mac/handler/breakpad_nlist_64.cc', | |
778 'src/client/mac/handler/breakpad_nlist_64.h', | |
779 'src/client/mac/handler/dynamic_images.cc', | |
780 'src/client/mac/handler/dynamic_images.h', | |
781 'src/client/mac/handler/protected_memory_allocator.cc', | |
782 'src/client/mac/handler/protected_memory_allocator.h', | |
783 'src/client/mac/handler/exception_handler.cc', | |
784 'src/client/mac/handler/exception_handler.h', | |
785 'src/client/mac/handler/minidump_generator.cc', | |
786 'src/client/mac/handler/minidump_generator.h', | |
787 'src/client/mac/sender/uploader.h', | |
788 'src/client/mac/sender/uploader.mm', | |
789 'src/client/minidump_file_writer.cc', | |
790 'src/client/minidump_file_writer.h', | |
791 'src/client/minidump_file_writer-inl.h', | |
792 'src/common/convert_UTF.c', | |
793 'src/common/convert_UTF.h', | |
794 'src/common/mac/file_id.cc', | |
795 'src/common/mac/file_id.h', | |
796 'src/common/mac/HTTPMultipartUpload.m', | |
797 'src/common/mac/macho_id.cc', | |
798 'src/common/mac/macho_id.h', | |
799 'src/common/mac/macho_utilities.cc', | |
800 'src/common/mac/macho_utilities.h', | |
801 'src/common/mac/macho_walker.cc', | |
802 'src/common/mac/macho_walker.h', | |
803 'src/common/mac/string_utilities.cc', | |
804 'src/common/mac/string_utilities.h', | |
805 'src/common/md5.cc', | |
806 'src/common/md5.h', | |
807 'src/common/simple_string_dictionary.cc', | |
808 'src/common/simple_string_dictionary.h', | |
809 'src/common/string_conversion.cc', | |
810 'src/common/string_conversion.h', | |
811 'src/google_breakpad/common/minidump_format.h', | |
812 ], | |
813 'include_dirs': [ | |
814 'src', | |
815 'src/client/mac/Framework', | |
816 'src/common/mac', | |
817 # For GTMLogger. | |
818 '<(DEPTH)/third_party/GTM', | |
819 '<(DEPTH)/third_party/GTM/Foundation', | |
820 ], | |
821 'link_settings': { | |
822 # Build the version of GTMLogger.m in third_party rather than the | |
823 # one in src/common/mac because the former catches all exceptions | |
824 # whereas the latter lets them propagate, which can cause odd | |
825 # crashes. | |
826 'sources': [ | |
827 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.h', | |
828 '<(DEPTH)/third_party/GTM/Foundation/GTMLogger.m', | |
829 ], | |
830 'include_dirs': [ | |
831 '<(DEPTH)/third_party/GTM', | |
832 '<(DEPTH)/third_party/GTM/Foundation', | |
833 ], | |
834 }, | |
835 }, | |
836 ], | 859 ], |
837 }], | 860 }], |
838 ], | 861 ], |
839 } | 862 } |
OLD | NEW |