meson,windows: Use relative paths in Vulkan ICD manifest files

See https://github.com/msys2/MINGW-packages/issues/16065

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27468>
This commit is contained in:
Luca Bacci
2024-02-05 16:01:00 +01:00
committed by Marge Bot
parent a1e3c93ff7
commit fe520ecfbf
5 changed files with 8 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ libvulkan_dzn = shared_library(
icd_file_name = 'libvulkan_dzn.so'
icd_lib_path = join_paths(get_option('prefix'), get_option('libdir'))
if with_platform_windows
icd_lib_path = join_paths(get_option('prefix'), get_option('bindir'))
icd_lib_path = import('fs').relative_to(get_option('bindir'), with_vulkan_icd_dir)
icd_file_name = 'vulkan_dzn.dll'
endif