kumquat-buildroot/package/wlroots/wlroots.mk
Adam Duskett f27b0322a5 package/wlroots: vulkan renderer depends on vulkan loader
Without the vulkan-loader package present, the configure step fails with the
following error message:

```
Run-time dependency vulkan found: NO (tried pkgconfig and system)
Message: Install "vulkan" or pass "-Dvulkan=disabled" to disable it.
```

The above error is due to the lack of the vulkan.pc file provided by the
vulkan-loader package. A search of autobuild failures containing
BR2_PACKAGE_WLROOTS=y and BR2_PACKAGE_MESA3D_VULKAN_DRIVER=y shows two build
failures. However, the failure reasons happened before wlroots could compile.
One for gerbera-1.10.0 and another for host-rust-1.64.0.

Add a dependency on the vulkan-loader package to resolve the above issue.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-02-05 22:25:50 +01:00

54 lines
1.3 KiB
Makefile

################################################################################
#
# wlroots
#
################################################################################
WLROOTS_VERSION = 0.16.2
WLROOTS_SITE = https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$(WLROOTS_VERSION)/downloads
WLROOTS_LICENSE = MIT
WLROOTS_LICENSE_FILES = LICENSE
WLROOTS_INSTALL_STAGING = YES
WLROOTS_DEPENDENCIES = \
host-pkgconf \
host-wayland \
hwdata \
libinput \
libxkbcommon \
libegl \
libgles \
pixman \
seatd \
udev \
wayland \
wayland-protocols
WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled
WLROOTS_RENDERERS = gles2
WLROOTS_BACKENDS = libinput drm
ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
WLROOTS_BACKENDS += x11
WLROOTS_DEPENDENCIES += libxcb xcb-util-wm xcb-util-renderutil xlib_libX11
endif
ifeq ($(BR2_PACKAGE_WLROOTS_XWAYLAND),y)
WLROOTS_CONF_OPTS += -Dxwayland=enabled
WLROOTS_DEPENDENCIES += libxcb xcb-util-wm xwayland
else
WLROOTS_CONF_OPTS += -Dxwayland=disabled
endif
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER)$(BR2_PACKAGE_VULKAN_LOADER),yy)
WLROOTS_RENDERERS += vulkan
WLROOTS_DEPENDENCIES += mesa3d vulkan-loader
endif
WLROOTS_CONF_OPTS += \
-Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS))) \
-Drenderers=$(subst $(space),$(comma),$(strip $(WLROOTS_RENDERERS)))
$(eval $(meson-package))