summaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-electron_BUILD.gn
blob: d91fb1c583772c7e3a6a0ccfc1bde67c9c29e2d1 (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
--- electron/BUILD.gn.orig	2019-12-13 19:48:14 UTC
+++ electron/BUILD.gn
@@ -458,6 +458,15 @@ source_set("electron_lib") {
   sources = filenames.lib_sources
   set_sources_assignment_filter(sources_assignment_filter)
 
+  if (is_bsd) {
+    sources -= [
+      "shell/common/crash_reporter/crash_reporter_linux.cc",
+      "shell/common/crash_reporter/crash_reporter_linux.h",
+      "shell/common/crash_reporter/linux/crash_dump_handler.cc",
+      "shell/common/crash_reporter/linux/crash_dump_handler.h",
+    ]
+  }
+
   if (is_component_build) {
     defines += [ "NODE_SHARED_MODE" ]
   }
@@ -525,6 +534,12 @@ source_set("electron_lib") {
 
     sources += filenames.lib_sources_nss
   }
+  if (is_bsd) {
+    deps -= [
+      "//third_party/breakpad:client",
+    ]
+    include_dirs -= [ "//third_party/breakpad" ]
+  }
   if (is_win) {
     libs += [ "dwmapi.lib" ]
     deps += [
@@ -1261,7 +1276,7 @@ dist_zip("electron_dist_zip") {
     ":licenses",
     ":electron_version",
   ]
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     data_deps += [ "//sandbox/linux:chrome_sandbox" ]
   }
   outputs = [