pipewire: introduce support for ROC

This allows the `libpipewire-module-roc-{source,sink}` modules to be
built.
This commit is contained in:
Ben Gamari 2022-01-01 11:54:07 -05:00
parent 702c31a6ac
commit 105af2d840

View file

@ -54,6 +54,8 @@
, libpulseaudio , libpulseaudio
, zeroconfSupport ? true , zeroconfSupport ? true
, avahi , avahi
, rocSupport ? true
, roc-toolkit
}: }:
let let
@ -134,7 +136,8 @@ let
++ lib.optional ffmpegSupport ffmpeg ++ lib.optional ffmpegSupport ffmpeg
++ lib.optionals bluezSupport [ bluez libfreeaptx ldacbt sbc fdk_aac ] ++ lib.optionals bluezSupport [ bluez libfreeaptx ldacbt sbc fdk_aac ]
++ lib.optional pulseTunnelSupport libpulseaudio ++ lib.optional pulseTunnelSupport libpulseaudio
++ lib.optional zeroconfSupport avahi; ++ lib.optional zeroconfSupport avahi
++ lib.optional rocSupport roc-toolkit;
# Valgrind binary is required for running one optional test. # Valgrind binary is required for running one optional test.
checkInputs = lib.optional withValgrind valgrind; checkInputs = lib.optional withValgrind valgrind;
@ -147,7 +150,7 @@ let
"-Dpipewire_pulse_prefix=${placeholder "pulse"}" "-Dpipewire_pulse_prefix=${placeholder "pulse"}"
"-Dlibjack-path=${placeholder "jack"}/lib" "-Dlibjack-path=${placeholder "jack"}/lib"
"-Dlibcamera=${mesonEnable libcameraSupport}" "-Dlibcamera=${mesonEnable libcameraSupport}"
"-Droc=disabled" "-Droc=${mesonEnable rocSupport}"
"-Dlibpulse=${mesonEnable pulseTunnelSupport}" "-Dlibpulse=${mesonEnable pulseTunnelSupport}"
"-Davahi=${mesonEnable zeroconfSupport}" "-Davahi=${mesonEnable zeroconfSupport}"
"-Dgstreamer=${mesonEnable gstreamerSupport}" "-Dgstreamer=${mesonEnable gstreamerSupport}"