diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-22 11:13:16 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-22 11:13:16 +0200 |
commit | 9c8d9a406f119698aa5a7ba7df8ba396828550f7 (patch) | |
tree | 576073b5f22de4f14de3152ed0a94ae8a3fdc1b6 /src/block | |
parent | bb27b3fa157cf684750d4dd9a9c87619734988a1 (diff) | |
download | gnunet-9c8d9a406f119698aa5a7ba7df8ba396828550f7.tar.gz gnunet-9c8d9a406f119698aa5a7ba7df8ba396828550f7.zip |
BUILD: Some libgnunet considerations
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/meson.build | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/src/block/meson.build b/src/block/meson.build index aae7445ee..9cb66552c 100644 --- a/src/block/meson.build +++ b/src/block/meson.build | |||
@@ -1,23 +1,38 @@ | |||
1 | libgnunetblock_src = ['block.c'] | 1 | libgnunetblock_src = ['block.c'] |
2 | libgnunetblockgroup_src = ['bg_bf.c'] | 2 | libgnunetblockgroup_src = ['bg_bf.c'] |
3 | 3 | ||
4 | if get_option('monolith') == false | 4 | if get_option('monolith') |
5 | libgnunetblock = library('gnunetblock', | ||
6 | libgnunetblock_src, | ||
7 | dependencies: libgnunetutil_dep, | ||
8 | include_directories: [incdir, configuration_inc], | ||
9 | install: true, | ||
10 | install_dir: get_option('libdir')) | ||
11 | libgnunetblock_dep = declare_dependency(link_with : libgnunetblock) | ||
12 | libgnunetblockgroup = library('gnunetblockgroup', | ||
13 | libgnunetblockgroup_src, | ||
14 | dependencies: [libgnunetutil_dep, libgnunetblock_dep], | ||
15 | include_directories: [incdir, configuration_inc], | ||
16 | install: true, | ||
17 | install_dir: get_option('libdir')) | ||
18 | libgnunetblockgroup_dep = declare_dependency(link_with : libgnunetblockgroup) | ||
19 | else | ||
20 | foreach p : libgnunetblock_src + libgnunetblockgroup_src | 5 | foreach p : libgnunetblock_src + libgnunetblockgroup_src |
21 | gnunet_src += 'block/' + p | 6 | gnunet_src += 'block/' + p |
22 | endforeach | 7 | endforeach |
8 | subdir_done() | ||
23 | endif | 9 | endif |
10 | |||
11 | libgnunetblock = library('gnunetblock', | ||
12 | libgnunetblock_src, | ||
13 | dependencies: libgnunetutil_dep, | ||
14 | include_directories: [incdir, configuration_inc], | ||
15 | install: true, | ||
16 | install_dir: get_option('libdir')) | ||
17 | libgnunetblock_dep = declare_dependency(link_with : libgnunetblock) | ||
18 | libgnunetblockgroup = library('gnunetblockgroup', | ||
19 | libgnunetblockgroup_src, | ||
20 | dependencies: [libgnunetutil_dep, libgnunetblock_dep], | ||
21 | include_directories: [incdir, configuration_inc], | ||
22 | install: true, | ||
23 | install_dir: get_option('libdir')) | ||
24 | libgnunetblockgroup_dep = declare_dependency(link_with : libgnunetblockgroup) | ||
25 | plugin_dep = [libgnunetutil_dep, libgnunetblock_dep, libgnunetblockgroup_dep] | ||
26 | shared_module('gnunet_plugin_block_test', | ||
27 | ['plugin_block_test.c'], | ||
28 | dependencies: plugin_dep, | ||
29 | include_directories: [incdir, configuration_inc], | ||
30 | install: true, | ||
31 | install_dir: get_option('libdir')) | ||
32 | shared_module('gnunet_plugin_block_template', | ||
33 | ['plugin_block_template.c'], | ||
34 | dependencies: plugin_dep, | ||
35 | include_directories: [incdir, configuration_inc], | ||
36 | install: true, | ||
37 | install_dir: get_option('libdir')) | ||
38 | |||