1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'breakpad_sender.gypi',
8 'breakpad_handler.gypi',
19 # This is needed for GTMLogger to work correctly.
27 'target_name': 'breakpad_utilities',
30 'src/common/convert_UTF.c',
31 'src/client/mac/handler/breakpad_nlist_64.cc',
32 'src/client/mac/handler/dynamic_images.cc',
33 'src/common/mac/file_id.cc',
34 'src/common/mac/MachIPC.mm',
35 'src/common/mac/macho_id.cc',
36 'src/common/mac/macho_utilities.cc',
37 'src/common/mac/macho_walker.cc',
38 'src/client/minidump_file_writer.cc',
39 'src/client/mac/handler/minidump_generator.cc',
40 'src/common/mac/SimpleStringDictionary.mm',
41 'src/common/string_conversion.cc',
42 'src/common/mac/string_utilities.cc',
45 'libraries': ['$(SDKROOT)/usr/lib/libcrypto.dylib'],
49 'target_name': 'crash_inspector',
61 'src/client/mac/crash_generation/Inspector.mm',
62 'src/client/mac/crash_generation/InspectorMain.mm',
66 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
71 'target_name': 'crash_report_sender',
81 'src/common/mac/HTTPMultipartUpload.m',
82 'src/client/mac/sender/crash_report_sender.m',
83 'src/common/mac/GTMLogger.m',
85 'mac_bundle_resources': [
86 'src/client/mac/sender/English.lproj/Localizable.strings',
87 'src/client/mac/sender/crash_report_sender.icns',
88 'src/client/mac/sender/Breakpad.xib',
89 'src/client/mac/sender/crash_report_sender-Info.plist',
91 'mac_bundle_resources!': [
92 'src/client/mac/sender/crash_report_sender-Info.plist',
95 'INFOPLIST_FILE': 'src/client/mac/sender/crash_report_sender-Info.plist',
99 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
100 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
101 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
106 'target_name': 'dump_syms',
107 'type': 'executable',
112 'src/common/dwarf/dwarf2diehandler.cc',
113 'src/common/dwarf/dwarf2reader.cc',
114 'src/common/dwarf/bytereader.cc',
115 'src/common/dwarf_cfi_to_module.cc',
116 'src/common/dwarf_cu_to_module.cc',
117 'src/common/dwarf_line_to_module.cc',
118 'src/common/language.cc',
119 'src/common/module.cc',
120 'src/common/mac/dump_syms.mm',
121 'src/common/mac/file_id.cc',
122 'src/common/mac/macho_id.cc',
123 'src/common/mac/macho_reader.cc',
124 'src/common/mac/macho_utilities.cc',
125 'src/common/mac/macho_walker.cc',
126 'src/common/stabs_reader.cc',
127 'src/common/stabs_to_module.cc',
128 'src/tools/mac/dump_syms/dump_syms_tool.mm',
131 # For src/common/stabs_reader.h.
132 'HAVE_MACH_O_NLIST_H',
135 # The DWARF utilities require -funsigned-char.
136 'GCC_CHAR_IS_UNSIGNED_CHAR': 'YES',
137 # dwarf2reader.cc uses dynamic_cast.
138 'GCC_ENABLE_CPP_RTTI': 'YES',
142 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
143 '$(SDKROOT)/usr/lib/libcrypto.dylib',
149 # dump_syms crashes when built at -O1, -O2, and -O3. It does
150 # not crash at -Os. To play it safe, dump_syms is always built
151 # at -O0 until this can be sorted out.
152 # http://code.google.com/p/google-breakpad/issues/detail?id=329
153 'GCC_OPTIMIZATION_LEVEL': '0', # -O0
159 'target_name': 'symupload',
160 'type': 'executable',
165 'src/common/mac/HTTPMultipartUpload.m',
166 'src/tools/mac/symupload/symupload.m',
170 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
175 'target_name': 'breakpad',
176 'type': '<(library)',
178 'breakpad_utilities',
180 'crash_report_sender',
183 'src/client/mac/crash_generation/crash_generation_client.cc',
184 'src/client/mac/crash_generation/crash_generation_client.h',
185 'src/client/mac/handler/protected_memory_allocator.cc',
186 'src/client/mac/handler/exception_handler.cc',
187 'src/client/mac/Framework/Breakpad.mm',
188 'src/client/mac/Framework/OnDemandServer.mm',
195 # Tools needed for archiving build symbols.
196 ['linux_breakpad==1', {
199 'target_name': 'symupload',
200 'type': 'executable',
202 # This uses the system libcurl, so don't use the default 32-bit
203 # compile flags when building on a 64-bit machine.
205 'host_arch': '<!(uname -m)',
208 ['host_arch=="x86_64"', {
209 'cflags!': ['-m32', '-march=pentium4', '-msse2',
211 'ldflags!': ['-m32'],
217 'src/tools/linux/symupload/sym_upload.cc',
218 'src/common/linux/http_upload.cc',
219 'src/common/linux/http_upload.h',
231 'target_name': 'dump_syms',
232 'type': 'executable',
234 # dwarf2reader.cc uses dynamic_cast. Because we don't typically
235 # don't support RTTI, we enable it for this single target. Since
236 # dump_syms doesn't share any object files with anything else,
237 # this doesn't end up polluting Chrome itself.
238 'cflags_cc!': ['-fno-rtti'],
241 'src/common/dwarf/bytereader.cc',
242 'src/common/dwarf_cfi_to_module.cc',
243 'src/common/dwarf_cfi_to_module.h',
244 'src/common/dwarf_cu_to_module.cc',
245 'src/common/dwarf_cu_to_module.h',
246 'src/common/dwarf/dwarf2diehandler.cc',
247 'src/common/dwarf/dwarf2reader.cc',
248 'src/common/dwarf_line_to_module.cc',
249 'src/common/dwarf_line_to_module.h',
250 'src/common/language.cc',
251 'src/common/language.h',
252 'src/common/linux/dump_symbols.cc',
253 'src/common/linux/dump_symbols.h',
254 'src/common/linux/file_id.cc',
255 'src/common/linux/file_id.h',
256 'src/common/linux/guid_creator.h',
257 'src/common/module.cc',
258 'src/common/module.h',
259 'src/common/stabs_reader.cc',
260 'src/common/stabs_reader.h',
261 'src/common/stabs_to_module.cc',
262 'src/common/stabs_to_module.h',
263 'src/tools/linux/dump_syms/dump_syms.cc',
266 # Breakpad rev 583 introduced this flag.
267 # Using this define, stabs_reader.h will include a.out.h to
283 'target_name': 'breakpad_client',
284 'type': '<(library)',
287 'src/client/linux/crash_generation/crash_generation_client.cc',
288 'src/client/linux/crash_generation/crash_generation_client.h',
289 'src/client/linux/handler/exception_handler.cc',
290 'src/client/linux/minidump_writer/directory_reader.h',
291 'src/client/linux/minidump_writer/line_reader.h',
292 'src/client/linux/minidump_writer/linux_dumper.cc',
293 'src/client/linux/minidump_writer/linux_dumper.h',
294 'src/client/linux/minidump_writer/minidump_writer.cc',
295 'src/client/linux/minidump_writer/minidump_writer.h',
296 'src/client/minidump_file_writer-inl.h',
297 'src/client/minidump_file_writer.cc',
298 'src/client/minidump_file_writer.h',
299 'src/common/convert_UTF.c',
300 'src/common/convert_UTF.h',
301 'src/common/linux/file_id.cc',
302 'src/common/linux/file_id.h',
303 'src/common/linux/google_crashdump_uploader.cc',
304 'src/common/linux/google_crashdump_uploader.h',
305 'src/common/linux/guid_creator.cc',
306 'src/common/linux/guid_creator.h',
307 'src/common/linux/libcurl_wrapper.cc',
308 'src/common/linux/libcurl_wrapper.h',
309 'src/common/linux/linux_libc_support.h',
310 'src/common/linux/linux_syscall_support.h',
311 'src/common/memory.h',
312 'src/common/string_conversion.cc',
313 'src/common/string_conversion.h',
325 'src/third_party/linux/include',
331 # Breakpad r693 uses some files from src/processor in unit tests.
332 'target_name': 'breakpad_processor_support',
333 'type': '<(library)',
336 'src/processor/basic_code_modules.cc',
337 'src/processor/basic_code_modules.h',
338 'src/processor/logging.cc',
339 'src/processor/logging.h',
340 'src/processor/minidump.cc',
341 'src/processor/minidump.h',
342 'src/processor/pathname_stripper.cc',
343 'src/processor/pathname_stripper.h',
349 'src/third_party/linux/include',
355 'target_name': 'breakpad_unittests',
356 'type': 'executable',
358 '../testing/gtest.gyp:gtest',
359 '../testing/gtest.gyp:gtest_main',
360 '../testing/gmock.gyp:gmock',
362 'breakpad_processor_support',
366 'linux/breakpad_googletest_includes.h',
367 'src/client/linux/handler/exception_handler_unittest.cc',
368 'src/client/linux/minidump_writer/directory_reader_unittest.cc',
369 'src/client/linux/minidump_writer/line_reader_unittest.cc',
370 'src/client/linux/minidump_writer/linux_dumper_unittest.cc',
371 'src/client/linux/minidump_writer/minidump_writer_unittest.cc',
372 'src/common/linux/file_id_unittest.cc',
373 'src/common/linux/linux_libc_support_unittest.cc',
374 'src/common/memory_unittest.cc',
378 'linux', # Use our copy of breakpad_googletest_includes.h
385 'target_name': 'generate_test_dump',
386 'type': 'executable',
389 'linux/generate-test-dump.cc',
402 'target_name': 'minidump-2-core',
403 'type': 'executable',
406 'src/tools/linux/md2core/minidump-2-core.cc'
421 # indent-tabs-mode:nil
423 # vim: set expandtab tabstop=2 shiftwidth=2: