-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
49 lines (38 loc) · 1.04 KB
/
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
project('unvme-cli', 'c',
version: '0.1',
license: 'GPL-2.0-or-later',
)
static = get_option('static')
buildtype = get_option('buildtype')
args = []
link_args = []
if static
link_args += ['-static']
endif
if buildtype == 'debug'
args += ['-pg']
link_args += ['-pg']
endif
add_project_arguments(args, language: 'c')
add_project_link_arguments(link_args, language: 'c')
vfn_lib = dependency('libvfn', version: '>=5.1.0', static: static)
nvme_lib = dependency('libnvme', version: '>=1.8.0', static: static)
subdir('ccan')
subdir('lib')
executable(
'unvme',
['unvmed.c', 'unvme.c', 'unvmed-cmds.c', 'unvmed-print.c', 'unvmed-file.c',
'unvme-cmds.c',],
dependencies: [vfn_lib, nvme_lib, unvmed_dep],
link_with: [ccan_lib],
include_directories: [ccan_inc, libunvmed_inc],
install: true,
install_dir: get_option('bindir'),
)
conf = configuration_data()
# Set the unvme-cli version
conf.set('UNVME_VERSION', '"' + meson.project_version() + '"')
configure_file(
output: 'config.h',
configuration: conf
)