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 assert(!is_ios) | 5 assert(!is_ios) |
6 if (is_android) { | 6 if (is_android) { |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 } | 8 } |
9 | 9 |
10 static_library("lib") { | 10 static_library("lib") { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (is_win) { | 59 if (is_win) { |
60 deps += [ "//third_party/crashpad/crashpad/handler:handler_lib" ] | 60 deps += [ "//third_party/crashpad/crashpad/handler:handler_lib" ] |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 if (is_win) { | 64 if (is_win) { |
65 static_library("run_as_crashpad_handler") { | 65 static_library("run_as_crashpad_handler") { |
66 sources = [ | 66 sources = [ |
67 "crash_switches.cc", | 67 "crash_switches.cc", |
68 "crash_switches.h", | 68 "crash_switches.h", |
| 69 "fallback_crash_handler_launcher_win.cc", |
| 70 "fallback_crash_handler_launcher_win.h", |
| 71 |
| 72 # TODO(siggi): Maybe this wants to be a separate target, as it requires |
| 73 # the crashpad client as a dependency? |
| 74 "fallback_crash_handler_win.cc", |
| 75 "fallback_crash_handler_win.h", |
69 "run_as_crashpad_handler_win.cc", | 76 "run_as_crashpad_handler_win.cc", |
70 "run_as_crashpad_handler_win.h", | 77 "run_as_crashpad_handler_win.h", |
71 ] | 78 ] |
72 | 79 |
73 deps = [ | 80 deps = [ |
74 "//base", | 81 "//base", |
| 82 "//third_party/crashpad/crashpad/client", |
75 "//third_party/crashpad/crashpad/handler:handler_lib", | 83 "//third_party/crashpad/crashpad/handler:handler_lib", |
| 84 "//third_party/crashpad/crashpad/minidump", |
76 ] | 85 ] |
77 } | 86 } |
78 } | 87 } |
79 | 88 |
80 # TODO(mark): https://crbug.com/466890: merge this target with | 89 # TODO(mark): https://crbug.com/466890: merge this target with |
81 # crash_component. | 90 # crash_component. |
82 # | 91 # |
83 # This is a temporary base target that is depended on by both | 92 # This is a temporary base target that is depended on by both |
84 # crash_component and crash_component_breakpad_mac_to_be_deleted. It | 93 # crash_component and crash_component_breakpad_mac_to_be_deleted. It |
85 # provides everything common to both of those targets. For a short period, | 94 # provides everything common to both of those targets. For a short period, |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 deps = [ | 215 deps = [ |
207 "//base", | 216 "//base", |
208 ] | 217 ] |
209 } | 218 } |
210 } | 219 } |
211 | 220 |
212 source_set("unit_tests") { | 221 source_set("unit_tests") { |
213 testonly = true | 222 testonly = true |
214 sources = [ | 223 sources = [ |
215 "crash_keys_win_unittest.cc", | 224 "crash_keys_win_unittest.cc", |
| 225 "fallback_crash_handler_launcher_win_unittest.cc", |
| 226 "fallback_crash_handler_win_unittest.cc", |
216 ] | 227 ] |
217 deps = [ | 228 deps = [ |
218 ":lib", | 229 ":lib", |
219 "//base", | 230 "//base", |
| 231 "//base/test:test_support", |
220 "//testing/gmock", | 232 "//testing/gmock", |
221 "//testing/gtest", | 233 "//testing/gtest", |
| 234 "//third_party/crashpad/crashpad/compat", |
| 235 "//third_party/crashpad/crashpad/snapshot:snapshot", |
| 236 "//third_party/crashpad/crashpad/util", |
222 ] | 237 ] |
223 | 238 |
224 if (is_win) { | 239 if (is_win) { |
225 deps += [ "//breakpad:client" ] | 240 deps += [ |
| 241 ":run_as_crashpad_handler", |
| 242 "//breakpad:client", |
| 243 "//third_party/crashpad/crashpad/client", |
| 244 ] |
226 } | 245 } |
227 } | 246 } |
OLD | NEW |