aboutsummaryrefslogtreecommitdiff
path: root/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_crash_content_app_BUILD.gn
blob: 74680fe2c99e578a84db78db72667e804b8c5b16 (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
--- src/3rdparty/chromium/components/crash/content/app/BUILD.gn.orig	2020-03-16 14:04:24 UTC
+++ src/3rdparty/chromium/components/crash/content/app/BUILD.gn
@@ -51,17 +51,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" ]
 
@@ -73,7 +76,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",
@@ -99,7 +102,7 @@ static_library("app") {
     ]
   }
 
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     deps += [ "//third_party/breakpad:client" ]
   }
 
@@ -130,7 +133,7 @@ static_library("app") {
     libs = [ "log" ]
   }
 
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     data_deps = [
       "//third_party/crashpad/crashpad/handler:crashpad_handler",
     ]