--- chrome/common/BUILD.gn.orig 2021-01-07 00:36:25 UTC +++ chrome/common/BUILD.gn @@ -250,6 +250,10 @@ static_library("common") { public_deps += [ "//ppapi/shared_impl" ] } + if (is_bsd) { + deps -= [ "//components/crash/core/app" ] + } + if (enable_extensions) { sources += [ "cast_messages.cc", @@ -487,7 +491,7 @@ static_library("common") { public_deps += [ "//chrome/common/safe_browsing" ] } - if (is_linux || is_chromeos) { + if ((is_linux || is_chromeos) && !is_bsd) { sources += [ "auto_start_linux.cc", "auto_start_linux.h", @@ -496,6 +500,14 @@ static_library("common") { "multi_process_lock_linux.cc", ] deps += [ "//sandbox/linux:sandbox_services" ] + } + + if (is_bsd) { + sources += [ + "auto_start_linux.cc", + "auto_start_linux.h", + "multi_process_lock_linux.cc", + ] } if (enable_cdm_host_verification) {