mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
package/wlroots: enable vulkan renderer if possible
Enable the wlroots' Vulkan renderer if a suitable driver is being built. Currently only Mesa provides Vulkan drivers, so gating the feature on BR2_PACKAGE_MESA3D_VULKAN_DRIVER seems reasonable at the moment (and is done at least by one other package already: pipewire). Signed-off-by: Adrian Perez de Castro <aperez@igalia.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
4bb391014c
commit
d7f7265125
@@ -23,8 +23,9 @@ WLROOTS_DEPENDENCIES = \
|
|||||||
wayland \
|
wayland \
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
|
|
||||||
WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled -Drenderers=gles2
|
WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled
|
||||||
|
|
||||||
|
WLROOTS_RENDERERS = gles2
|
||||||
WLROOTS_BACKENDS = libinput drm
|
WLROOTS_BACKENDS = libinput drm
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
|
ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
|
||||||
@@ -35,6 +36,13 @@ else
|
|||||||
WLROOTS_CONF_OPTS += -Dxwayland=disabled
|
WLROOTS_CONF_OPTS += -Dxwayland=disabled
|
||||||
endif
|
endif
|
||||||
|
|
||||||
WLROOTS_CONF_OPTS += -Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS)))
|
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),y)
|
||||||
|
WLROOTS_RENDERERS += vulkan
|
||||||
|
WLROOTS_DEPENDENCIES += mesa3d
|
||||||
|
endif
|
||||||
|
|
||||||
|
WLROOTS_CONF_OPTS += \
|
||||||
|
-Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS))) \
|
||||||
|
-Drenderers=$(subst $(space),$(comma),$(strip $(WLROOTS_RENDERERS)))
|
||||||
|
|
||||||
$(eval $(meson-package))
|
$(eval $(meson-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user