package/pipewire: add option to build examples
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 10 Sep 2021 00:37:25 +0000 (18:37 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 12 Sep 2021 11:57:59 +0000 (13:57 +0200)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/pipewire/Config.in
package/pipewire/pipewire.mk

index 6c61dd20210834e00ad506986c90b8e385929ea3..b15bbfa8d3e4743d9dd61b8b9a7218a2035483a1 100644 (file)
@@ -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
index 9259f0421f87c4bd444e7fa456ec9a8c5b539836..e4ea60c39c7ed5c4d423c6ac7655a8c63b7ce00d 100644 (file)
@@ -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