blob: 71ee941f05b24a95b56f656021198db0b62ffb74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- components/crash/core/common/BUILD.gn.orig 2021-01-18 21:28:55 UTC
+++ components/crash/core/common/BUILD.gn
@@ -7,7 +7,7 @@ import("//components/gwp_asan/buildflags/buildflags.gn
declare_args() {
# If set to true, this will stub out and disable the entire crash key system.
- use_crash_key_stubs = is_fuchsia
+ use_crash_key_stubs = is_fuchsia || is_bsd
}
group("common") {
@@ -32,7 +32,7 @@ use_crashpad_annotation =
# implementations will be instantiated and set, doubling the storage
# used for keys. This is intended to be used temporarily to test Crashpad
# integrations without disabling Breakpad.
-use_combined_annotations = is_linux || is_chromeos
+use_combined_annotations = (is_linux || is_chromeos) && !is_bsd
buildflag_header("crash_buildflags") {
header = "crash_buildflags.h"
@@ -93,7 +93,9 @@ target(crash_key_target_type, "crash_key_lib") {
sources += [ "crash_key_stubs.cc" ]
} else if (use_crashpad_annotation) {
sources += [ "crash_key_crashpad.cc" ]
- deps += [ "//third_party/crashpad/crashpad/client" ]
+ if (!is_bsd) {
+ deps += [ "//third_party/crashpad/crashpad/client" ]
+ }
} else {
include_dirs = [ "//third_party/breakpad/breakpad/src" ]
@@ -185,7 +187,7 @@ source_set("unit_tests") {
sources += [ "crash_key_breakpad_ios_unittest.cc" ]
deps += [ "//third_party/breakpad:client" ]
include_dirs = [ "//third_party/breakpad/breakpad/src/" ]
- } else if (!is_mac && !is_win && !is_fuchsia && !is_android) {
+ } else if (!is_mac && !is_win && !is_fuchsia && !is_android && !is_bsd) {
include_dirs = [ "//third_party/breakpad/breakpad/src/" ]
sources += [ "crash_key_breakpad_unittest.cc" ]
}
|