meson.build 366 B

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