libdecor: allow to build without opengl

This commit is contained in:
Markus Volk 2022-11-15 11:41:18 +01:00
parent 70c01e8b1a
commit 612b94a5fe

View File

@ -7,7 +7,6 @@ SRC_URI = "git://gitlab.gnome.org/jadahl/libdecor.git;protocol=https;branch=mast
DEPENDS = " \ DEPENDS = " \
cairo \ cairo \
pango \ pango \
virtual/libgl \
wayland \ wayland \
wayland-native \ wayland-native \
wayland-protocols \ wayland-protocols \
@ -16,11 +15,12 @@ DEPENDS = " \
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
SRCREV = "e87dcfdaf83f332fa83b43c804fcf93c151ff0f5" SRCREV = "e87dcfdaf83f332fa83b43c804fcf93c151ff0f5"
PACKAGECONFIG ?= "dbus ${@bb.utils.filter('DISTRO_FEATURES', 'gtk3', d)}" PACKAGECONFIG ?= "dbus ${@bb.utils.filter('DISTRO_FEATURES', 'gtk3 opengl', d)}"
PACKAGECONFIG[dbus] = "-Ddbus=enabled,-Ddbus=disabled,dbus" PACKAGECONFIG[dbus] = "-Ddbus=enabled,-Ddbus=disabled,dbus"
PACKAGECONFIG[demo] = "-Ddemo=true,-Ddemo=false,virtual/libegl libxkbcommon" PACKAGECONFIG[demo] = "-Ddemo=true,-Ddemo=false,virtual/libegl libxkbcommon"
PACKAGECONFIG[gtk3] = "-Dgtk=enabled,-Dgtk=disabled,gtk+3" PACKAGECONFIG[gtk3] = "-Dgtk=enabled,-Dgtk=disabled,gtk+3"
PACKAGECONFIG[opengl] = ",,virtual/libgl"
inherit meson pkgconfig inherit meson pkgconfig