diff options
Diffstat (limited to 'src/consensus/meson.build')
-rw-r--r-- | src/consensus/meson.build | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/consensus/meson.build b/src/consensus/meson.build index b67017ab3..b66acf2b9 100644 --- a/src/consensus/meson.build +++ b/src/consensus/meson.build | |||
@@ -8,10 +8,11 @@ configure_file(input : 'consensus.conf.in', | |||
8 | install: true, | 8 | install: true, |
9 | install_dir: pkgcfgdir) | 9 | install_dir: pkgcfgdir) |
10 | 10 | ||
11 | # FIXME needs new seti/setu | ||
11 | if get_option('monolith') | 12 | if get_option('monolith') |
12 | foreach p : libgnunetconsensus_src + gnunetserviceconsensus_src | 13 | #foreach p : libgnunetconsensus_src + gnunetserviceconsensus_src |
13 | gnunet_src += 'consensus/' + p | 14 | # gnunet_src += 'consensus/' + p |
14 | endforeach | 15 | #endforeach |
15 | subdir_done() | 16 | subdir_done() |
16 | endif | 17 | endif |
17 | 18 | ||
@@ -46,3 +47,21 @@ executable ('gnunet-service-consensus', | |||
46 | install: true, | 47 | install: true, |
47 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | 48 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') |
48 | 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') | ||