diff options
Diffstat (limited to 'src/dht/meson.build')
-rw-r--r-- | src/dht/meson.build | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/src/dht/meson.build b/src/dht/meson.build new file mode 100644 index 000000000..f42ae354c --- /dev/null +++ b/src/dht/meson.build | |||
@@ -0,0 +1,90 @@ | |||
1 | libgnunetdht_src = ['dht_api.c'] | ||
2 | |||
3 | gnunetservicedht_src = ['gnunet-service-dht.c', | ||
4 | 'gnunet-service-dht_datacache.c', | ||
5 | 'gnunet-service-dht_neighbours.c', | ||
6 | 'gnunet-service-dht_routing.c'] | ||
7 | |||
8 | configure_file(input : 'dht.conf.in', | ||
9 | output : 'dht.conf', | ||
10 | configuration : cdata, | ||
11 | install: true, | ||
12 | install_dir: pkgcfgdir) | ||
13 | |||
14 | if get_option('monolith') | ||
15 | foreach p : libgnunetdht_src + gnunetservicedht_src | ||
16 | gnunet_src += 'dht/' + p | ||
17 | endforeach | ||
18 | endif | ||
19 | |||
20 | libgnunetdht = library('gnunetdht', | ||
21 | libgnunetdht_src, | ||
22 | soversion: '4', | ||
23 | version: '4.0.0', | ||
24 | dependencies: libgnunetutil_dep, | ||
25 | include_directories: [incdir, configuration_inc], | ||
26 | install: true, | ||
27 | install_dir: get_option('libdir')) | ||
28 | libgnunetdht_dep = declare_dependency(link_with : libgnunetdht) | ||
29 | pkg.generate(libgnunetdht, url: 'https://www.gnunet.org', | ||
30 | description : 'Provides API for the R5N distributed hash table') | ||
31 | |||
32 | shared_module('gnunet_plugin_block_dht', | ||
33 | ['plugin_block_dht.c'], | ||
34 | dependencies: [libgnunetutil_dep, | ||
35 | libgnunethello_dep, | ||
36 | libgnunetblock_dep, | ||
37 | libgnunetblockgroup_dep], | ||
38 | include_directories: [incdir, configuration_inc], | ||
39 | install:true, | ||
40 | install_dir: get_option('libdir')/'gnunet') | ||
41 | |||
42 | executable ('gnunet-dht', | ||
43 | gnunetservicedht_src, | ||
44 | dependencies: [libgnunetdht_dep, libgnunetutil_dep, | ||
45 | libgnunetblock_dep, | ||
46 | m_dep, | ||
47 | libgnunetdatacache_dep, | ||
48 | libgnunetstatistics_dep, | ||
49 | libgnunetblockgroup_dep, | ||
50 | libgnunethello_dep], | ||
51 | include_directories: [incdir, configuration_inc], | ||
52 | install: true, | ||
53 | install_dir: get_option('bindir')) | ||
54 | executable ('gnunet-dht-put', | ||
55 | ['gnunet-dht-put.c'], | ||
56 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
57 | include_directories: [incdir, configuration_inc], | ||
58 | install: true, | ||
59 | install_dir: get_option('bindir')) | ||
60 | executable ('gnunet-dht-get', | ||
61 | ['gnunet-dht-get.c'], | ||
62 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
63 | include_directories: [incdir, configuration_inc], | ||
64 | install: true, | ||
65 | install_dir: get_option('bindir')) | ||
66 | executable ('gnunet-dht-monitor', | ||
67 | ['gnunet-dht-monitor.c'], | ||
68 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
69 | include_directories: [incdir, configuration_inc], | ||
70 | install: true, | ||
71 | install_dir: get_option('bindir')) | ||
72 | executable ('gnunet-dht-hello', | ||
73 | ['gnunet-dht-hello.c'], | ||
74 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
75 | include_directories: [incdir, configuration_inc], | ||
76 | install: true, | ||
77 | install_dir: get_option('bindir')) | ||
78 | executable ('gnunet-service-dht', | ||
79 | gnunetservicedht_src, | ||
80 | dependencies: [libgnunetdht_dep, libgnunetutil_dep, | ||
81 | libgnunetblock_dep, | ||
82 | m_dep, | ||
83 | libgnunetdatacache_dep, | ||
84 | libgnunetstatistics_dep, | ||
85 | libgnunetblockgroup_dep, | ||
86 | libgnunethello_dep], | ||
87 | include_directories: [incdir, configuration_inc], | ||
88 | install: true, | ||
89 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
90 | |||