From b2c63928a12ba1c0da4b6e0c85b2c9da95405e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 8 Dec 2020 21:56:37 +0100 Subject: [PATCH] wlroots: add PACKAGECONFIGS for xwayland/x11-backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-wayland/sway/wlroots.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-wayland/sway/wlroots.bb b/recipes-wayland/sway/wlroots.bb index 4c10a65..d24bca7 100644 --- a/recipes-wayland/sway/wlroots.bb +++ b/recipes-wayland/sway/wlroots.bb @@ -19,7 +19,11 @@ DEPENDS = " \ inherit meson features_check -REQUIRED_DISTRO_FEATURES = "wayland" +REQUIRED_DISTRO_FEATURES = "wayland opengl" + +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES','x11','xwayland x11-backend','',d)}" +PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,xserver-xorg,xserver-xorg-xwayland" +PACKAGECONFIG[x11-backend] = "-Dx11-backend=enabled,-Dx11-backend=disabled,xserver-xorg" SRC_URI = " \ git://github.com/swaywm/${BPN}.git \