wlroots/sway: update

A vulkan renderer has been added to wlroots. Vulkan support is not ready for panfrost yet,
but it is at least buildable and other platforms may benefit from it.
Adjust the Recipe to automatically build the renderer if vulkan is in DISTRO_FEATURES.
This commit is contained in:
MarkusVolk 2021-10-20 16:58:01 +02:00
parent a3f1aad93e
commit b6fec358ff
2 changed files with 19 additions and 10 deletions

View File

@ -40,7 +40,7 @@ SRC_URI = " \
git://github.com/swaywm/sway.git;protocol=https;branch=master \
"
SRCREV = "8aae6a8eab95bf39f37a8a8048cbb1e1954484d3"
SRCREV = "215787e8b28d4e52d97bdcadd4b64305c7a62ac5"
PV = "1.6.1+${SRCREV}"
S = "${WORKDIR}/git"

View File

@ -17,23 +17,30 @@ DEPENDS += " \
libxkbcommon \
pixman \
seatd \
virtual/egl \
virtual/libgbm \
virtual/libgles2 \
wayland \
wayland-native \
wayland-protocols \
"
PACKAGECONFIG[gles2] = "-Drenderers=gles2"
PACKAGECONFIG[x11] = "-Dbackends=x11,,xcb-util-renderutil"
PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sysvinit] = ",,eudev"
PACKAGECONFIG[vulkan] = ",,vulkan-loader vulkan-headers glslang glslang-native"
PACKAGECONFIG[x11] = ",,xcb-util-renderutil"
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,xserver-xorg xcb-util-wm"
PACKAGECONFIG[examples] = "-Dexamples=true,-Dexamples=false"
PACKAGECONFIG ?= " \
gles2 \
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)} \
${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)} \
${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \
"
SRC_URI = "git://github.com/swaywm/wlroots.git;branch=master;protocol=https"
SRCREV = "13cdb84ee8df248db3b303fd4d1c0e3e75db2794"
SRCREV = "36cf38742734b003b2abbcd1de910771a8454ef1"
PV = "0.14.1+${SRCREV}"
S = "${WORKDIR}/git"
@ -42,11 +49,13 @@ inherit meson pkgconfig features_check
EXTRA_OEMESON += "--buildtype release"
FILES:${PN} = "${bindir} \
FILES:${PN} = " \
${bindir} \
${libdir} \
"
FILES:${PN}-dev = "${includedir} \
FILES:${PN}-dev = " \
${includedir} \
${libdir}/libwlroots.so \
"