-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
60 lines (54 loc) · 919 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
53
54
55
56
57
58
59
60
project('mbidled', 'c',
license: 'UNLICENSE',
default_options: [
'c_std=c11',
'warning_level=3',
],
)
add_project_arguments([
'-D_GNU_SOURCE',
], language: 'c')
cc = meson.get_compiler('c')
libev_dep = dependency('libev', required: false)
if not libev_dep.found()
libev_dep = cc.find_library('libev')
endif
mbidled_exe = executable('mbidled',
'mbidled.c',
'channel.c',
'imap.c',
'maildir.c',
'mbconfig.c',
vcs_tag(
command: [
'git',
'log',
'-1',
'--date=short',
'--format=%h %cd',
],
input: 'version.h.in',
output: 'version.h',
),
dependencies: [
dependency('openssl'),
libev_dep,
],
install: true,
)
install_man('mbidled.1')
test(
'e2e',
find_program('make'),
workdir: meson.source_root() / 'test',
env: [
'MBIDLED_PATH=' + meson.build_root()
],
depends: mbidled_exe,
)
test(
'lint',
find_program('make'),
workdir: meson.source_root(),
args: ['lint'],
)