diff options
Diffstat (limited to 'src/cadet/meson.build')
-rw-r--r-- | src/cadet/meson.build | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/cadet/meson.build b/src/cadet/meson.build new file mode 100644 index 000000000..91587590d --- /dev/null +++ b/src/cadet/meson.build | |||
@@ -0,0 +1,75 @@ | |||
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-cadet', | ||
45 | gnunetservicecadet_src, | ||
46 | dependencies: [libgnunetcadet_dep, | ||
47 | libgnunetutil_dep, | ||
48 | libgnunetcore_dep, | ||
49 | libgnunetdht_dep, | ||
50 | m_dep, | ||
51 | libgnunetstatistics_dep, | ||
52 | libgnunetpeerinfo_dep, | ||
53 | libgnunetats_dep, | ||
54 | libgnunettransport_dep, | ||
55 | libgnunethello_dep], | ||
56 | include_directories: [incdir, configuration_inc], | ||
57 | install: true, | ||
58 | install_dir: get_option('bindir')) | ||
59 | executable ('gnunet-service-cadet', | ||
60 | gnunetservicecadet_src, | ||
61 | dependencies: [libgnunetcadet_dep, | ||
62 | libgnunetutil_dep, | ||
63 | libgnunetats_dep, | ||
64 | m_dep, | ||
65 | libgnunetcore_dep, | ||
66 | libgnunetdht_dep, | ||
67 | libgnunetstatistics_dep, | ||
68 | libgnunettransport_dep, | ||
69 | libgnunetpeerinfo_dep, | ||
70 | libgnunethello_dep, | ||
71 | libgnunetblock_dep], | ||
72 | include_directories: [incdir, configuration_inc], | ||
73 | install: true, | ||
74 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
75 | |||