summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-chrome_browser_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-chrome_browser_BUILD.gn')
-rw-r--r--devel/electron13/files/patch-chrome_browser_BUILD.gn49
1 files changed, 49 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-chrome_browser_BUILD.gn b/devel/electron13/files/patch-chrome_browser_BUILD.gn
new file mode 100644
index 000000000000..323f0b805a4a
--- /dev/null
+++ b/devel/electron13/files/patch-chrome_browser_BUILD.gn
@@ -0,0 +1,49 @@
+--- chrome/browser/BUILD.gn.orig 2021-11-13 11:05:57 UTC
++++ chrome/browser/BUILD.gn
+@@ -2427,9 +2427,18 @@ static_library("browser") {
+ ]
+ }
+ }
+- if (is_linux || is_chromeos) {
++ if ((is_linux || is_chromeos) && !is_bsd) {
+ deps += [ "//chrome/browser/error_reporting" ]
+ }
++ if (is_bsd) {
++ sources -= [
++ "crash_upload_list/crash_upload_list.cc",
++ "crash_upload_list/crash_upload_list.h",
++ ]
++ deps -= [
++ "//components/crash/core/browser",
++ ]
++ }
+ if (use_ozone) {
+ deps += [
+ "//ui/events/ozone",
+@@ -5134,6 +5143,17 @@ static_library("browser") {
+ }
+ }
+
++ if (is_bsd) {
++ sources -= [
++ "enterprise/signals/device_info_fetcher_linux.cc",
++ "enterprise/signals/device_info_fetcher_linux.h",
++ ]
++ sources += [
++ "enterprise/signals/device_info_fetcher_freebsd.cc",
++ "enterprise/signals/device_info_fetcher_freebsd.h",
++ ]
++ }
++
+ if (is_chromeos_ash) {
+ if (use_allocator == "tcmalloc") {
+ deps += [ "//chrome/common/performance_manager/mojom" ]
+@@ -5361,7 +5381,7 @@ static_library("browser") {
+ ]
+ }
+
+- if (is_posix && !is_mac) {
++ if (is_posix && !is_mac && !is_bsd) {
+ # TODO(crbug.com / 753619): Enable crash reporting on Fuchsia.
+ sources += [
+ "//chrome/app/chrome_crash_reporter_client.cc",