gnome-settings-daemon: fix build without x11

xwayland requires x11, build only if x11 is in DISTRO_FEATURES

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk
2026-01-22 16:43:31 +01:00
committed by Khem Raj
parent b7e757dc8f
commit 67430e2a67
@@ -21,7 +21,7 @@ DEPENDS = " \
"
# all these are mandatory
REQUIRED_DISTRO_FEATURES = "x11 polkit pulseaudio systemd gobject-introspection-data"
REQUIRED_DISTRO_FEATURES = "polkit pulseaudio systemd gobject-introspection-data"
GIR_MESON_OPTION = ""
SRC_URI += "file://0001-gsd-smartcard-enum-types.c.in-fix-reproducibility-is.patch"
@@ -29,9 +29,9 @@ SRC_URI[archive.sha256sum] = "2a9957fc4f91c3b9127b49484179bef485120d9c1c208e44d4
PACKAGECONFIG ??= " \
${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11 alsa', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)} \
gudev \
smartcard \
xwayland \
cups \
"
PACKAGECONFIG[alsa] = "-Dalsa=true,-Dalsa=false,alsa-lib"
@@ -39,7 +39,7 @@ PACKAGECONFIG[cups] = "-Dcups=true,-Dcups=false,cups"
PACKAGECONFIG[gudev] = "-Dgudev=true,-Dgudev=false,libgudev"
PACKAGECONFIG[smartcard] = "-Dsmartcard=true,-Dsmartcard=false,nss"
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=true"
PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false"
PACKAGECONFIG[x11] = "-Dx11=true,-Dx11=false,libx11 libxfixes"
def gnome_verdir(v):