diff options
Diffstat (limited to 'src/set/meson.build')
-rw-r--r-- | src/set/meson.build | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/set/meson.build b/src/set/meson.build new file mode 100644 index 000000000..51782f446 --- /dev/null +++ b/src/set/meson.build | |||
@@ -0,0 +1,52 @@ | |||
1 | libgnunetset_src = ['set_api.c'] | ||
2 | |||
3 | gnunetserviceset_src = ['gnunet-service-set.c', | ||
4 | 'gnunet-service-set_union.c', | ||
5 | 'gnunet-service-set_intersection.c', | ||
6 | 'gnunet-service-set_union_strata_estimator.c', | ||
7 | 'ibf.c'] | ||
8 | |||
9 | configure_file(input : 'set.conf.in', | ||
10 | output : 'set.conf', | ||
11 | configuration : cdata, | ||
12 | install: true, | ||
13 | install_dir: pkgcfgdir) | ||
14 | |||
15 | |||
16 | if get_option('monolith') | ||
17 | foreach p : libgnunetset_src + gnunetserviceset_src | ||
18 | gnunet_src += 'set/' + p | ||
19 | endforeach | ||
20 | subdir_done() | ||
21 | endif | ||
22 | |||
23 | libgnunetset = library('gnunetset', | ||
24 | libgnunetset_src, | ||
25 | soversion: '0', | ||
26 | version: '0.0.0', | ||
27 | dependencies: libgnunetutil_dep, | ||
28 | include_directories: [incdir, configuration_inc], | ||
29 | install: true, | ||
30 | install_dir: get_option('libdir')) | ||
31 | pkg.generate(libgnunetset, url: 'https://www.gnunet.org', | ||
32 | description : 'Provides API for accessing the set service') | ||
33 | libgnunetset_dep = declare_dependency(link_with : libgnunetset) | ||
34 | shared_module('gnunet_plugin_block_set_test', | ||
35 | ['plugin_block_set_test.c'], | ||
36 | dependencies: libgnunetutil_dep, | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install:true, | ||
39 | install_dir: get_option('libdir')/'gnunet') | ||
40 | executable ('gnunet-service-set', | ||
41 | gnunetserviceset_src, | ||
42 | dependencies: [libgnunetset_dep, | ||
43 | libgnunetutil_dep, | ||
44 | m_dep, | ||
45 | libgnunetstatistics_dep, | ||
46 | libgnunetcore_dep, | ||
47 | libgnunetcadet_dep, | ||
48 | libgnunetblock_dep], | ||
49 | include_directories: [incdir, configuration_inc], | ||
50 | install: true, | ||
51 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
52 | |||