summaryrefslogtreecommitdiff
path: root/devel/electron4/files/patch-electron_BUILD.gn
blob: d0b9a40cf62a18bdc461024963f794f113a5bc05 (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
--- electron/BUILD.gn.orig	2019-07-19 22:22:11 UTC
+++ electron/BUILD.gn
@@ -308,6 +308,15 @@ static_library("electron_lib") {
     "//extensions/common/url_pattern.h",
   ]
 
+  if (is_bsd) {
+    sources -= [
+      "atom/common/crash_reporter/crash_reporter_linux.cc",
+      "atom/common/crash_reporter/crash_reporter_linux.h",
+      "atom/common/crash_reporter/linux/crash_dump_handler.cc",
+      "atom/common/crash_reporter/linux/crash_dump_handler.h",
+    ]
+  }
+
   if (is_component_build) {
     defines += [ "NODE_SHARED_MODE" ]
   }
@@ -377,7 +386,7 @@ static_library("electron_lib") {
     sources += filenames.lib_sources_win
     libs += [ "dwmapi.lib" ]
   }
-  if (is_linux || is_win) {
+  if ((is_linux && !is_bsd) || is_win) {
     deps += [ "//third_party/breakpad:client" ]
     include_dirs += [ "//third_party/breakpad" ]
   }