-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
40 lines (31 loc) · 1.15 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
project(
'corecollector',
'd',
license: 'GPL-3.0-or-later',
meson_version: '>=0.54',
version: '0.3.5',
)
project_soversion = 0
d_mod_version = []
src_inc = include_directories('source')
prefix = get_option('prefix')
libexec_dir = join_paths(prefix, get_option('libexecdir'), 'corecollector')
varlib_dir = join_paths(prefix, get_option('localstatedir'), 'lib', 'corecollector')
sysconf_dir = join_paths(prefix, get_option('sysconfdir'), 'corecollector')
sysctl_dir = join_paths(prefix, get_option('libdir'), 'sysctl.d')
include_dir = join_paths(prefix, get_option('includedir'), 'd', 'corecollector')
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
if vcs_tag == ''
corecollector_version = meson.project_version()
else
corecollector_version = meson.project_version() + '-@0@'.format (vcs_tag)
endif
compiler_id = meson.get_compiler('d').get_id()
meson_version = meson.version()
gdb = find_program('gdb', native: true, required: false)
if not gdb.found()
warning('Couldn\'t find gdb! Please be mindful that it\'s required for tests and during runtime.')
endif
subdir('source')
subdir('data')
subdir('tests')