diff options
Diffstat (limited to 'src/statistics/meson.build')
-rw-r--r-- | src/statistics/meson.build | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/src/statistics/meson.build b/src/statistics/meson.build index 86c3b6eb9..446523416 100644 --- a/src/statistics/meson.build +++ b/src/statistics/meson.build | |||
@@ -9,18 +9,33 @@ configure_file(input : 'statistics.conf.in', | |||
9 | install_dir: pkgcfgdir) | 9 | install_dir: pkgcfgdir) |
10 | 10 | ||
11 | 11 | ||
12 | if get_option('monolith') == false | 12 | if get_option('monolith') |
13 | libgnunetstatistics = library('gnunetstatistics', | ||
14 | libgnunetstatistics_src, | ||
15 | dependencies: libgnunetutil_dep, | ||
16 | include_directories: [incdir, configuration_inc]) | ||
17 | libgnunetstatistics_dep = declare_dependency(link_with : libgnunetstatistics) | ||
18 | executable ('gnunet-service-statistics', | ||
19 | gnunetservicestatistics_src, | ||
20 | dependencies: [libgnunetstatistics_dep, libgnunetutil_dep], | ||
21 | include_directories: [incdir, configuration_inc]) | ||
22 | else | ||
23 | foreach p : libgnunetstatistics_src + gnunetservicestatistics_src | 13 | foreach p : libgnunetstatistics_src + gnunetservicestatistics_src |
24 | gnunet_src += 'statistics/' + p | 14 | gnunet_src += 'statistics/' + p |
25 | endforeach | 15 | endforeach |
16 | subdir_done() | ||
26 | endif | 17 | endif |
18 | |||
19 | libgnunetstatistics = library('gnunetstatistics', | ||
20 | libgnunetstatistics_src, | ||
21 | soversion: '2.0.0', | ||
22 | dependencies: libgnunetutil_dep, | ||
23 | include_directories: [incdir, configuration_inc]) | ||
24 | libgnunetstatistics_dep = declare_dependency(link_with : libgnunetstatistics) | ||
25 | pkg.generate(libgnunetstatistics, url: 'https://www.gnunet.org', | ||
26 | description : 'Provides API of GNUnet statistics service') | ||
27 | |||
28 | executable ('gnunet-service-statistics', | ||
29 | gnunetservicestatistics_src, | ||
30 | dependencies: [libgnunetstatistics_dep, libgnunetutil_dep], | ||
31 | include_directories: [incdir, configuration_inc], | ||
32 | install: true, | ||
33 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
34 | executable ('gnunet-statistics', | ||
35 | gnunetservicestatistics_src, | ||
36 | dependencies: [libgnunetstatistics_dep, libgnunetutil_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('bindir')) | ||
40 | |||
41 | |||