aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_common_BUILD.gn
blob: 0cf64fe695f9e091d7efe075921b02de6babfcd9 (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
--- content/common/BUILD.gn.orig	2021-04-14 18:41:02 UTC
+++ content/common/BUILD.gn
@@ -336,7 +336,7 @@ source_set("common") {
     sources -= [ "cursors/webcursor_aura.cc" ]
   }
 
-  if (is_linux || is_chromeos) {
+  if ((is_linux || is_chromeos) && !is_bsd) {
     sources += [
       "common_sandbox_support_linux.cc",
       "sandbox_init_linux.cc",
@@ -352,6 +352,15 @@ source_set("common") {
     ]
   }
 
+  if (is_bsd) {
+    sources += [
+      "common_sandbox_support_linux.cc",
+    ]
+    deps += [
+      "//third_party/fontconfig",
+    ]
+  }
+
   if (use_zygote_handle) {
     sources += [
       "zygote/zygote_handle_impl_linux.h",
@@ -401,7 +410,7 @@ source_set("common") {
   }
 }
 
-if (is_linux || is_chromeos) {
+if ((is_linux || is_chromeos) && !is_bsd) {
   source_set("set_process_title_linux") {
     public = [ "set_process_title_linux.h" ]
     sources = [ "set_process_title_linux.cc" ]