OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 config("tools_config") { | 5 config("tools_config") { |
6 include_dirs = [ "src", "src/third_party" ] | 6 include_dirs = [ |
| 7 "src", |
| 8 "src/third_party", |
| 9 ] |
7 if (is_android) { | 10 if (is_android) { |
8 defines = [ "__ANDROID__" ] | 11 defines = [ "__ANDROID__" ] |
9 } | 12 } |
10 if (is_clang) { | 13 if (is_clang) { |
11 cflags = [ "-Wno-tautological-constant-out-of-range-compare" ] | 14 cflags = [ "-Wno-tautological-constant-out-of-range-compare" ] |
12 } | 15 } |
13 } | 16 } |
14 | 17 |
15 config("internal_config") { | 18 config("internal_config") { |
16 include_dirs = [ "src" ] | 19 include_dirs = [ "src" ] |
17 defines = [] | 20 defines = [] |
18 if (is_debug) { | 21 if (is_debug) { |
19 # This is needed for GTMLogger to work correctly. | 22 # This is needed for GTMLogger to work correctly. |
20 defines += [ "DEBUG" ] | 23 defines += [ "DEBUG" ] |
21 } | 24 } |
22 if (is_android) { | 25 if (is_android) { |
23 defines += [ "__ANDROID__" ] | 26 defines += [ "__ANDROID__" ] |
24 } | 27 } |
25 } | 28 } |
26 | 29 |
27 config("client_config") { | 30 config("client_config") { |
28 include_dirs = [ "src" ] | 31 include_dirs = [ "src" ] |
29 if (is_android) { | 32 if (is_android) { |
30 include_dirs += [ "src/common/android/include" ] | 33 include_dirs += [ "src/common/android/include" ] |
31 } | 34 } |
32 } | 35 } |
33 | 36 |
34 config("handler_config") { | 37 config("handler_config") { |
35 include_dirs = [ | 38 include_dirs = [ "src" ] |
36 "src", | |
37 ] | |
38 } | 39 } |
39 | 40 |
40 # {micro,mini}dump_stackwalk and minidump_dump are tool-type executables that do | 41 # {micro,mini}dump_stackwalk and minidump_dump are tool-type executables that do |
41 # not build on iOS. | 42 # not build on iOS. |
42 if (current_toolchain == host_toolchain && !is_win) { | 43 if (current_toolchain == host_toolchain && !is_win) { |
43 # Contains the code shared by both {micro,mini}dump_stackwalk. | 44 # Contains the code shared by both {micro,mini}dump_stackwalk. |
44 static_library("stackwalk_common") { | 45 static_library("stackwalk_common") { |
45 sources = [ | 46 sources = [ |
46 "src/processor/basic_code_module.h", | 47 "src/processor/basic_code_module.h", |
47 "src/processor/basic_code_modules.cc", | 48 "src/processor/basic_code_modules.cc", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 "src/processor/stackwalker_ppc.cc", | 80 "src/processor/stackwalker_ppc.cc", |
80 "src/processor/stackwalker_ppc.h", | 81 "src/processor/stackwalker_ppc.h", |
81 "src/processor/stackwalker_ppc64.cc", | 82 "src/processor/stackwalker_ppc64.cc", |
82 "src/processor/stackwalker_ppc64.h", | 83 "src/processor/stackwalker_ppc64.h", |
83 "src/processor/stackwalker_sparc.cc", | 84 "src/processor/stackwalker_sparc.cc", |
84 "src/processor/stackwalker_sparc.h", | 85 "src/processor/stackwalker_sparc.h", |
85 "src/processor/stackwalker_x86.cc", | 86 "src/processor/stackwalker_x86.cc", |
86 "src/processor/stackwalker_x86.h", | 87 "src/processor/stackwalker_x86.h", |
87 "src/processor/tokenize.cc", | 88 "src/processor/tokenize.cc", |
88 "src/processor/tokenize.h", | 89 "src/processor/tokenize.h", |
| 90 |
89 # libdisasm | 91 # libdisasm |
90 "src/third_party/libdisasm/ia32_implicit.c", | 92 "src/third_party/libdisasm/ia32_implicit.c", |
91 "src/third_party/libdisasm/ia32_implicit.h", | 93 "src/third_party/libdisasm/ia32_implicit.h", |
92 "src/third_party/libdisasm/ia32_insn.c", | 94 "src/third_party/libdisasm/ia32_insn.c", |
93 "src/third_party/libdisasm/ia32_insn.h", | 95 "src/third_party/libdisasm/ia32_insn.h", |
94 "src/third_party/libdisasm/ia32_invariant.c", | 96 "src/third_party/libdisasm/ia32_invariant.c", |
95 "src/third_party/libdisasm/ia32_invariant.h", | 97 "src/third_party/libdisasm/ia32_invariant.h", |
96 "src/third_party/libdisasm/ia32_modrm.c", | 98 "src/third_party/libdisasm/ia32_modrm.c", |
97 "src/third_party/libdisasm/ia32_modrm.h", | 99 "src/third_party/libdisasm/ia32_modrm.h", |
98 "src/third_party/libdisasm/ia32_opcode_tables.c", | 100 "src/third_party/libdisasm/ia32_opcode_tables.c", |
(...skipping 23 matching lines...) Expand all Loading... |
122 configs += [ ":tools_config" ] | 124 configs += [ ":tools_config" ] |
123 } | 125 } |
124 | 126 |
125 executable("microdump_stackwalk") { | 127 executable("microdump_stackwalk") { |
126 sources = [ | 128 sources = [ |
127 "src/processor/microdump.cc", | 129 "src/processor/microdump.cc", |
128 "src/processor/microdump_processor.cc", | 130 "src/processor/microdump_processor.cc", |
129 "src/processor/microdump_stackwalk.cc", | 131 "src/processor/microdump_stackwalk.cc", |
130 ] | 132 ] |
131 | 133 |
132 deps = [ ":stackwalk_common" ] | 134 deps = [ |
| 135 ":stackwalk_common", |
| 136 ] |
133 | 137 |
134 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] | 138 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] |
135 | 139 |
136 configs -= [ "//build/config/compiler:chromium_code" ] | 140 configs -= [ "//build/config/compiler:chromium_code" ] |
137 configs += [ "//build/config/compiler:no_chromium_code" ] | 141 configs += [ "//build/config/compiler:no_chromium_code" ] |
138 configs += [ ":tools_config" ] | 142 configs += [ ":tools_config" ] |
139 } | 143 } |
140 | 144 |
141 executable("minidump_stackwalk") { | 145 executable("minidump_stackwalk") { |
142 sources = [ | 146 sources = [ |
143 "src/processor/exploitability.cc", | 147 "src/processor/exploitability.cc", |
144 "src/processor/minidump.cc", | 148 "src/processor/minidump.cc", |
145 "src/processor/minidump_processor.cc", | 149 "src/processor/minidump_processor.cc", |
146 "src/processor/minidump_stackwalk.cc", | 150 "src/processor/minidump_stackwalk.cc", |
147 ] | 151 ] |
148 | 152 |
149 deps = [ ":stackwalk_common" ] | 153 deps = [ |
| 154 ":stackwalk_common", |
| 155 ] |
150 | 156 |
151 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] | 157 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] |
152 | 158 |
153 configs -= [ "//build/config/compiler:chromium_code" ] | 159 configs -= [ "//build/config/compiler:chromium_code" ] |
154 configs += [ "//build/config/compiler:no_chromium_code" ] | 160 configs += [ "//build/config/compiler:no_chromium_code" ] |
155 configs += [ ":tools_config" ] | 161 configs += [ ":tools_config" ] |
156 | 162 |
157 # Always want these files included regardless of platform. | 163 # Always want these files included regardless of platform. |
158 set_sources_assignment_filter([]) | 164 set_sources_assignment_filter([]) |
159 sources += [ | 165 sources += [ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 cflags += [ "-O0" ] | 252 cflags += [ "-O0" ] |
247 } | 253 } |
248 } | 254 } |
249 | 255 |
250 executable("symupload") { | 256 executable("symupload") { |
251 sources = [ | 257 sources = [ |
252 "src/common/mac/HTTPMultipartUpload.m", | 258 "src/common/mac/HTTPMultipartUpload.m", |
253 "src/tools/mac/symupload/symupload.m", | 259 "src/tools/mac/symupload/symupload.m", |
254 ] | 260 ] |
255 | 261 |
256 include_dirs = [ | 262 include_dirs = [ "src/common/mac" ] |
257 "src/common/mac" | |
258 ] | |
259 | 263 |
260 libs = [ "Foundation.framework" ] | 264 libs = [ "Foundation.framework" ] |
261 | 265 |
262 configs -= [ "//build/config/compiler:chromium_code" ] | 266 configs -= [ "//build/config/compiler:chromium_code" ] |
263 configs += [ "//build/config/compiler:no_chromium_code" ] | 267 configs += [ "//build/config/compiler:no_chromium_code" ] |
264 } | 268 } |
265 } | 269 } |
266 | 270 |
267 if (is_mac) { | 271 if (is_mac) { |
268 static_library("utilities") { | 272 static_library("utilities") { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 "src/client/apple/Framework", | 310 "src/client/apple/Framework", |
307 "src/common/mac", | 311 "src/common/mac", |
308 "src", | 312 "src", |
309 ] | 313 ] |
310 libs = [ | 314 libs = [ |
311 "CoreServices.framework", | 315 "CoreServices.framework", |
312 "Foundation.framework", | 316 "Foundation.framework", |
313 ] | 317 ] |
314 | 318 |
315 deps = [ | 319 deps = [ |
316 ":utilities" | 320 ":utilities", |
317 ] | 321 ] |
318 } | 322 } |
319 | 323 |
320 # TODO(GYP) this target has some mac_bundle_resources stuff. | 324 # TODO(GYP) this target has some mac_bundle_resources stuff. |
321 # executable("crash_report_sender") { | 325 # executable("crash_report_sender") { |
322 # } | 326 # } |
323 group("crash_report_sender") { | 327 group("crash_report_sender") { |
324 } | 328 } |
325 | 329 |
326 config("breakpad_config") { | 330 config("breakpad_config") { |
327 include_dirs = [ "src/client/apple/Framework" ] | 331 include_dirs = [ "src/client/apple/Framework" ] |
328 } | 332 } |
329 | 333 |
330 static_library("breakpad") { | 334 static_library("breakpad") { |
331 sources = [ | 335 sources = [ |
332 "src/client/mac/crash_generation/crash_generation_client.cc", | 336 "src/client/mac/crash_generation/crash_generation_client.cc", |
333 "src/client/mac/crash_generation/crash_generation_client.h", | 337 "src/client/mac/crash_generation/crash_generation_client.h", |
334 "src/client/mac/handler/protected_memory_allocator.cc", | 338 "src/client/mac/handler/protected_memory_allocator.cc", |
335 "src/client/mac/handler/exception_handler.cc", | 339 "src/client/mac/handler/exception_handler.cc", |
336 "src/client/mac/Framework/Breakpad.mm", | 340 "src/client/mac/Framework/Breakpad.mm", |
337 "src/client/mac/Framework/OnDemandServer.mm", | 341 "src/client/mac/Framework/OnDemandServer.mm", |
338 ] | 342 ] |
339 | 343 |
340 configs += [ ":internal_config" ] | 344 configs += [ ":internal_config" ] |
341 public_configs = [ ":breakpad_config" ] | 345 public_configs = [ ":breakpad_config" ] |
342 | 346 |
343 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] | 347 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] |
344 include_dirs = [ | 348 include_dirs = [ "src/client/apple/Framework" ] |
345 "src/client/apple/Framework", | |
346 ] | |
347 | 349 |
348 deps = [ | 350 deps = [ |
349 ":utilities", | 351 ":utilities", |
350 ":crash_inspector", | 352 ":crash_inspector", |
351 ":crash_report_sender", | 353 ":crash_report_sender", |
352 ] | 354 ] |
353 } | 355 } |
354 | 356 |
355 group("client") { | 357 group("client") { |
356 public_configs = [ ":client_config" ] | 358 public_configs = [ ":client_config" ] |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 | 599 |
598 # There are some warnings in this code. | 600 # There are some warnings in this code. |
599 configs -= [ "//build/config/compiler:chromium_code" ] | 601 configs -= [ "//build/config/compiler:chromium_code" ] |
600 configs += [ "//build/config/compiler:no_chromium_code" ] | 602 configs += [ "//build/config/compiler:no_chromium_code" ] |
601 | 603 |
602 if (is_clang) { | 604 if (is_clang) { |
603 # See http://crbug.com/138571#c18 | 605 # See http://crbug.com/138571#c18 |
604 cflags = [ "-Wno-unused-value" ] | 606 cflags = [ "-Wno-unused-value" ] |
605 } | 607 } |
606 | 608 |
607 | |
608 if (is_android) { | 609 if (is_android) { |
609 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] | 610 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] |
610 libs = [ "log" ] | 611 libs = [ "log" ] |
611 include_dirs += [ "src/common/android/include" ] | 612 include_dirs += [ "src/common/android/include" ] |
612 } | 613 } |
613 } | 614 } |
614 | 615 |
615 executable("linux_dumper_unittest_helper") { | 616 executable("linux_dumper_unittest_helper") { |
616 testonly = true | 617 testonly = true |
617 sources = [ | 618 sources = [ |
618 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", | 619 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", |
619 ] | 620 ] |
620 deps = [ | 621 deps = [ |
621 ":processor_support", | 622 ":processor_support", |
622 ] | 623 ] |
623 | 624 |
624 include_dirs = [ | 625 include_dirs = [ "src" ] |
625 "src", | |
626 ] | |
627 | 626 |
628 if (cpu_arch == "mipsel" && is_android) { | 627 if (cpu_arch == "mipsel" && is_android) { |
629 include_dirs += [ "src/common/android/include" ] | 628 include_dirs += [ "src/common/android/include" ] |
630 } | 629 } |
631 } | 630 } |
632 | 631 |
633 | |
634 executable("generate_test_dump") { | 632 executable("generate_test_dump") { |
635 testonly = true | 633 testonly = true |
636 sources = [ | 634 sources = [ |
637 "linux/generate-test-dump.cc", | 635 "linux/generate-test-dump.cc", |
638 ] | 636 ] |
639 | 637 |
640 # This file has an unused variable warning. | 638 # This file has an unused variable warning. |
641 configs -= [ "//build/config/compiler:chromium_code" ] | 639 configs -= [ "//build/config/compiler:chromium_code" ] |
642 configs += [ "//build/config/compiler:no_chromium_code" ] | 640 configs += [ "//build/config/compiler:no_chromium_code" ] |
643 | 641 |
644 deps = [ ":client" ] | 642 deps = [ |
| 643 ":client", |
| 644 ] |
645 | 645 |
646 include_dirs = [ "src" ] | 646 include_dirs = [ "src" ] |
647 | 647 |
648 if (is_android) { | 648 if (is_android) { |
649 libs = [ "log" ] | 649 libs = [ "log" ] |
650 include_dirs += [ "src/common/android/include" ] | 650 include_dirs += [ "src/common/android/include" ] |
651 } | 651 } |
652 } | 652 } |
653 | 653 |
654 executable("minidump-2-core") { | 654 executable("minidump-2-core") { |
655 sources = [ "src/tools/linux/md2core/minidump-2-core.cc" ] | 655 sources = [ |
| 656 "src/tools/linux/md2core/minidump-2-core.cc", |
| 657 ] |
656 | 658 |
657 include_dirs = [ "src" ] | 659 include_dirs = [ "src" ] |
658 | 660 |
659 deps = [ ":client" ] | 661 deps = [ |
| 662 ":client", |
| 663 ] |
660 } | 664 } |
661 | 665 |
662 executable("core-2-minidump") { | 666 executable("core-2-minidump") { |
663 sources = [ | 667 sources = [ |
664 "src/tools/linux/core2md/core2md.cc", | 668 "src/tools/linux/core2md/core2md.cc", |
665 ] | 669 ] |
666 | 670 |
667 deps = [ | 671 deps = [ |
668 ":client", | 672 ":client", |
669 ] | 673 ] |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 "src/common/string_conversion.h", | 723 "src/common/string_conversion.h", |
720 "src/google_breakpad/common/minidump_format.h", | 724 "src/google_breakpad/common/minidump_format.h", |
721 ] | 725 ] |
722 | 726 |
723 include_dirs = [ | 727 include_dirs = [ |
724 "src", | 728 "src", |
725 "src/client/mac/Framework", | 729 "src/client/mac/Framework", |
726 "src/common/mac", | 730 "src/common/mac", |
727 ] | 731 ] |
728 } | 732 } |
729 | |
730 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. | 733 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. |
731 } | 734 } |
732 | 735 |
733 if (is_win) { | 736 if (is_win) { |
734 group("client") { | 737 group("client") { |
735 public_configs = [ ":client_config" ] | 738 public_configs = [ ":client_config" ] |
736 } | 739 } |
737 | 740 |
738 source_set("breakpad_handler") { | 741 source_set("breakpad_handler") { |
739 configs += [ ":handler_config" ] | 742 configs += [ ":handler_config" ] |
(...skipping 14 matching lines...) Expand all Loading... |
754 "src/client/windows/handler/exception_handler.h", | 757 "src/client/windows/handler/exception_handler.h", |
755 "src/common/windows/guid_string.cc", | 758 "src/common/windows/guid_string.cc", |
756 "src/common/windows/guid_string.h", | 759 "src/common/windows/guid_string.h", |
757 "src/google_breakpad/common/minidump_format.h", | 760 "src/google_breakpad/common/minidump_format.h", |
758 "src/client/windows/crash_generation/minidump_generator.cc", | 761 "src/client/windows/crash_generation/minidump_generator.cc", |
759 "src/client/windows/crash_generation/minidump_generator.h", | 762 "src/client/windows/crash_generation/minidump_generator.h", |
760 "src/common/windows/string_utils-inl.h", | 763 "src/common/windows/string_utils-inl.h", |
761 ] | 764 ] |
762 } | 765 } |
763 } | 766 } |
OLD | NEW |