aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-media_audio_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-media_audio_BUILD.gn')
-rw-r--r--devel/electron13/files/patch-media_audio_BUILD.gn29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-media_audio_BUILD.gn b/devel/electron13/files/patch-media_audio_BUILD.gn
new file mode 100644
index 000000000000..9a971f9f6b1c
--- /dev/null
+++ b/devel/electron13/files/patch-media_audio_BUILD.gn
@@ -0,0 +1,29 @@
+--- media/audio/BUILD.gn.orig 2021-11-13 11:05:57 UTC
++++ media/audio/BUILD.gn
+@@ -242,7 +242,7 @@ source_set("audio") {
+ ]
+ }
+
+- if (is_linux || is_chromeos) {
++ if ((is_linux || is_chromeos) && !use_sndio) {
+ sources += [ "linux/audio_manager_linux.cc" ]
+ }
+
+@@ -307,6 +307,17 @@ source_set("audio") {
+ } else {
+ deps += [ ":libpulse_stubs" ]
+ }
++ }
++
++ if (use_sndio) {
++ libs += [ "sndio" ]
++ sources += [
++ "openbsd/audio_manager_openbsd.cc",
++ "sndio/sndio_input.cc",
++ "sndio/sndio_input.h",
++ "sndio/sndio_output.cc",
++ "sndio/sndio_output.h",
++ ]
+ }
+
+ if (is_fuchsia) {