[PATCH vkd3d 8/8] configure: Allow specifying the shared object name of the Vulkan library at configure time.

Zebediah Figura zfigura at codeweavers.com
Mon Apr 18 20:28:48 CDT 2022


This makes cross-compiling easier, by avoiding the need to build the Vulkan
loader.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1885edffb..6f774f94c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,7 +113,10 @@ case $host_os in
      ;;
 esac
 
-VKD3D_CHECK_VULKAN
+AC_ARG_VAR([SONAME_LIBVULKAN], [shared object name for the Vulkan library])
+AS_IF([test "x$SONAME_LIBVULKAN" = "x"],
+      [VKD3D_CHECK_VULKAN],
+      [AC_DEFINE_UNQUOTED([SONAME_LIBVULKAN],["$SONAME_LIBVULKAN"],[Define to the shared object name of the Vulkan library.])])
 
 AS_IF([test "x$with_ncurses" != "xno"],
       [PKG_CHECK_MODULES([NCURSES], [ncurses],
-- 
2.35.1




More information about the wine-devel mailing list