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