| 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 = [ "src", "src/third_party" ] |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 defines = [ "__ANDROID__" ] | 8 defines = [ "__ANDROID__" ] |
| 9 } | 9 } |
| 10 if (is_clang) { | 10 if (is_clang) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 include_dirs += [ "src/common/android/include" ] | 30 include_dirs += [ "src/common/android/include" ] |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 | 33 |
| 34 config("handler_config") { | 34 config("handler_config") { |
| 35 include_dirs = [ | 35 include_dirs = [ |
| 36 "src", | 36 "src", |
| 37 ] | 37 ] |
| 38 } | 38 } |
| 39 | 39 |
| 40 # minidump_stackwalk and minidump_dump are tool-type executables that do | 40 # {micro,mini}dump_stackwalk and minidump_dump are tool-type executables that do |
| 41 # not build on iOS. | 41 # not build on iOS. |
| 42 if (current_toolchain == host_toolchain && !is_win) { | 42 if (current_toolchain == host_toolchain && !is_win) { |
| 43 executable("minidump_stackwalk") { | 43 # Contains the code shared by both {micro,mini}dump_stackwalk. |
| 44 static_library("stackwalk_common") { |
| 44 sources = [ | 45 sources = [ |
| 45 "src/processor/basic_code_module.h", | 46 "src/processor/basic_code_module.h", |
| 46 "src/processor/basic_code_modules.cc", | 47 "src/processor/basic_code_modules.cc", |
| 47 "src/processor/basic_code_modules.h", | 48 "src/processor/basic_code_modules.h", |
| 48 "src/processor/basic_source_line_resolver.cc", | 49 "src/processor/basic_source_line_resolver.cc", |
| 49 "src/processor/binarystream.cc", | 50 "src/processor/binarystream.cc", |
| 50 "src/processor/binarystream.h", | 51 "src/processor/binarystream.h", |
| 51 "src/processor/call_stack.cc", | 52 "src/processor/call_stack.cc", |
| 52 "src/processor/cfi_frame_info.cc", | 53 "src/processor/cfi_frame_info.cc", |
| 53 "src/processor/cfi_frame_info.h", | 54 "src/processor/cfi_frame_info.h", |
| 54 "src/processor/disassembler_x86.cc", | 55 "src/processor/disassembler_x86.cc", |
| 55 "src/processor/disassembler_x86.h", | 56 "src/processor/disassembler_x86.h", |
| 56 "src/processor/dump_context.cc", | 57 "src/processor/dump_context.cc", |
| 57 "src/processor/dump_object.cc", | 58 "src/processor/dump_object.cc", |
| 58 "src/processor/exploitability.cc", | |
| 59 "src/processor/logging.cc", | 59 "src/processor/logging.cc", |
| 60 "src/processor/logging.h", | 60 "src/processor/logging.h", |
| 61 "src/processor/minidump.cc", | |
| 62 "src/processor/minidump_processor.cc", | |
| 63 "src/processor/minidump_stackwalk.cc", | |
| 64 "src/processor/pathname_stripper.cc", | 61 "src/processor/pathname_stripper.cc", |
| 65 "src/processor/pathname_stripper.h", | 62 "src/processor/pathname_stripper.h", |
| 66 "src/processor/process_state.cc", | 63 "src/processor/process_state.cc", |
| 67 "src/processor/simple_symbol_supplier.cc", | 64 "src/processor/simple_symbol_supplier.cc", |
| 68 "src/processor/simple_symbol_supplier.h", | 65 "src/processor/simple_symbol_supplier.h", |
| 69 "src/processor/source_line_resolver_base.cc", | 66 "src/processor/source_line_resolver_base.cc", |
| 70 "src/processor/stack_frame_cpu.cc", | 67 "src/processor/stack_frame_cpu.cc", |
| 71 "src/processor/stack_frame_symbolizer.cc", | 68 "src/processor/stack_frame_symbolizer.cc", |
| 69 "src/processor/stackwalk_common.cc", |
| 72 "src/processor/stackwalker.cc", | 70 "src/processor/stackwalker.cc", |
| 73 "src/processor/stackwalker_amd64.cc", | 71 "src/processor/stackwalker_amd64.cc", |
| 74 "src/processor/stackwalker_amd64.h", | 72 "src/processor/stackwalker_amd64.h", |
| 75 "src/processor/stackwalker_arm.cc", | 73 "src/processor/stackwalker_arm.cc", |
| 76 "src/processor/stackwalker_arm.h", | 74 "src/processor/stackwalker_arm.h", |
| 77 "src/processor/stackwalker_arm64.cc", | 75 "src/processor/stackwalker_arm64.cc", |
| 78 "src/processor/stackwalker_arm64.h", | 76 "src/processor/stackwalker_arm64.h", |
| 79 "src/processor/stackwalker_mips.cc", | 77 "src/processor/stackwalker_mips.cc", |
| 80 "src/processor/stackwalker_mips.h", | 78 "src/processor/stackwalker_mips.h", |
| 81 "src/processor/stackwalker_ppc.cc", | 79 "src/processor/stackwalker_ppc.cc", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 "src/third_party/libdisasm/x86_misc.c", | 113 "src/third_party/libdisasm/x86_misc.c", |
| 116 "src/third_party/libdisasm/x86_operand_list.c", | 114 "src/third_party/libdisasm/x86_operand_list.c", |
| 117 "src/third_party/libdisasm/x86_operand_list.h", | 115 "src/third_party/libdisasm/x86_operand_list.h", |
| 118 ] | 116 ] |
| 119 | 117 |
| 120 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] | 118 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] |
| 121 | 119 |
| 122 configs -= [ "//build/config/compiler:chromium_code" ] | 120 configs -= [ "//build/config/compiler:chromium_code" ] |
| 123 configs += [ "//build/config/compiler:no_chromium_code" ] | 121 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 124 configs += [ ":tools_config" ] | 122 configs += [ ":tools_config" ] |
| 123 } |
| 124 |
| 125 executable("microdump_stackwalk") { |
| 126 sources = [ |
| 127 "src/processor/microdump.cc", |
| 128 "src/processor/microdump_processor.cc", |
| 129 "src/processor/microdump_stackwalk.cc", |
| 130 ] |
| 131 |
| 132 deps = [ ":stackwalk_common" ] |
| 133 |
| 134 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] |
| 135 |
| 136 configs -= [ "//build/config/compiler:chromium_code" ] |
| 137 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 138 configs += [ ":tools_config" ] |
| 139 } |
| 140 |
| 141 executable("minidump_stackwalk") { |
| 142 sources = [ |
| 143 "src/processor/exploitability.cc", |
| 144 "src/processor/minidump.cc", |
| 145 "src/processor/minidump_processor.cc", |
| 146 "src/processor/minidump_stackwalk.cc", |
| 147 ] |
| 148 |
| 149 deps = [ ":stackwalk_common" ] |
| 150 |
| 151 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] |
| 152 |
| 153 configs -= [ "//build/config/compiler:chromium_code" ] |
| 154 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 155 configs += [ ":tools_config" ] |
| 125 | 156 |
| 126 # Always want these files included regardless of platform. | 157 # Always want these files included regardless of platform. |
| 127 set_sources_assignment_filter([]) | 158 set_sources_assignment_filter([]) |
| 128 sources += [ | 159 sources += [ |
| 129 "src/processor/exploitability_linux.cc", | 160 "src/processor/exploitability_linux.cc", |
| 130 "src/processor/exploitability_linux.h", | 161 "src/processor/exploitability_linux.h", |
| 131 "src/processor/exploitability_win.cc", | 162 "src/processor/exploitability_win.cc", |
| 132 "src/processor/exploitability_win.h", | 163 "src/processor/exploitability_win.h", |
| 133 ] | 164 ] |
| 134 } | 165 } |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 "src/client/windows/handler/exception_handler.h", | 754 "src/client/windows/handler/exception_handler.h", |
| 724 "src/common/windows/guid_string.cc", | 755 "src/common/windows/guid_string.cc", |
| 725 "src/common/windows/guid_string.h", | 756 "src/common/windows/guid_string.h", |
| 726 "src/google_breakpad/common/minidump_format.h", | 757 "src/google_breakpad/common/minidump_format.h", |
| 727 "src/client/windows/crash_generation/minidump_generator.cc", | 758 "src/client/windows/crash_generation/minidump_generator.cc", |
| 728 "src/client/windows/crash_generation/minidump_generator.h", | 759 "src/client/windows/crash_generation/minidump_generator.h", |
| 729 "src/common/windows/string_utils-inl.h", | 760 "src/common/windows/string_utils-inl.h", |
| 730 ] | 761 ] |
| 731 } | 762 } |
| 732 } | 763 } |
| OLD | NEW |