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
61
62
63
64
65
66
67
68
69
70
71
|
libgnunetarm_src = ['arm_api.c',
'arm_monitor_api.c']
gnunetservicearm_src = ['gnunet-service-arm.c']
gnunetarm_src = ['gnunet-arm.c']
testarmapi_src = ['test_arm_api.c']
testexpbo_src = ['test_exponential_backoff.c']
testgnunetservice_src = ['test_gnunet_service_arm.c']
configure_file(input : 'arm.conf.in',
output : 'arm.conf',
configuration : cdata,
install: true,
install_dir: pkgcfgdir)
if get_option('monolith')
foreach p : libgnunetarm_src + gnunetservicearm_src
gnunet_src += 'arm/' + p
endforeach
subdir_done()
endif
libgnunetarm = library('gnunetarm',
libgnunetarm_src,
dependencies: libgnunetutil_dep,
version: '2.0.0',
soversion: '2',
include_directories: [incdir, configuration_inc],
install: true,
install_dir: get_option('libdir'))
pkg.generate(libgnunetarm, url: 'https://www.gnunet.org',
description : 'Provides API for accessing the Automated Restart Manager service')
libgnunetarm_dep = declare_dependency(link_with : libgnunetarm)
executable ('gnunet-arm',
gnunetarm_src,
dependencies: [libgnunetarm_dep, libgnunetutil_dep],
include_directories: [incdir, configuration_inc],
install: true,
install_dir: get_option('bindir'))
executable ('gnunet-service-arm',
gnunetservicearm_src,
dependencies: [libgnunetarm_dep, libgnunetutil_dep],
include_directories: [incdir, configuration_inc],
install: true,
install_dir: get_option('libdir') / 'gnunet' / 'libexec')
testarmapi = executable ('test_arm_api',
testarmapi_src,
dependencies: [libgnunetarm_dep, libgnunetutil_dep],
include_directories: [incdir, configuration_inc],
install: false)
testexpbo = executable ('test_exponential_backoff',
testexpbo_src,
dependencies: [libgnunetarm_dep, libgnunetutil_dep],
include_directories: [incdir, configuration_inc],
install: false)
testgnunetservice = executable ('test_gnunet_service',
testgnunetservice_src,
dependencies: [libgnunetarm_dep, libgnunetutil_dep],
include_directories: [incdir, configuration_inc],
install: false)
configure_file(copy: true,
input: 'test_arm_api_data.conf',
output: 'test_arm_api_data.conf')
test('test_arm_api', testarmapi, workdir: meson.current_source_dir(),
suite: 'arm')
# FIXME this test currently times out/fails.
#test('test_exponential_backoff', testexpbo, workdir: meson.current_source_dir())
test('test_gnunet_service', testgnunetservice, workdir: meson.current_source_dir(),
suite: 'arm')
|