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
|
--- src/3rdparty/chromium/sandbox/policy/BUILD.gn.orig 2022-11-08 21:18:48 UTC
+++ src/3rdparty/chromium/sandbox/policy/BUILD.gn
@@ -5,6 +5,8 @@ import("//build/config/chromeos/ui_mode.gni")
import("//build/buildflag_header.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/ui_mode.gni")
+# Required for QtPDF to get a successful build
+import("//build/config/ozone.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//chromeos/assistant/assistant.gni")
import("//printing/buildflags/buildflags.gni")
@@ -34,7 +36,7 @@ component("policy") {
"//sandbox/policy/mojom",
]
public_deps = [ "//sandbox:common" ]
- if (is_linux || is_chromeos) {
+ if ((is_linux || is_chromeos) && !is_bsd) {
sources += [
"linux/bpf_audio_policy_linux.cc",
"linux/bpf_audio_policy_linux.h",
@@ -89,6 +91,28 @@ component("policy") {
"//sandbox/linux:sandbox_services",
"//sandbox/linux:seccomp_bpf",
"//sandbox/linux:suid_sandbox_client",
+ ]
+ }
+ if (is_openbsd) {
+ sources += [
+ "openbsd/sandbox_openbsd.cc",
+ "openbsd/sandbox_openbsd.h",
+ ]
+ deps += [
+ "//sandbox:sandbox_buildflags",
+ "//ui/gfx/x",
+ ]
+ libs = [ "util" ]
+ }
+ # Required to avoid assertion errors during build of QtPDF
+ if (is_freebsd && ozone_platform_x11) {
+ sources += [
+ "freebsd/sandbox_freebsd.cc",
+ "freebsd/sandbox_freebsd.h",
+ ]
+ deps += [
+ "//sandbox:sandbox_buildflags",
+ "//ui/gfx/x",
]
}
if (is_chromeos_ash) {
|