Debian Codegraph @

test cases/frameworks/18 vulkan/meson.build

raw
1 project('vulkan test', 'c')
2
3 method = get_option('method')
4
5 vulkan_dep = dependency('vulkan', required : false, method : method)
6 if not vulkan_dep.found()
7 error('MESON_SKIP_TEST: vulkan not found.')
8 endif
9
10 e = executable('vulkanprog', 'vulkanprog.c', dependencies : vulkan_dep)
11
12 test('vulkantest', e)
13
14 # Check we can apply a version constraint
15 dependency('vulkan', version: '>=@0@'.format(vulkan_dep.version()))