vulkan: Fix source list for vulkan_wsi on Windows

I don't think link_whole works right for VS project generation, but MSVC
doesn't support GCC weak functions anyway, so work around it.

Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9121>
This commit is contained in:
James Park
2021-02-03 10:32:02 -08:00
committed by Dave Airlie
parent bc8e770856
commit 10244fe76e

View File

@@ -99,9 +99,16 @@ idep_vulkan_util_headers = declare_dependency(
include_directories : include_directories('.')
)
idep_vulkan_util = declare_dependency(
# Instruct users of this library to link with --whole-archive. Otherwise,
# our weak function overloads may not resolve properly.
link_whole : libvulkan_util,
dependencies : idep_vulkan_util_headers
)
if with_platform_windows
idep_vulkan_util = declare_dependency(
link_with : libvulkan_util,
dependencies : idep_vulkan_util_headers
)
else
idep_vulkan_util = declare_dependency(
# Instruct users of this library to link with --whole-archive. Otherwise,
# our weak function overloads may not resolve properly.
link_whole : libvulkan_util,
dependencies : idep_vulkan_util_headers
)
endif