meson: Add -DVK_NO_PROTOTYPES compile args on volk

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:01 -07:00 committed by mborgerson
parent f392869cab
commit 0d0dbc2886
1 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
if vulkan.found()
libvma = static_library('vma', sources: 'vma.cc', include_directories: 'VulkanMemoryAllocator/include', dependencies: vulkan)
vma = declare_dependency(include_directories: 'VulkanMemoryAllocator/include', link_with: libvma)
libvolk = static_library('volk', sources: 'volk/volk.c', c_args: ['-DVK_NO_PROTOTYPES'], dependencies: vulkan)
volk = declare_dependency(compile_args: ['-DVK_NO_PROTOTYPES'], include_directories: 'volk', link_with: libvolk, dependencies: vulkan)
libvolk = static_library('volk', sources: 'volk/volk.c', dependencies: vulkan)
volk = declare_dependency(include_directories: 'volk', link_with: libvolk, dependencies: vulkan)
libvma = static_library('vma', sources: 'vma.cc', include_directories: 'VulkanMemoryAllocator/include', dependencies: [vulkan, volk])
vma = declare_dependency(include_directories: 'VulkanMemoryAllocator/include', link_with: libvma)
libspirv_reflect = static_library('spirv_reflect', sources: 'SPIRV-Reflect/spirv_reflect.c', dependencies: vulkan)
spirv_reflect = declare_dependency(include_directories: 'SPIRV-Reflect', link_with: libspirv_reflect, dependencies: vulkan)