From: James Hilliard Date: Sun, 12 Sep 2021 20:47:41 +0000 (-0600) Subject: package/pipewire: add option to enable media-session support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddad938149e80d14ab2c7695ac3ba7e7de6c327b;p=buildroot.git package/pipewire: add option to enable media-session support 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 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/pipewire/Config.in b/package/pipewire/Config.in index b15bbfa8d3..506b85e856 100644 --- a/package/pipewire/Config.in +++ b/package/pipewire/Config.in @@ -19,6 +19,12 @@ config BR2_PACKAGE_PIPEWIRE_EXAMPLES 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 diff --git a/package/pipewire/pipewire.mk b/package/pipewire/pipewire.mk index d088710827..d6cbe1605f 100644 --- a/package/pipewire/pipewire.mk +++ b/package/pipewire/pipewire.mk @@ -156,6 +156,12 @@ else 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