package/weston: add pipewire support
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 3 Feb 2020 22:23:05 +0000 (15:23 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 4 Feb 2020 15:02:19 +0000 (16:02 +0100)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/weston/weston.mk

index ada3f565cb43e358366d76315a8c61afd66aedae..b22e685948a60ccc5686882aaf588aec21c993b7 100644 (file)
@@ -17,8 +17,7 @@ WESTON_CONF_OPTS = \
        -Dbuild.pkg_config_path=$(HOST_DIR)/lib/pkgconfig \
        -Dbackend-headless=false \
        -Dcolor-management-colord=false \
-       -Dremoting=false \
-       -Dpipewire=false
+       -Dremoting=false
 
 # Uses VIDIOC_EXPBUF, only available from 3.8+
 ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8),y)
@@ -127,6 +126,13 @@ else
 WESTON_CONF_OPTS += -Dtest-junit-xml=false
 endif
 
+ifeq ($(BR2_PACKAGE_PIPEWIRE)$(BR2_PACKAGE_WESTON_DRM),yy)
+WESTON_CONF_OPTS += -Dpipewire=true
+WESTON_DEPENDENCIES += pipewire
+else
+WESTON_CONF_OPTS += -Dpipewire=false
+endif
+
 ifeq ($(BR2_PACKAGE_WESTON_DEMO_CLIENTS),y)
 WESTON_CONF_OPTS += -Ddemo-clients=true
 WESTON_DEPENDENCIES += pango