summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_browser_BUILD.gn
blob: 4e74de61ca851dced8de2d3ee17cc49071afaa74 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
--- content/browser/BUILD.gn.orig	2016-12-01 23:02:12.000000000 +0000
+++ content/browser/BUILD.gn	2016-12-14 14:34:21.739126000 +0000
@@ -1399,6 +1399,12 @@
     ]
   }
 
+  if (is_bsd) {
+    sources -= [
+      "download/quarantine_linux.cc",
+    ]
+  }
+
   if (!is_win) {
     sources += [
       "file_descriptor_info_impl.cc",
@@ -1462,7 +1468,7 @@
     if (!is_ios) {
       defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
     }
-    if (is_linux || is_mac || is_win) {
+    if (is_linux || is_bsd || is_mac || is_win) {
       sources += [
         "media/capture/desktop_capture_device.cc",
         "media/capture/desktop_capture_device.h",
@@ -1629,7 +1635,7 @@
     }
   }
 
-  if (is_linux && use_aura) {
+  if ((is_linux || is_bsd) && use_aura) {
     deps += [ "//build/linux:fontconfig" ]
   }
 
@@ -1782,6 +1788,17 @@
       "//chromeos",
       "//chromeos:power_manager_proto",
     ]
+  } else if (is_bsd) {
+    sources -= [
+        "zygote_host/zygote_communication_linux.cc",
+        "zygote_host/zygote_communication_linux.h",
+        "zygote_host/zygote_handle_linux.cc",
+        "zygote_host/zygote_host_impl_linux.cc",
+        "zygote_host/zygote_host_impl_linux.h",
+        "../zygote/zygote_linux.cc",
+        "../zygote/zygote_linux.h",
+        "../zygote/zygote_main_linux.cc",
+    ]
   }
 
   if (use_aura) {
@@ -1899,11 +1916,11 @@
     deps += [ "//third_party/flac" ]
   }
 
-  if (is_linux && use_dbus) {
+  if ((is_linux || is_bsd) && use_dbus) {
     deps += [ "//dbus" ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_bsd) {
     deps += [ "//third_party/boringssl" ]
   }