package/wlroots: use libseat when available
authorAdrian Perez de Castro <aperez@igalia.com>
Tue, 18 May 2021 13:54:22 +0000 (16:54 +0300)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 18 May 2021 17:09:51 +0000 (19:09 +0200)
Enable using libseat for seat management when possible.

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/wlroots/wlroots.mk

index a20f6683a96404c74ba85519cf9b37c2f7904b39..38ddba743daa7a2cfc0c3b7df5ab827bf983f8c9 100644 (file)
@@ -22,7 +22,7 @@ WLROOTS_DEPENDENCIES = \
        wayland \
        wayland-protocols
 
-WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled -Dlibseat=disabled
+WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled
 
 ifeq ($(BR2_PACKAGE_FFMPEG),y)
 WLROOTS_DEPENDENCIES += ffmpeg
@@ -46,4 +46,11 @@ else
 WLROOTS_CONF_OPTS += -Dx11-backend=disabled -Dxwayland=disabled
 endif
 
+ifeq ($(BR2_PACKAGE_SEATD_LIBSEAT),y)
+WLROOTS_CONF_OPTS += -Dlibseat=enabled
+WLROOTS_DEPENDENCIES += seatd
+else
+WLROOTS_CONF_OPTS += -Dlibseat=disabled
+endif
+
 $(eval $(meson-package))