$NetBSD: patch-src_3rdparty_chromium_components_crash_core_common_BUILD.gn,v 1.2 2022/04/18 11:18:18 adam Exp $ --- src/3rdparty/chromium/components/crash/core/common/BUILD.gn.orig 2021-02-19 16:41:59.000000000 +0000 +++ src/3rdparty/chromium/components/crash/core/common/BUILD.gn @@ -7,7 +7,7 @@ import("//components/gwp_asan/buildflags 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") { @@ -108,7 +108,9 @@ target(crash_key_target_type, "crash_key ] } - deps += [ "//third_party/breakpad:client" ] + if (!is_bsd) { + deps += [ "//third_party/breakpad:client" ] + } if (use_combined_annotations) { public_deps += [ "//third_party/crashpad/crashpad/client" ] } @@ -184,7 +186,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" ] }