pipewire/spa/plugins/vulkan/meson.build
columbarius 49b67742c6 vulkan: move format enumeration into utils functions
This splots the format enumeration into a helper for dsp and raw pod
creation and a common function for the compute filters.

Counting formats with modifiers will be usefull to announce dsp and
raw formats from the same node.

No functional changes.
2024-01-22 14:00:41 +00:00

22 lines
553 B
Meson

spa_vulkan_sources = [
'plugin.c',
'vulkan-compute-filter.c',
'vulkan-compute-source.c',
'vulkan-compute-utils.c',
'vulkan-utils.c',
'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')