mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
meson: Fix vulkan automagic in applemedia plugin
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7091>
This commit is contained in:
parent
5ed3e045d8
commit
4293719206
1 changed files with 7 additions and 4 deletions
|
@ -91,10 +91,13 @@ foreach framework : applemedia_frameworks
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
applemedia_objcpp_args = []
|
applemedia_objcpp_args = []
|
||||||
if gstvulkan_dep.found() and have_objcpp
|
vulkan_option = get_option('vulkan')
|
||||||
moltenvk_dep = cc.find_library('MoltenVK', required : false)
|
vk_required = applemedia_option.enabled() and vulkan_option.enabled()
|
||||||
metal_dep = dependency('appleframeworks', modules : ['Metal'], required : false)
|
if gstvulkan_dep.found() and have_objcpp and not vulkan_option.disabled()
|
||||||
if metal_dep.found() and moltenvk_dep.found() and cc.has_header ('MoltenVK/vk_mvk_moltenvk.h')
|
moltenvk_dep = cc.find_library('MoltenVK', required: vk_required)
|
||||||
|
metal_dep = dependency('appleframeworks', modules : ['Metal'], required: vk_required)
|
||||||
|
have_mvk_header = cc.has_header('MoltenVK/vk_mvk_moltenvk.h', required: vk_required)
|
||||||
|
if metal_dep.found() and moltenvk_dep.found() and have_mvk_header
|
||||||
applemedia_frameworks += [moltenvk_dep, gstvulkan_dep, metal_dep]
|
applemedia_frameworks += [moltenvk_dep, gstvulkan_dep, metal_dep]
|
||||||
applemedia_sources += [
|
applemedia_sources += [
|
||||||
'videotexturecache-vulkan.mm',
|
'videotexturecache-vulkan.mm',
|
||||||
|
|
Loading…
Reference in a new issue