The example media-session pipewire session manager requires
pipewire to be built with examples enabled, add support for
enabling this while depending on examples being enabled.
To simplify adding support for additional session managers in
the future such as wireplumber we pass a comma separated list
to the -Dsession-managers meson config option. This also will
ensure that systemd services that depend on media-session are
only installed if media-session support is enabled.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
help
Build pipewire examples
+config BR2_PACKAGE_PIPEWIRE_MEDIA_SESSION
+ bool "pipewire media-session"
+ depends on BR2_PACKAGE_PIPEWIRE_EXAMPLES
+ help
+ Build pipewire media-session support
+
config BR2_PACKAGE_PIPEWIRE_GSTREAMER
bool "pipewire gstreamer plugins"
depends on BR2_USE_WCHAR # libglib2
PIPEWIRE_CONF_OPTS += -Decho-cancel-webrtc=disabled
endif
+ifeq ($(BR2_PACKAGE_PIPEWIRE_MEDIA_SESSION),y)
+PIPEWIRE_SESSION_MANAGERS_LIST = media-session
+endif
+
+PIPEWIRE_CONF_OPTS += -Dsession-managers='$(subst $(space),$(comma),$(PIPEWIRE_SESSION_MANAGERS_LIST))'
+
define PIPEWIRE_USERS
pipewire -1 pipewire -1 * - - - PipeWire System Daemon
endef