--- electron/BUILD.gn.orig 2021-01-22 23:55:24 UTC +++ electron/BUILD.gn @@ -405,7 +405,7 @@ source_set("electron_lib") { defines += [ "GDK_DISABLE_DEPRECATION_WARNINGS" ] } - if (!is_mas_build) { + if (!is_mas_build && !is_bsd) { deps += [ "//components/crash/core/app" ] } @@ -437,7 +437,7 @@ source_set("electron_lib") { ] } - if (is_linux) { + if (is_linux && !is_bsd) { deps += [ "//components/crash/content/browser" ] } @@ -494,6 +494,12 @@ source_set("electron_lib") { cflags_objcc = [ "-fobjc-weak" ] } } + if (is_bsd) { + sources -= [ + "shell/common/crash_keys.cc", + "shell/common/crash_keys.h", + ] + } if (is_linux) { deps += [ ":libnotify_loader", @@ -1100,7 +1106,7 @@ if (is_mac) { ":electron_app_manifest", ":electron_lib", ":packed_resources", - "//components/crash/core/app", + # "//components/crash/core/app", "//content:sandbox_helper_win", "//electron/buildflags", "//ui/strings",