From 3edc1cc44c7bd2deed31d28fa9534e67f32334e8 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Thu, 9 Sep 2021 18:37:25 -0600 Subject: [PATCH] package/pipewire: add option to build examples Signed-off-by: James Hilliard Signed-off-by: Yann E. MORIN --- package/pipewire/Config.in | 5 +++++ package/pipewire/pipewire.mk | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package/pipewire/Config.in b/package/pipewire/Config.in index 6c61dd2021..b15bbfa8d3 100644 --- a/package/pipewire/Config.in +++ b/package/pipewire/Config.in @@ -14,6 +14,11 @@ config BR2_PACKAGE_PIPEWIRE if BR2_PACKAGE_PIPEWIRE +config BR2_PACKAGE_PIPEWIRE_EXAMPLES + bool "pipewire examples" + help + Build pipewire examples + 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 9259f0421f..e4ea60c39c 100644 --- a/package/pipewire/pipewire.mk +++ b/package/pipewire/pipewire.mk @@ -14,7 +14,6 @@ PIPEWIRE_DEPENDENCIES = host-pkgconf dbus $(TARGET_NLS_DEPENDENCIES) PIPEWIRE_CONF_OPTS += \ -Ddocs=disabled \ - -Dexamples=disabled \ -Dman=disabled \ -Dtests=disabled \ -Dspa-plugins=enabled \ @@ -36,6 +35,12 @@ else PIPEWIRE_CONF_OPTS += -Dudev=disabled endif +ifeq ($(BR2_PACKAGE_PIPEWIRE_EXAMPLES),y) +PIPEWIRE_CONF_OPTS += -Dexamples=enabled +else +PIPEWIRE_CONF_OPTS += -Dexamples=disabled +endif + ifeq ($(BR2_PACKAGE_PIPEWIRE_GSTREAMER),y) PIPEWIRE_CONF_OPTS += -Dgstreamer=enabled PIPEWIRE_DEPENDENCIES += libglib2 gstreamer1 gst1-plugins-base -- 2.30.2