diff options
Diffstat (limited to 'src/service/identity/meson.build')
-rw-r--r-- | src/service/identity/meson.build | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/service/identity/meson.build b/src/service/identity/meson.build new file mode 100644 index 000000000..961badbbc --- /dev/null +++ b/src/service/identity/meson.build | |||
@@ -0,0 +1,40 @@ | |||
1 | libgnunetidentity_src = ['identity_api.c', | ||
2 | 'identity_api_lookup.c', | ||
3 | 'identity_api_suffix_lookup.c'] | ||
4 | |||
5 | gnunetserviceidentity_src = ['gnunet-service-identity.c'] | ||
6 | |||
7 | configure_file(input : 'identity.conf.in', | ||
8 | output : 'identity.conf', | ||
9 | configuration : cdata, | ||
10 | install: true, | ||
11 | install_dir: pkgcfgdir) | ||
12 | |||
13 | |||
14 | if get_option('monolith') | ||
15 | foreach p : libgnunetidentity_src + gnunetserviceidentity_src | ||
16 | gnunet_src += 'identity/' + p | ||
17 | endforeach | ||
18 | endif | ||
19 | |||
20 | libgnunetidentity = library('gnunetidentity', | ||
21 | libgnunetidentity_src, | ||
22 | soversion: '1', | ||
23 | version: '1.0.0', | ||
24 | dependencies: [libgnunetutil_dep, sodium_dep], | ||
25 | include_directories: [incdir, configuration_inc], | ||
26 | install: true, | ||
27 | install_dir: get_option('libdir')) | ||
28 | libgnunetidentity_dep = declare_dependency(link_with : libgnunetidentity) | ||
29 | pkg.generate(libgnunetidentity, url: 'https://www.gnunet.org', | ||
30 | description : 'API to access and organize private keys of the user egos') | ||
31 | |||
32 | executable ('gnunet-service-identity', | ||
33 | gnunetserviceidentity_src, | ||
34 | dependencies: [libgnunetidentity_dep, | ||
35 | libgnunetutil_dep, | ||
36 | libgnunetstatistics_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
40 | |||