-
Notifications
You must be signed in to change notification settings - Fork 5
/
meson.build
52 lines (45 loc) · 1015 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
42
43
44
45
46
47
48
49
50
51
52
project(
'lsvd-rbd',
['c', 'cpp'],
version: '0.1',
default_options: [
'cpp_std=c++23',
'warning_level=2',
'b_colorout=always',
# 'b_sanitize=address,undefined',
'b_lto=true',
'b_thinlto_cache=true',
],
)
add_project_arguments('-fPIC', language: 'cpp')
add_project_arguments('-Wno-unused-parameter', language: 'cpp')
if get_option('buildtype') == 'debug'
add_project_arguments('-fno-inline', language: 'cpp')
add_project_arguments('-DLOGLV=0', language: 'cpp')
endif
subdir('src')
lsvd_ar = static_library('lsvd', lsvd_src, dependencies: lsvd_deps)
shared_library('lsvd', lsvd_src, dependencies: lsvd_deps)
executable(
'lsvd',
spdk_fe,
dependencies: lsvd_deps + [dependency('_spdk')],
)
executable(
'lsvd_tgt',
lsvd_tgt,
dependencies: lsvd_deps + [dependency('_spdk')],
)
executable(
'imgtool',
['src/imgtool.cc'],
link_whole: lsvd_ar,
dependencies: lsvd_deps,
)
executable(
'thick-image',
['src/thick-image.cc'],
link_whole: lsvd_ar,
dependencies: lsvd_deps,
)
subdir('test')