blob: 265a9e646ba3543772f7cbfaf82c718c3151e092 (
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-04-14 18:40:59 UTC
+++ components/crash/core/common/BUILD.gn
@@ -8,7 +8,7 @@ import("//ios/features.gni")
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") {
@@ -34,7 +34,7 @@ use_crashpad_annotation =
# used for keys. This is intended to be used temporarily to test Crashpad
# integrations without disabling Breakpad.
use_combined_annotations =
- (is_ios && !is_cronet_build) || is_linux || is_chromeos
+ ((is_ios && !is_cronet_build) || is_linux || is_chromeos) && !is_bsd
buildflag_header("crash_buildflags") {
header = "crash_buildflags.h"
@@ -95,7 +95,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" ]
@@ -190,7 +192,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" ]
}
|