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 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 | 28 |
29 # GYP version: components/crash.gypi:crash_component | 29 # GYP version: components/crash.gypi:crash_component |
30 static_library("app") { | 30 static_library("app") { |
31 sources = [ | 31 sources = [ |
32 "crash_switches.cc", | 32 "crash_switches.cc", |
33 "crash_switches.h", | 33 "crash_switches.h", |
34 "crashpad.h", | 34 "crashpad.h", |
35 "crashpad_mac.mm", | 35 "crashpad_mac.mm", |
36 "crashpad_win.cc", | 36 "crashpad_win.cc", |
37 "run_as_crashpad_handler_win.cc", | |
38 "run_as_crashpad_handler_win.h", | |
39 ] | 37 ] |
40 | 38 |
41 if (is_mac || is_win) { | 39 if (is_mac || is_win) { |
42 sources += [ "crashpad.cc" ] | 40 sources += [ "crashpad.cc" ] |
43 } | 41 } |
44 | 42 |
45 defines = [ "CRASH_IMPLEMENTATION" ] | 43 defines = [ "CRASH_IMPLEMENTATION" ] |
46 | 44 |
47 public_deps = [ | 45 public_deps = [ |
48 ":app_non_mac_win", | 46 ":app_non_mac_win", |
49 ":lib", | 47 ":lib", |
50 "//third_party/kasko", | 48 "//third_party/kasko", |
51 ] | 49 ] |
52 deps = [ | 50 deps = [ |
53 "//base", | 51 "//base", |
54 ] | 52 ] |
55 | 53 |
56 if (is_mac || is_win) { | 54 if (is_mac || is_win) { |
57 deps += [ | 55 deps += [ |
58 "//third_party/crashpad/crashpad/client", | 56 "//third_party/crashpad/crashpad/client", |
59 "//third_party/crashpad/crashpad/snapshot:snapshot_api", | 57 "//third_party/crashpad/crashpad/snapshot:snapshot_api", |
60 ] | 58 ] |
61 } | 59 } |
62 if (is_win) { | 60 if (is_win) { |
63 deps += [ "//third_party/crashpad/crashpad/handler:handler_lib" ] | 61 deps += [ "//third_party/crashpad/crashpad/handler:handler_lib" ] |
64 } | 62 } |
65 } | 63 } |
66 | 64 |
| 65 if (is_win) { |
| 66 static_library("run_as_crashpad_handler") { |
| 67 sources = [ |
| 68 "crash_switches.cc", |
| 69 "crash_switches.h", |
| 70 "run_as_crashpad_handler_win.cc", |
| 71 "run_as_crashpad_handler_win.h", |
| 72 ] |
| 73 |
| 74 deps = [ |
| 75 "//base", |
| 76 "//third_party/crashpad/crashpad/handler:handler_lib", |
| 77 ] |
| 78 } |
| 79 } |
| 80 |
67 # TODO(mark): https://crbug.com/466890: merge this target with | 81 # TODO(mark): https://crbug.com/466890: merge this target with |
68 # crash_component. | 82 # crash_component. |
69 # | 83 # |
70 # This is a temporary base target that is depended on by both | 84 # This is a temporary base target that is depended on by both |
71 # crash_component and crash_component_breakpad_mac_to_be_deleted. It | 85 # crash_component and crash_component_breakpad_mac_to_be_deleted. It |
72 # provides everything common to both of those targets. For a short period, | 86 # provides everything common to both of those targets. For a short period, |
73 # there are two Mac crash component implementations. The new one uses a | 87 # there are two Mac crash component implementations. The new one uses a |
74 # Crashpad implementation and is used by Chrome. The old one uses a | 88 # Crashpad implementation and is used by Chrome. The old one uses a |
75 # Breakpad implementation and is used by content_shell. Consumers should | 89 # Breakpad implementation and is used by content_shell. Consumers should |
76 # depend on the desired target. All three targets behave identically on | 90 # depend on the desired target. All three targets behave identically on |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 ":lib", | 221 ":lib", |
208 "//base", | 222 "//base", |
209 "//testing/gmock", | 223 "//testing/gmock", |
210 "//testing/gtest", | 224 "//testing/gtest", |
211 ] | 225 ] |
212 | 226 |
213 if (is_win) { | 227 if (is_win) { |
214 deps += [ "//breakpad:client" ] | 228 deps += [ "//breakpad:client" ] |
215 } | 229 } |
216 } | 230 } |
OLD | NEW |