diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-23 09:56:57 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-23 09:56:57 +0200 |
commit | 5162b6584b14d6963b71a7e0312f3eabade6be70 (patch) | |
tree | 9dc38cef3ae1d7f679a1ae9aa3761f1a45a88b2d /src/dht | |
parent | 5a6ea6b45ff9c9398cf4d532b55889c3ffbaa1e7 (diff) | |
download | gnunet-5162b6584b14d6963b71a7e0312f3eabade6be70.tar.gz gnunet-5162b6584b14d6963b71a7e0312f3eabade6be70.zip |
BUILD: More pkg-config and soversions
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/meson.build | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/src/dht/meson.build b/src/dht/meson.build index 686d8e7ed..8b595a58f 100644 --- a/src/dht/meson.build +++ b/src/dht/meson.build | |||
@@ -1,7 +1,5 @@ | |||
1 | libgnunetdht_src = ['dht_api.c'] | 1 | libgnunetdht_src = ['dht_api.c'] |
2 | 2 | ||
3 | libgnunetpluginblockdht_src = ['plugin_block_dht.c'] | ||
4 | |||
5 | gnunetservicedht_src = ['gnunet-service-dht.c', | 3 | gnunetservicedht_src = ['gnunet-service-dht.c', |
6 | 'gnunet-service-dht_datacache.c', | 4 | 'gnunet-service-dht_datacache.c', |
7 | 'gnunet-service-dht_neighbours.c', | 5 | 'gnunet-service-dht_neighbours.c', |
@@ -13,32 +11,36 @@ configure_file(input : 'dht.conf.in', | |||
13 | install: true, | 11 | install: true, |
14 | install_dir: pkgcfgdir) | 12 | install_dir: pkgcfgdir) |
15 | 13 | ||
16 | if get_option('monolith') == false | 14 | if get_option('monolith') |
17 | libgnunetdht = library('gnunetdht', | ||
18 | libgnunetdht_src, | ||
19 | dependencies: libgnunetutil_dep, | ||
20 | include_directories: [incdir, configuration_inc]) | ||
21 | libgnunetdht_dep = declare_dependency(link_with : libgnunetdht) | ||
22 | libgnunetpluginblockdht = library('gnunet_plugin_block_dht', | ||
23 | libgnunetpluginblockdht_src, | ||
24 | dependencies: [libgnunetutil_dep, | ||
25 | libgnunethello_dep, | ||
26 | libgnunetblock_dep, | ||
27 | libgnunetblockgroup_dep], | ||
28 | include_directories: [incdir, configuration_inc]) | ||
29 | libgnunetpluginblockdht_dep = declare_dependency(link_with : libgnunetpluginblockdht) | ||
30 | executable ('gnunet-service-dht', | ||
31 | gnunetservicedht_src, | ||
32 | dependencies: [libgnunetdht_dep, libgnunetutil_dep, | ||
33 | libgnunetblock_dep, | ||
34 | m_dep, | ||
35 | libgnunetdatacache_dep, | ||
36 | libgnunetstatistics_dep, | ||
37 | libgnunetblockgroup_dep, | ||
38 | libgnunethello_dep], | ||
39 | include_directories: [incdir, configuration_inc]) | ||
40 | else | ||
41 | foreach p : libgnunetdht_src + gnunetservicedht_src | 15 | foreach p : libgnunetdht_src + gnunetservicedht_src |
42 | gnunet_src += 'dht/' + p | 16 | gnunet_src += 'dht/' + p |
43 | endforeach | 17 | endforeach |
44 | endif | 18 | endif |
19 | |||
20 | libgnunetdht = library('gnunetdht', | ||
21 | libgnunetdht_src, | ||
22 | soversion: '4.0.0', | ||
23 | dependencies: libgnunetutil_dep, | ||
24 | include_directories: [incdir, configuration_inc]) | ||
25 | libgnunetdht_dep = declare_dependency(link_with : libgnunetdht) | ||
26 | pkg.generate(libgnunetdht, url: 'https://www.gnunet.org', | ||
27 | description : 'Provides API for the R5N distributed hash table') | ||
28 | |||
29 | shared_module('gnunet_plugin_block_dht', | ||
30 | ['plugin_block_dht.c'], | ||
31 | dependencies: [libgnunetutil_dep, | ||
32 | libgnunethello_dep, | ||
33 | libgnunetblock_dep, | ||
34 | libgnunetblockgroup_dep], | ||
35 | include_directories: [incdir, configuration_inc]) | ||
36 | |||
37 | executable ('gnunet-service-dht', | ||
38 | gnunetservicedht_src, | ||
39 | dependencies: [libgnunetdht_dep, libgnunetutil_dep, | ||
40 | libgnunetblock_dep, | ||
41 | m_dep, | ||
42 | libgnunetdatacache_dep, | ||
43 | libgnunetstatistics_dep, | ||
44 | libgnunetblockgroup_dep, | ||
45 | libgnunethello_dep], | ||
46 | include_directories: [incdir, configuration_inc]) | ||