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 2024-06-17 12:56:06 UTC
+++ content/common/BUILD.gn
@@ -448,19 +448,28 @@ source_set("common") {
}
if (is_linux || is_chromeos) {
- sources += [
- "gpu_pre_sandbox_hook_linux.cc",
- "gpu_pre_sandbox_hook_linux.h",
- ]
+ if (is_bsd) {
+ sources += [
+ "gpu_pre_sandbox_hook_bsd.cc",
+ "gpu_pre_sandbox_hook_bsd.h",
+ ]
+ } else {
+ sources += [
+ "gpu_pre_sandbox_hook_linux.cc",
+ "gpu_pre_sandbox_hook_linux.h",
+ ]
+ }
public_deps += [ "//sandbox/policy" ]
deps += [
":sandbox_support_linux",
"//media/gpu:buildflags",
"//sandbox/linux:sandbox_services",
- "//sandbox/linux:seccomp_bpf",
"//sandbox/policy:chromecast_sandbox_allowlist_buildflags",
"//third_party/fontconfig",
]
+ if (use_seccomp_bpf) {
+ deps += [ "//sandbox/linux:seccomp_bpf" ]
+ }
if (use_v4l2_codec) {
deps += [ "//media/gpu/v4l2" ]
}
|