pipewire/spa/plugins/vulkan/meson.build
columbarius 412b0c7b49 vulkan: Add dmabuf sync helpers from wlroots
These helpers are obtained from the wlroots project at
https://gitlab.freedesktop.org/wlroots/wlroots/
2023-08-31 10:08:06 +00:00

21 lines
539 B
Meson

spa_vulkan_sources = [
'plugin.c',
'vulkan-compute-filter.c',
'vulkan-compute-source.c',
'vulkan-compute-utils.c',
'vulkan-utils.c'
]
drm = dependency('libdrm')
if cc.has_header('linux/dma-buf.h') and target_machine.system() == 'linux'
spa_vulkan_sources += files('dmabuf_linux.c')
else
spa_vulkan_sources += files('dmabuf_fallback.c')
endif
spa_vulkan = shared_library('spa-vulkan',
spa_vulkan_sources,
dependencies : [ spa_dep, vulkan_dep, mathlib, drm ],
install : true,
install_dir : spa_plugindir / 'vulkan')