-
Notifications
You must be signed in to change notification settings - Fork 18
/
meson.build
41 lines (34 loc) · 871 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
project(
'vkdevicechooser',
'cpp',
version: '1',
license: 'MIT',
)
cpp = meson.get_compiler('cpp')
if not cpp.has_header('vulkan/vulkan.h')
error('Vulkan development files not present (vulkan/vulkan.h)')
endif
if not cpp.has_header('vulkan/vk_layer.h')
error('Vulkan development files not present (vulkan/vk_layer.h)')
endif
if not cpp.has_header('vulkan/vk_layer_dispatch_table.h')
error('Vulkan development files not present (vulkan/vk_layer_dispatch_table.h)')
endif
libdir = get_option('libdir')
datadir = get_option('datadir')
vulkanlayerdir = join_paths(datadir, 'vulkan', 'implicit_layer.d')
lib_src = files(
'layer.cpp',
)
json_src = files(
'vkdevicechooser.json',
)
vkdevicechooser_lib = library(
'vkdevicechooser',
lib_src,
install: libdir,
)
install_data(
json_src,
install_dir: vulkanlayerdir,
)