summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-components_crash_content_app_BUILD.gn
blob: 459a1fefae4bda8412e35395f2d96a2ed075d8da (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
41
42
43
44
45
46
47
48
49
50
51
52
--- components/crash/content/app/BUILD.gn.orig	2020-03-03 18:53:53 UTC
+++ components/crash/content/app/BUILD.gn
@@ -53,17 +53,20 @@ static_library("app") {
     "crashpad_win.cc",
   ]
 
-  if (is_mac || is_win || is_android || is_linux) {
+  if ((is_mac || is_win || is_android || is_linux) && !is_bsd) {
     sources += [ "crashpad.cc" ]
   }
 
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     sources += [
       "breakpad_linux.cc",
       "breakpad_linux.h",
       "breakpad_linux_impl.h",
     ]
   }
+  if (is_bsd) {
+    sources -= [ "crashpad_linux.cc" ]
+  }
 
   defines = [ "CRASH_IMPLEMENTATION" ]
 
@@ -75,7 +78,7 @@ static_library("app") {
     "//build:branding_buildflags",
   ]
 
-  if (is_mac || is_win || is_android || is_linux) {
+  if ((is_mac || is_win || is_android || is_linux) && !is_bsd) {
     deps += [
       "//third_party/crashpad/crashpad/client",
       "//third_party/crashpad/crashpad/util",
@@ -101,7 +104,7 @@ static_library("app") {
     ]
   }
 
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     deps += [ "//third_party/breakpad:client" ]
   }
 
@@ -132,7 +135,7 @@ static_library("app") {
     libs = [ "log" ]
   }
 
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     data_deps = [
       "//third_party/crashpad/crashpad/handler:crashpad_handler",
     ]