diff options
Diffstat (limited to 'src/service/cadet/meson.build')
-rw-r--r-- | src/service/cadet/meson.build | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/service/cadet/meson.build b/src/service/cadet/meson.build new file mode 100644 index 000000000..0f465e0e2 --- /dev/null +++ b/src/service/cadet/meson.build | |||
@@ -0,0 +1,72 @@ | |||
1 | libgnunetcadet_src = ['cadet_api.c', | ||
2 | 'cadet_api_drop_message.c', | ||
3 | 'cadet_api_get_channel.c', | ||
4 | 'cadet_api_get_path.c', | ||
5 | 'cadet_api_list_peers.c', | ||
6 | 'cadet_api_list_tunnels.c', | ||
7 | 'cadet_api_helper.c'] | ||
8 | |||
9 | gnunetcadet_src = ['gnunet-cadet.c'] | ||
10 | gnunetservicecadet_src = ['gnunet-service-cadet.c', | ||
11 | 'gnunet-service-cadet_channel.c', | ||
12 | 'gnunet-service-cadet_connection.c', | ||
13 | 'gnunet-service-cadet_core.c', | ||
14 | 'gnunet-service-cadet_dht.c', | ||
15 | 'gnunet-service-cadet_hello.c', | ||
16 | 'gnunet-service-cadet_tunnels.c', | ||
17 | 'gnunet-service-cadet_paths.c', | ||
18 | 'gnunet-service-cadet_peer.c'] | ||
19 | |||
20 | configure_file(input : 'cadet.conf.in', | ||
21 | output : 'cadet.conf', | ||
22 | configuration : cdata, | ||
23 | install: true, | ||
24 | install_dir: pkgcfgdir) | ||
25 | |||
26 | if get_option('monolith') | ||
27 | foreach p : libgnunetcadet_src + gnunetservicecadet_src | ||
28 | gnunet_src += 'cadet/' + p | ||
29 | endforeach | ||
30 | endif | ||
31 | |||
32 | libgnunetcadet = library('gnunetcadet', | ||
33 | libgnunetcadet_src, | ||
34 | dependencies: libgnunetutil_dep, | ||
35 | include_directories: [incdir, configuration_inc], | ||
36 | install: true, | ||
37 | soversion: '7', | ||
38 | version: '7.0.0', | ||
39 | install_dir: get_option('libdir')) | ||
40 | libgnunetcadet_dep = declare_dependency(link_with : libgnunetcadet) | ||
41 | pkg.generate(libgnunetcadet, url: 'https://www.gnunet.org', | ||
42 | description : 'API for multicast and multi-hop routing between GNUnet peers') | ||
43 | |||
44 | executable ('gnunet-service-cadet', | ||
45 | gnunetservicecadet_src, | ||
46 | dependencies: [libgnunetcadet_dep, | ||
47 | libgnunetutil_dep, | ||
48 | m_dep, | ||
49 | libgnunetcore_dep, | ||
50 | libgnunetdht_dep, | ||
51 | libgnunetstatistics_dep, | ||
52 | libgnunettransportapplication_dep, | ||
53 | libgnunetpeerstore_dep, | ||
54 | libgnunethello_dep, | ||
55 | libgnunetblock_dep], | ||
56 | include_directories: [incdir, configuration_inc], | ||
57 | install: true, | ||
58 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
59 | |||
60 | testcadetlocalmq = executable ('test_cadet_local_mq', | ||
61 | ['test_cadet_local_mq.c'], | ||
62 | dependencies: [libgnunetcadet_dep, | ||
63 | libgnunettesting_dep, | ||
64 | libgnunetutil_dep], | ||
65 | include_directories: [incdir, configuration_inc], | ||
66 | install: false) | ||
67 | configure_file(input : 'test_cadet.conf', | ||
68 | output : 'test_cadet.conf', | ||
69 | configuration : cdata, | ||
70 | install: false) | ||
71 | test('test_cadet_local_mq', testcadetlocalmq, workdir: meson.current_build_dir(), suite: 'cadet') | ||
72 | |||