MacViews: Support continuous scrolling and horizontal scrolling
[chromium-blink-merge.git] / breakpad / BUILD.gn
blob97472124845b419c1f596b40d9c36850f115cb5d
1 # Copyright 2014 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.
5 config("tools_config") {
6   include_dirs = [ "src", "src/third_party" ]
7   if (is_android) {
8     defines = [ "__ANDROID__" ]
9   }
10   if (is_clang) {
11     cflags = [ "-Wno-tautological-constant-out-of-range-compare" ]
12   }
15 config("internal_config") {
16   include_dirs = [ "src" ]
17   defines = []
18   if (is_debug) {
19     # This is needed for GTMLogger to work correctly.
20     defines += [ "DEBUG" ]
21   }
22   if (is_android) {
23     defines += [ "__ANDROID__" ]
24   }
27 config("client_config") {
28   include_dirs = [ "src" ]
29   if (is_android) {
30     include_dirs += [ "src/common/android/include" ]
31   }
34 config("handler_config") {
35   include_dirs = [
36     "src",
37   ]
40 # minidump_stackwalk and minidump_dump are tool-type executables that do
41 # not build on iOS.
42 if (current_toolchain == host_toolchain && !is_win) {
43   executable("minidump_stackwalk") {
44     sources = [
45       "src/processor/basic_code_module.h",
46       "src/processor/basic_code_modules.cc",
47       "src/processor/basic_code_modules.h",
48       "src/processor/basic_source_line_resolver.cc",
49       "src/processor/binarystream.cc",
50       "src/processor/binarystream.h",
51       "src/processor/call_stack.cc",
52       "src/processor/cfi_frame_info.cc",
53       "src/processor/cfi_frame_info.h",
54       "src/processor/disassembler_x86.cc",
55       "src/processor/disassembler_x86.h",
56       "src/processor/exploitability.cc",
57       "src/processor/logging.cc",
58       "src/processor/logging.h",
59       "src/processor/minidump.cc",
60       "src/processor/minidump_processor.cc",
61       "src/processor/minidump_stackwalk.cc",
62       "src/processor/pathname_stripper.cc",
63       "src/processor/pathname_stripper.h",
64       "src/processor/process_state.cc",
65       "src/processor/simple_symbol_supplier.cc",
66       "src/processor/simple_symbol_supplier.h",
67       "src/processor/source_line_resolver_base.cc",
68       "src/processor/stack_frame_cpu.cc",
69       "src/processor/stack_frame_symbolizer.cc",
70       "src/processor/stackwalker.cc",
71       "src/processor/stackwalker_amd64.cc",
72       "src/processor/stackwalker_amd64.h",
73       "src/processor/stackwalker_arm.cc",
74       "src/processor/stackwalker_arm.h",
75       "src/processor/stackwalker_arm64.cc",
76       "src/processor/stackwalker_arm64.h",
77       "src/processor/stackwalker_mips.cc",
78       "src/processor/stackwalker_mips.h",
79       "src/processor/stackwalker_ppc.cc",
80       "src/processor/stackwalker_ppc.h",
81       "src/processor/stackwalker_ppc64.cc",
82       "src/processor/stackwalker_ppc64.h",
83       "src/processor/stackwalker_sparc.cc",
84       "src/processor/stackwalker_sparc.h",
85       "src/processor/stackwalker_x86.cc",
86       "src/processor/stackwalker_x86.h",
87       "src/processor/tokenize.cc",
88       "src/processor/tokenize.h",
89       # libdisasm
90       "src/third_party/libdisasm/ia32_implicit.c",
91       "src/third_party/libdisasm/ia32_implicit.h",
92       "src/third_party/libdisasm/ia32_insn.c",
93       "src/third_party/libdisasm/ia32_insn.h",
94       "src/third_party/libdisasm/ia32_invariant.c",
95       "src/third_party/libdisasm/ia32_invariant.h",
96       "src/third_party/libdisasm/ia32_modrm.c",
97       "src/third_party/libdisasm/ia32_modrm.h",
98       "src/third_party/libdisasm/ia32_opcode_tables.c",
99       "src/third_party/libdisasm/ia32_opcode_tables.h",
100       "src/third_party/libdisasm/ia32_operand.c",
101       "src/third_party/libdisasm/ia32_operand.h",
102       "src/third_party/libdisasm/ia32_reg.c",
103       "src/third_party/libdisasm/ia32_reg.h",
104       "src/third_party/libdisasm/ia32_settings.c",
105       "src/third_party/libdisasm/ia32_settings.h",
106       "src/third_party/libdisasm/libdis.h",
107       "src/third_party/libdisasm/qword.h",
108       "src/third_party/libdisasm/x86_disasm.c",
109       "src/third_party/libdisasm/x86_format.c",
110       "src/third_party/libdisasm/x86_imm.c",
111       "src/third_party/libdisasm/x86_imm.h",
112       "src/third_party/libdisasm/x86_insn.c",
113       "src/third_party/libdisasm/x86_misc.c",
114       "src/third_party/libdisasm/x86_operand_list.c",
115       "src/third_party/libdisasm/x86_operand_list.h",
116     ]
118     defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
120     configs -= [ "//build/config/compiler:chromium_code" ]
121     configs += [ "//build/config/compiler:no_chromium_code" ]
122     configs += [ ":tools_config" ]
124     # Always want these files included regardless of platform.
125     set_sources_assignment_filter([])
126     sources += [
127       "src/processor/exploitability_linux.cc",
128       "src/processor/exploitability_linux.h",
129       "src/processor/exploitability_win.cc",
130       "src/processor/exploitability_win.h",
131     ]
132   }
134   executable("minidump_dump") {
135     sources = [
136       "src/processor/basic_code_module.h",
137       "src/processor/basic_code_modules.cc",
138       "src/processor/basic_code_modules.h",
139       "src/processor/logging.cc",
140       "src/processor/logging.h",
141       "src/processor/minidump.cc",
142       "src/processor/minidump_dump.cc",
143       "src/processor/pathname_stripper.cc",
144       "src/processor/pathname_stripper.h",
145     ]
147     configs += [ ":tools_config" ]
148   }
151 # Mac --------------------------------------------------------------------------
153 if (current_toolchain == host_toolchain && is_mac) {
154   # TODO(GYP) This should be only 64-bit on Mac. From .gypi:
155   # Like ld, dump_syms needs to operate on enough data that it may
156   # actually need to be able to address more than 4GB. Use x86_64.
157   # Don't worry! An x86_64 dump_syms is perfectly able to dump
158   # 32-bit files.
159   executable("dump_syms") {
160     sources = [
161       "src/common/dwarf/bytereader.cc",
162       "src/common/dwarf_cfi_to_module.cc",
163       "src/common/dwarf_cu_to_module.cc",
164       "src/common/dwarf/dwarf2diehandler.cc",
165       "src/common/dwarf/dwarf2reader.cc",
166       "src/common/dwarf_line_to_module.cc",
167       "src/common/language.cc",
168       "src/common/mac/arch_utilities.cc",
169       "src/common/mac/arch_utilities.h",
170       "src/common/mac/dump_syms.mm",
171       "src/common/mac/file_id.cc",
172       "src/common/mac/macho_id.cc",
173       "src/common/mac/macho_reader.cc",
174       "src/common/mac/macho_utilities.cc",
175       "src/common/mac/macho_walker.cc",
176       "src/common/md5.cc",
177       "src/common/module.cc",
178       "src/common/stabs_reader.cc",
179       "src/common/stabs_to_module.cc",
180       "src/tools/mac/dump_syms/dump_syms_tool.mm",
181     ]
183     # For src/common/stabs_reader.h.
184     defines = [ "HAVE_MACH_O_NLIST_H" ]
185     include_dirs = [ "src/common/mac" ]
187     # The DWARF utilities require -funsigned-char.
188     cflags = [ "-funsigned-char" ]
190     configs += [ ":internal_config" ]
192     configs -= [ "//build/config/compiler:chromium_code" ]
193     configs += [ "//build/config/compiler:no_chromium_code" ]
195     # dwarf2reader.cc uses dynamic_cast.
196     configs -= [ "//build/config/compiler:no_rtti" ]
197     configs += [ "//build/config/compiler:rtti" ]
199     libs = [ "Foundation.framework" ]
201     if (!is_debug) {
202       # dump_syms crashes when built at -O1, -O2, and -O3.  It does
203       # not crash at -Os.  To play it safe, dump_syms is always built
204       # at -O0 until this can be sorted out.
205       # http://code.google.com/p/google-breakpad/issues/detail?id=329
206       configs -= [ "//build/config/compiler:optimize" ]
207       cflags += [ "-O0" ]
208     }
209   }
211   executable("symupload") {
212     sources = [
213       "src/common/mac/HTTPMultipartUpload.m",
214       "src/tools/mac/symupload/symupload.m",
215     ]
217     libs = [ "Foundaction.framework" ]
218   }
221 if (is_mac) {
222   static_library("utilities") {
223     sources = [
224       "src/client/mac/handler/breakpad_nlist_64.cc",
225       "src/client/mac/handler/dynamic_images.cc",
226       "src/client/mac/handler/minidump_generator.cc",
227       "src/client/minidump_file_writer.cc",
228       "src/common/convert_UTF.c",
229       "src/common/mac/MachIPC.mm",
230       "src/common/mac/arch_utilities.cc",
231       "src/common/mac/bootstrap_compat.cc",
232       "src/common/mac/file_id.cc",
233       "src/common/mac/macho_id.cc",
234       "src/common/mac/macho_utilities.cc",
235       "src/common/mac/macho_walker.cc",
236       "src/common/mac/string_utilities.cc",
237       "src/common/md5.cc",
238       "src/common/simple_string_dictionary.cc",
239       "src/common/string_conversion.cc",
240     ]
242     configs += [ ":internal_config" ]
243   }
245   executable("crash_inspector") {
246     sources = [
247       "src/client/mac/crash_generation/ConfigFile.mm",
248       "src/client/mac/crash_generation/Inspector.mm",
249       "src/client/mac/crash_generation/InspectorMain.mm",
250     ]
252     # TODO(GYP): 'mac_real_dsym': 1,
254     include_dirs = [
255       "src/client/apple/Framework",
256       "src/common/mac",
257       "src",
258     ]
259     libs = [
260       "CoreServices.framework",
261       "Foundation.framework",
262     ]
264     deps = [
265       ":utilities"
266     ]
267   }
269   executable("crash_report_sender") {
270     # TODO(GYP) this target has some mac_bundle_resources stuff.
271   }
273   config("breakpad_config") {
274     include_dirs = [ "src/client/apple/Framework" ]
275   }
277   static_library("breakpad") {
278     sources = [
279       "src/client/mac/crash_generation/crash_generation_client.cc",
280       "src/client/mac/crash_generation/crash_generation_client.h",
281       "src/client/mac/handler/protected_memory_allocator.cc",
282       "src/client/mac/handler/exception_handler.cc",
283       "src/client/mac/Framework/Breakpad.mm",
284       "src/client/mac/Framework/OnDemandServer.mm",
285     ]
287     configs += [ ":internal_config" ]
288     direct_dependent_configs = [ ":breakpad_config" ]
290     defines = [ "USE_PROTECTED_ALLOCATIONS=1" ]
291     include_dirs = [
292       "src/client/apple/Framework",
293     ]
295     deps = [
296       ":utilities",
297       ":crash_inspector",
298       # TODO(GYP): Make this link
299       #":crash_report_sender",
300     ]
301   }
303   group("client") {
304     direct_dependent_configs = [ ":client_config" ]
305   }
308 if (is_linux || is_android) {
309   executable("symupload") {
310     sources = [
311       "src/tools/linux/symupload/sym_upload.cc",
312       "src/common/linux/http_upload.cc",
313       "src/common/linux/http_upload.h",
314     ]
316     include_dirs = [
317       "src",
318       "src/third_party",
319     ]
321     configs += [ ":tools_config" ]
323     libs = [ "dl" ]
324   }
327 if (is_linux) {
328   if (current_toolchain == host_toolchain) {
329     # dump_syms is a host tool, so only compile it for the host system.
330     executable("dump_syms") {
331       sources = [
332         "src/common/dwarf/bytereader.cc",
333         "src/common/dwarf_cfi_to_module.cc",
334         "src/common/dwarf_cfi_to_module.h",
335         "src/common/dwarf_cu_to_module.cc",
336         "src/common/dwarf_cu_to_module.h",
337         "src/common/dwarf/dwarf2diehandler.cc",
338         "src/common/dwarf/dwarf2reader.cc",
339         "src/common/dwarf_line_to_module.cc",
340         "src/common/dwarf_line_to_module.h",
341         "src/common/language.cc",
342         "src/common/language.h",
343         "src/common/linux/crc32.cc",
344         "src/common/linux/crc32.h",
345         "src/common/linux/dump_symbols.cc",
346         "src/common/linux/dump_symbols.h",
347         "src/common/linux/elf_symbols_to_module.cc",
348         "src/common/linux/elf_symbols_to_module.h",
349         "src/common/linux/elfutils.cc",
350         "src/common/linux/elfutils.h",
351         "src/common/linux/file_id.cc",
352         "src/common/linux/file_id.h",
353         "src/common/linux/linux_libc_support.cc",
354         "src/common/linux/linux_libc_support.h",
355         "src/common/linux/memory_mapped_file.cc",
356         "src/common/linux/memory_mapped_file.h",
357         "src/common/linux/guid_creator.h",
358         "src/common/module.cc",
359         "src/common/module.h",
360         "src/common/stabs_reader.cc",
361         "src/common/stabs_reader.h",
362         "src/common/stabs_to_module.cc",
363         "src/common/stabs_to_module.h",
364         "src/tools/linux/dump_syms/dump_syms.cc",
365       ]
367       # There are some warnings in this code.
368       configs -= [ "//build/config/compiler:chromium_code" ]
369       configs += [ "//build/config/compiler:no_chromium_code" ]
371       # dwarf2reader.cc uses dynamic_cast. Because we don't typically
372       # don't support RTTI, we enable it for this single target. Since
373       # dump_syms doesn't share any object files with anything else,
374       # this doesn't end up polluting Chrome itself.
375       configs -= [ "//build/config/compiler:no_rtti" ]
376       configs += [ "//build/config/compiler:rtti" ]
378       # Breakpad rev 583 introduced this flag.
379       # Using this define, stabs_reader.h will include a.out.h to
380       # build on Linux.
381       defines = [ "HAVE_A_OUT_H" ]
383       include_dirs = [ "src" ]
384     }
385   }
387   static_library("client") {
388     sources = [
389       "src/client/linux/crash_generation/crash_generation_client.cc",
390       "src/client/linux/crash_generation/crash_generation_client.h",
391       "src/client/linux/handler/exception_handler.cc",
392       "src/client/linux/handler/exception_handler.h",
393       "src/client/linux/handler/minidump_descriptor.cc",
394       "src/client/linux/handler/minidump_descriptor.h",
395       "src/client/linux/log/log.cc",
396       "src/client/linux/log/log.h",
397       "src/client/linux/minidump_writer/cpu_set.h",
398       "src/client/linux/minidump_writer/directory_reader.h",
399       "src/client/linux/minidump_writer/line_reader.h",
400       "src/client/linux/minidump_writer/linux_core_dumper.cc",
401       "src/client/linux/minidump_writer/linux_core_dumper.h",
402       "src/client/linux/minidump_writer/linux_dumper.cc",
403       "src/client/linux/minidump_writer/linux_dumper.h",
404       "src/client/linux/minidump_writer/linux_ptrace_dumper.cc",
405       "src/client/linux/minidump_writer/linux_ptrace_dumper.h",
406       "src/client/linux/minidump_writer/minidump_writer.cc",
407       "src/client/linux/minidump_writer/minidump_writer.h",
408       "src/client/linux/minidump_writer/proc_cpuinfo_reader.h",
409       "src/client/minidump_file_writer-inl.h",
410       "src/client/minidump_file_writer.cc",
411       "src/client/minidump_file_writer.h",
412       "src/common/convert_UTF.c",
413       "src/common/convert_UTF.h",
414       "src/common/linux/elf_core_dump.cc",
415       "src/common/linux/elf_core_dump.h",
416       "src/common/linux/elfutils.cc",
417       "src/common/linux/elfutils.h",
418       "src/common/linux/file_id.cc",
419       "src/common/linux/file_id.h",
420       "src/common/linux/google_crashdump_uploader.cc",
421       "src/common/linux/google_crashdump_uploader.h",
422       "src/common/linux/guid_creator.cc",
423       "src/common/linux/guid_creator.h",
424       "src/common/linux/libcurl_wrapper.cc",
425       "src/common/linux/libcurl_wrapper.h",
426       "src/common/linux/linux_libc_support.cc",
427       "src/common/linux/linux_libc_support.h",
428       "src/common/linux/memory_mapped_file.cc",
429       "src/common/linux/memory_mapped_file.h",
430       "src/common/linux/safe_readlink.cc",
431       "src/common/linux/safe_readlink.h",
432       "src/common/memory.h",
433       "src/common/simple_string_dictionary.cc",
434       "src/common/simple_string_dictionary.h",
435       "src/common/string_conversion.cc",
436       "src/common/string_conversion.h",
437     ]
439     configs -= [ "//build/config/compiler:chromium_code" ]
440     configs += [ "//build/config/compiler:no_chromium_code" ]
441     direct_dependent_configs = [ ":client_config" ]
443     if (cpu_arch == "arm" && is_chromeos) {
444       # Avoid running out of registers in
445       # linux_syscall_support.h:sys_clone()'s inline assembly.
446       cflags = [ "-marm" ]
447     }
449     if (is_android) {
450       sources += [ "src/common/android/breakpad_getcontext.S" ]
451     }
453     libs = [ "dl" ]
455     include_dirs = [
456       ".",
457       "src",
458       "src/client",
459       "src/third_party/linux/include",
460     ]
461   }
463   static_library("processor_support") {
464     sources = [
465       "src/common/scoped_ptr.h",
466       "src/processor/basic_code_modules.cc",
467       "src/processor/basic_code_modules.h",
468       "src/processor/logging.cc",
469       "src/processor/logging.h",
470       "src/processor/minidump.cc",
471       "src/processor/pathname_stripper.cc",
472       "src/processor/pathname_stripper.h",
473     ]
475     include_dirs = [
476       "src",
477       "src/client",
478       "src/third_party/linux/include",
479       ".",
480     ]
481   }
483   executable("breakpad_unittests") {
484     sources = [
485       "linux/breakpad_googletest_includes.h",
486       "src/client/linux/handler/exception_handler_unittest.cc",
487       "src/client/linux/minidump_writer/cpu_set_unittest.cc",
488       "src/client/linux/minidump_writer/directory_reader_unittest.cc",
489       "src/client/linux/minidump_writer/line_reader_unittest.cc",
490       "src/client/linux/minidump_writer/linux_core_dumper_unittest.cc",
491       "src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc",
492       "src/client/linux/minidump_writer/minidump_writer_unittest.cc",
493       "src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc",
494       "src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc",
495       "src/common/linux/elf_core_dump_unittest.cc",
496       "src/common/linux/file_id_unittest.cc",
497       "src/common/linux/linux_libc_support_unittest.cc",
498       "src/common/linux/synth_elf.cc",
499       "src/common/linux/tests/auto_testfile.h",
500       "src/common/linux/tests/crash_generator.cc",
501       "src/common/linux/tests/crash_generator.h",
502       "src/common/memory_range.h",
503       "src/common/memory_unittest.cc",
504       "src/common/simple_string_dictionary_unittest.cc",
505       "src/common/test_assembler.cc",
506       "src/common/tests/file_utils.cc",
507       "src/common/tests/file_utils.h",
508       "src/tools/linux/md2core/minidump_memory_range.h",
509       "src/tools/linux/md2core/minidump_memory_range_unittest.cc",
510     ]
512     deps = [
513       ":client",
514       ":processor_support",
515       ":linux_dumper_unittest_helper",
516       "//testing/gtest",
517       "//testing/gtest:gtest_main",
518       "//testing/gmock",
519     ]
521     include_dirs = [
522       "linux",  # Use our copy of breakpad_googletest_includes.h
523       "src",
524       ".",
525     ]
527     # There are some warnings in this code.
528     configs -= [ "//build/config/compiler:chromium_code" ]
529     configs += [ "//build/config/compiler:no_chromium_code" ]
531     if (is_clang) {
532       # See http://crbug.com/138571#c18
533       cflags = [ "-Wno-unused-value" ]
534     }
537     if (is_android) {
538       sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ]
539       libs = [ "log" ]
540       include_dirs = [ "src/common/android/include" ]
541     }
542   }
544   executable("linux_dumper_unittest_helper") {
545     sources = [
546       "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc",
547     ]
548     deps = [
549       ":processor_support",
550     ]
552     include_dirs = [
553       "src",
554     ]
556     if (cpu_arch == "mipsel" && is_android) {
557       include_dirs += [ "src/common/android/include" ]
558     }
559   }
562   executable("generate_test_dump") {
563     sources = [
564       "linux/generate-test-dump.cc",
565     ]
567     # This file has an unused variable warning.
568     configs -= [ "//build/config/compiler:chromium_code" ]
569     configs += [ "//build/config/compiler:no_chromium_code" ]
571     deps = [ ":client" ]
573     include_dirs = [ "src" ]
575     if (is_android) {
576       libs = [ "log" ]
577       include_dirs += [ "src/common/android/include" ]
578     }
579   }
581   executable("minidump-2-core") {
582     sources = [ "src/tools/linux/md2core/minidump-2-core.cc" ]
584     include_dirs = [ "src" ]
586     deps = [ ":client" ]
587   }
589   executable("core-2-minidump") {
590     sources = [
591       "src/tools/linux/core2md/core2md.cc",
592     ]
594     deps = [
595       ":client",
596     ]
598     include_dirs = [ "src" ]
599   }
602 if (is_ios) {
603   static_library("client") {
604     sources = [
605       "src/client/ios/Breakpad.h",
606       "src/client/ios/Breakpad.mm",
607       "src/client/ios/BreakpadController.h",
608       "src/client/ios/BreakpadController.mm",
609       "src/client/ios/handler/ios_exception_minidump_generator.mm",
610       "src/client/ios/handler/ios_exception_minidump_generator.h",
611       "src/client/mac/crash_generation/ConfigFile.h",
612       "src/client/mac/crash_generation/ConfigFile.mm",
613       "src/client/mac/handler/breakpad_nlist_64.cc",
614       "src/client/mac/handler/breakpad_nlist_64.h",
615       "src/client/mac/handler/dynamic_images.cc",
616       "src/client/mac/handler/dynamic_images.h",
617       "src/client/mac/handler/protected_memory_allocator.cc",
618       "src/client/mac/handler/protected_memory_allocator.h",
619       "src/client/mac/handler/exception_handler.cc",
620       "src/client/mac/handler/exception_handler.h",
621       "src/client/mac/handler/minidump_generator.cc",
622       "src/client/mac/handler/minidump_generator.h",
623       "src/client/mac/sender/uploader.h",
624       "src/client/mac/sender/uploader.mm",
625       "src/client/minidump_file_writer.cc",
626       "src/client/minidump_file_writer.h",
627       "src/client/minidump_file_writer-inl.h",
628       "src/common/convert_UTF.c",
629       "src/common/convert_UTF.h",
630       "src/common/mac/file_id.cc",
631       "src/common/mac/file_id.h",
632       "src/common/mac/HTTPMultipartUpload.m",
633       "src/common/mac/macho_id.cc",
634       "src/common/mac/macho_id.h",
635       "src/common/mac/macho_utilities.cc",
636       "src/common/mac/macho_utilities.h",
637       "src/common/mac/macho_walker.cc",
638       "src/common/mac/macho_walker.h",
639       "src/common/mac/string_utilities.cc",
640       "src/common/mac/string_utilities.h",
641       "src/common/md5.cc",
642       "src/common/md5.h",
643       "src/common/simple_string_dictionary.cc",
644       "src/common/simple_string_dictionary.h",
645       "src/common/string_conversion.cc",
646       "src/common/string_conversion.h",
647       "src/google_breakpad/common/minidump_format.h",
648     ]
650     include_dirs = [
651       "src",
652       "src/client/mac/Framework",
653       "src/common/mac",
654     ]
655   }
657   # TODO(GYP) There is some XCode-only targets like ninja-breakpad.
660 if (is_win) {
661   group("client") {
662     direct_dependent_configs = [ ":client_config" ]
663   }
665   source_set("breakpad_handler") {
666     configs += [ ":handler_config" ]
667     if (is_win) {
668       direct_dependent_configs = [ ":handler_config" ]
669     }
671     defines = [ "BREAKPAD_NO_TERMINATE_THREAD" ]
673     sources = [
674       "src/client/windows/crash_generation/client_info.cc",
675       "src/client/windows/crash_generation/client_info.h",
676       "src/client/windows/crash_generation/crash_generation_client.cc",
677       "src/client/windows/crash_generation/crash_generation_client.h",
678       "src/client/windows/crash_generation/crash_generation_server.cc",
679       "src/client/windows/crash_generation/crash_generation_server.h",
680       "src/client/windows/handler/exception_handler.cc",
681       "src/client/windows/handler/exception_handler.h",
682       "src/common/windows/guid_string.cc",
683       "src/common/windows/guid_string.h",
684       "src/google_breakpad/common/minidump_format.h",
685       "src/client/windows/crash_generation/minidump_generator.cc",
686       "src/client/windows/crash_generation/minidump_generator.h",
687       "src/common/windows/string_utils-inl.h",
688     ]
689   }