mirror of https://github.com/xemu-project/xemu.git
29 lines
849 B
Meson
29 lines
849 B
Meson
if vulkan.found()
|
|
|
|
debug_vma = false
|
|
|
|
vma_defns = [
|
|
'-DVMA_STATIC_VULKAN_FUNCTIONS=0',
|
|
'-DVMA_DYNAMIC_VULKAN_FUNCTIONS=0',
|
|
]
|
|
|
|
if debug_vma
|
|
vma_defns += [
|
|
'-DVMA_DEBUG_MARGIN=16',
|
|
'-DVMA_DEBUG_DETECT_CORRUPTION=1',
|
|
'-DVMA_DEBUG_MIN_BUFFER_IMAGE_GRANULARITY=256',
|
|
]
|
|
endif
|
|
|
|
vma_subproj = cmake.subproject('VulkanMemoryAllocator')
|
|
libvma = static_library('vma',
|
|
sources: 'vma.cc',
|
|
cpp_args: vma_defns,
|
|
include_directories: vma_subproj.include_directories('VulkanMemoryAllocator'),
|
|
dependencies: [vulkan, volk])
|
|
vma = declare_dependency(include_directories: vma_subproj.include_directories('VulkanMemoryAllocator'),
|
|
link_with: libvma,
|
|
dependencies: vulkan)
|
|
|
|
endif
|