Commit f3b0b22c authored by Matthew Waters's avatar Matthew Waters 🐨

build/vulkan: fix winsys detection based on the previously set variables

The X11/Wayland winsys checks weren't being used to enable the vulkan element.
Use them.
parent 7fa2668a
......@@ -2998,14 +2998,15 @@ AG_GST_CHECK_FEATURE(QT, [Qt elements], qt, [
dnl *** Vulkan ***
translit(dnm, m, l) AM_CONDITIONAL(USE_VULKAN, true)
AG_GST_CHECK_FEATURE(VULKAN, [Vulkan elements], vulkan, [
HAVE_VULKAN=no
AC_CHECK_HEADER(vulkan/vulkan.h, [
AC_CHECK_LIB(vulkan, vkCreateDevice, [
VULKAN_LIBS="-lvulkan"
AC_SUBST(VULKAN_LIBS)
dnl TODO check platform support (x11, win32, wayland, android, etc)
if test "x$HAVE_XCB" = "xyes"; then
HAVE_VULKAN=yes
if test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1"; then
HAVE_VULKAN="yes"
fi
if test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1"; then
HAVE_VULKAN="yes"
fi
], [])
], [])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment