2019-07-06 05:42:53 +00:00
|
|
|
dnl Check for vulkan support
|
|
|
|
AC_ARG_ENABLE(vulkan,
|
2021-12-20 05:48:02 +00:00
|
|
|
AS_HELP_STRING([--disable-vulkan], [do not use Vulkan]),
|
2019-07-06 05:42:53 +00:00
|
|
|
HAVE_VULKAN=$enable_vulkan, HAVE_VULKAN=auto)
|
|
|
|
if test "x$HAVE_VULKAN" != xno; then
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
AS_IF([test x"$VULKAN_SDK" != x], [
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$VULKAN_SDK/include"
|
|
|
|
LDFLAGS="$LDFLAGS -L$VULKAN_SDK/lib"
|
|
|
|
glslangvalidator="$VULKAN_SDK/bin/glslangValidator"
|
|
|
|
], [glslangvalidator="glslangValidator"])
|
2019-07-08 16:00:47 +00:00
|
|
|
AC_CHECK_HEADER([vulkan/vulkan.h], [HAVE_VULKAN=yes], [HAVE_VULKAN=no])
|
2019-07-06 05:42:53 +00:00
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
|
|
fi
|
2019-07-08 16:00:47 +00:00
|
|
|
if test "x$HAVE_VULKAN" = xyes; then
|
|
|
|
AC_DEFINE([HAVE_VULKAN], [1], [Define if yhou have the Vulkan libs])
|
|
|
|
fi
|
2019-07-06 05:42:53 +00:00
|
|
|
AC_SUBST(VULKAN_LIBS)
|
2020-12-23 05:32:29 +00:00
|
|
|
AC_SUBST(GLSLANGVALIDATOR, [$glslangvalidator])
|
2019-07-08 16:00:47 +00:00
|
|
|
|
|
|
|
AM_CONDITIONAL(X11_VULKAN, test "x$HAVE_VULKAN" = "xyes")
|
2021-03-27 11:09:37 +00:00
|
|
|
AM_CONDITIONAL(WIN_VULKAN, test "x$HAVE_VULKAN" = "xyes")
|
2021-05-24 07:26:12 +00:00
|
|
|
AM_CONDITIONAL(TEST_VULKAN, test "x$HAVE_VULKAN" = "xyes")
|