summaryrefslogtreecommitdiff
path: root/devel/electron36/files/patch-content_common_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron36/files/patch-content_common_BUILD.gn')
-rw-r--r--devel/electron36/files/patch-content_common_BUILD.gn36
1 files changed, 36 insertions, 0 deletions
diff --git a/devel/electron36/files/patch-content_common_BUILD.gn b/devel/electron36/files/patch-content_common_BUILD.gn
new file mode 100644
index 000000000000..d0a91a8a1d3e
--- /dev/null
+++ b/devel/electron36/files/patch-content_common_BUILD.gn
@@ -0,0 +1,36 @@
+--- content/common/BUILD.gn.orig 2025-05-11 11:50:45 UTC
++++ content/common/BUILD.gn
+@@ -383,19 +383,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" ]
+ }