diff options
Diffstat (limited to 'src/identity/meson.build')
-rw-r--r-- | src/identity/meson.build | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/identity/meson.build b/src/identity/meson.build new file mode 100644 index 000000000..7987bfcfc --- /dev/null +++ b/src/identity/meson.build | |||
@@ -0,0 +1,59 @@ | |||
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 | shared_module('gnunet_plugin_rest_identity', | ||
32 | ['plugin_rest_identity.c'], | ||
33 | dependencies: [libgnunetrest_dep, | ||
34 | libgnunetidentity_dep, | ||
35 | libgnunetutil_dep, | ||
36 | json_dep, | ||
37 | mhd_dep], | ||
38 | include_directories: [incdir, configuration_inc], | ||
39 | install: true, | ||
40 | install_dir: get_option('libdir') / 'gnunet') | ||
41 | |||
42 | |||
43 | executable ('gnunet-identity', | ||
44 | ['gnunet-identity.c'], | ||
45 | dependencies: [libgnunetidentity_dep, | ||
46 | libgnunetutil_dep, | ||
47 | libgnunetstatistics_dep], | ||
48 | include_directories: [incdir, configuration_inc], | ||
49 | install: true, | ||
50 | install_dir: get_option('bindir')) | ||
51 | executable ('gnunet-service-identity', | ||
52 | gnunetserviceidentity_src, | ||
53 | dependencies: [libgnunetidentity_dep, | ||
54 | libgnunetutil_dep, | ||
55 | libgnunetstatistics_dep], | ||
56 | include_directories: [incdir, configuration_inc], | ||
57 | install: true, | ||
58 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
59 | |||