diff options
Diffstat (limited to 'src/consensus/meson.build')
-rw-r--r-- | src/consensus/meson.build | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/consensus/meson.build b/src/consensus/meson.build deleted file mode 100644 index b66acf2b9..000000000 --- a/src/consensus/meson.build +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | libgnunetconsensus_src = ['consensus_api.c'] | ||
2 | |||
3 | gnunetserviceconsensus_src = ['gnunet-service-consensus.c'] | ||
4 | |||
5 | configure_file(input : 'consensus.conf.in', | ||
6 | output : 'consensus.conf', | ||
7 | configuration : cdata, | ||
8 | install: true, | ||
9 | install_dir: pkgcfgdir) | ||
10 | |||
11 | # FIXME needs new seti/setu | ||
12 | if get_option('monolith') | ||
13 | #foreach p : libgnunetconsensus_src + gnunetserviceconsensus_src | ||
14 | # gnunet_src += 'consensus/' + p | ||
15 | #endforeach | ||
16 | subdir_done() | ||
17 | endif | ||
18 | |||
19 | libgnunetconsensus = shared_library('gnunetconsensus', | ||
20 | libgnunetconsensus_src, | ||
21 | soversion: '0', | ||
22 | version: '0.0.0', | ||
23 | dependencies: libgnunetutil_dep, | ||
24 | include_directories: [incdir, configuration_inc], | ||
25 | install: true, | ||
26 | install_dir: get_option('libdir')) | ||
27 | pkg.generate(libgnunetconsensus, url: 'https://www.gnunet.org', | ||
28 | description : 'Provides API for accessing the consensus service') | ||
29 | libgnunetarm_dep = declare_dependency(link_with : libgnunetarm) | ||
30 | libgnunetconsensus_dep = declare_dependency(link_with : libgnunetconsensus) | ||
31 | |||
32 | shared_module('gnunet_plugin_block_consensus', | ||
33 | ['plugin_block_consensus.c'], | ||
34 | dependencies: [libgnunetutil_dep, | ||
35 | libgnunetblock_dep], | ||
36 | include_directories: [incdir, configuration_inc], | ||
37 | install:true, | ||
38 | install_dir: get_option('libdir')/'gnunet') | ||
39 | |||
40 | executable ('gnunet-service-consensus', | ||
41 | gnunetserviceconsensus_src, | ||
42 | dependencies: [libgnunetconsensus_dep, | ||
43 | libgnunetutil_dep, | ||
44 | libgnunetset_dep, | ||
45 | libgnunetstatistics_dep], | ||
46 | include_directories: [incdir, configuration_inc], | ||
47 | install: true, | ||
48 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
49 | |||
50 | # FIXME do we need evil stuff and ENABLE_MALICIOUS? | ||
51 | |||
52 | testconsensusapi = executable ('test_consensus_api', | ||
53 | ['test_consensus_api.c'], | ||
54 | dependencies: [libgnunetconsensus_dep, | ||
55 | libgnunetutil_dep, | ||
56 | libgnunettesting_dep], | ||
57 | include_directories: [incdir, configuration_inc], | ||
58 | install: false) | ||
59 | |||
60 | configure_file(input : 'test_consensus.conf', | ||
61 | output : 'test_consensus.conf', | ||
62 | configuration : cdata, | ||
63 | install: false) | ||
64 | |||
65 | test('test_consensus_api', testconsensusapi, | ||
66 | workdir: meson.current_build_dir(), | ||
67 | suite: 'consensus') | ||