mirror of https://github.com/mpv-player/mpv
meson: check for vulkan headers
Vulkan dependency implies only vulkan loader, but some distributions split vulkan-loader and vulkan-headers, so check if the headers are actually there.
This commit is contained in:
parent
05b964fdec
commit
f8700c5a94
|
@ -1273,7 +1273,10 @@ vulkan_opt = get_option('vulkan').require(
|
|||
error_message: 'libplacebo compiled without vulkan support!',
|
||||
)
|
||||
vulkan = dependency('vulkan', version: '>= 1.1.70', required: vulkan_opt)
|
||||
features += {'vulkan': vulkan.found()}
|
||||
features += {'vulkan': vulkan.found() and (vulkan.type_name() == 'internal' or
|
||||
cc.has_header_symbol('vulkan/vulkan_core.h',
|
||||
'VK_VERSION_1_1',
|
||||
dependencies: vulkan))}
|
||||
if features['vulkan']
|
||||
dependencies += vulkan
|
||||
sources += files('video/out/vulkan/context.c',
|
||||
|
|
Loading…
Reference in New Issue