mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
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!',
|
error_message: 'libplacebo compiled without vulkan support!',
|
||||||
)
|
)
|
||||||
vulkan = dependency('vulkan', version: '>= 1.1.70', required: vulkan_opt)
|
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']
|
if features['vulkan']
|
||||||
dependencies += vulkan
|
dependencies += vulkan
|
||||||
sources += files('video/out/vulkan/context.c',
|
sources += files('video/out/vulkan/context.c',
|
||||||
|
Loading…
Reference in New Issue
Block a user