diff options
Diffstat (limited to 'src/service/gns/meson.build')
-rw-r--r-- | src/service/gns/meson.build | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/src/service/gns/meson.build b/src/service/gns/meson.build new file mode 100644 index 000000000..fb70a72b0 --- /dev/null +++ b/src/service/gns/meson.build | |||
@@ -0,0 +1,113 @@ | |||
1 | libgnunetgns_src = ['gns_api.c', 'gns_tld_api.c'] | ||
2 | |||
3 | gnunetservicegns_src = ['gnunet-service-gns.c', | ||
4 | 'gnunet-service-gns_resolver.c', | ||
5 | 'gnunet-service-gns_interceptor.c'] | ||
6 | |||
7 | gnunetgnsproxy_src = ['gnunet-gns-proxy.c'] | ||
8 | |||
9 | configure_file(input : 'gns.conf.in', | ||
10 | output : 'gns.conf', | ||
11 | configuration : cdata, | ||
12 | install: true, | ||
13 | install_dir: pkgcfgdir) | ||
14 | configure_file(input : 'tlds.conf', | ||
15 | output : 'tlds.conf', | ||
16 | configuration : cdata, | ||
17 | install: true, | ||
18 | install_dir: pkgcfgdir) | ||
19 | |||
20 | if get_option('monolith') | ||
21 | foreach p : libgnunetgns_src + gnunetservicegns_src | ||
22 | gnunet_src += 'gns/' + p | ||
23 | endforeach | ||
24 | endif | ||
25 | |||
26 | libgnunetgns = library('gnunetgns', | ||
27 | libgnunetgns_src, | ||
28 | soversion: '0', | ||
29 | version: '0.0.0', | ||
30 | dependencies: [libgnunetutil_dep, | ||
31 | libgnunetgnsrecord_dep, | ||
32 | libgnunetidentity_dep], | ||
33 | include_directories: [incdir, configuration_inc], | ||
34 | install: true, | ||
35 | install_dir: get_option('libdir')) | ||
36 | libgnunetgns_dep = declare_dependency(link_with : libgnunetgns) | ||
37 | pkg.generate(libgnunetgns, url: 'https://www.gnunet.org', | ||
38 | description : 'Provides API to access the GNU Name System') | ||
39 | |||
40 | executable ('gnunet-gns-proxy', | ||
41 | gnunetgnsproxy_src, | ||
42 | dependencies: [libgnunetgns_dep, | ||
43 | libgnunetutil_dep, | ||
44 | mhd_dep, | ||
45 | idn_dep, | ||
46 | curl_dep, | ||
47 | gnutls_dep, | ||
48 | libgnunetidentity_dep], | ||
49 | include_directories: [incdir, configuration_inc], | ||
50 | install: true, | ||
51 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
52 | |||
53 | executable ('gnunet-service-gns', | ||
54 | gnunetservicegns_src, | ||
55 | dependencies: [libgnunetgns_dep, | ||
56 | libgnunetutil_dep, | ||
57 | libgnunetstatistics_dep, | ||
58 | libgnunetcore_dep, | ||
59 | libgnunetdht_dep, | ||
60 | libgnunetdns_dep, | ||
61 | idn_dep, | ||
62 | libgnunetidentity_dep, | ||
63 | libgnunetnamecache_dep, | ||
64 | libgnunetrevocation_dep, | ||
65 | libgnunetgnsrecord_dep, | ||
66 | libgnunetcadet_dep, | ||
67 | libgnunetblock_dep], | ||
68 | include_directories: [incdir, configuration_inc], | ||
69 | install: true, | ||
70 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
71 | executable ('gnunet-bcd', | ||
72 | ['gnunet-bcd.c'], | ||
73 | dependencies: [libgnunetgns_dep, | ||
74 | libgnunetutil_dep, | ||
75 | libgnunetstatistics_dep, | ||
76 | libgnunetcore_dep, | ||
77 | libgnunetdht_dep, | ||
78 | libgnunetdns_dep, | ||
79 | mhd_dep, | ||
80 | idn_dep, | ||
81 | libgnunetidentity_dep, | ||
82 | libgnunetnamecache_dep, | ||
83 | libgnunetrevocation_dep, | ||
84 | libgnunetgnsrecord_dep, | ||
85 | libgnunetcadet_dep, | ||
86 | libgnunetblock_dep], | ||
87 | include_directories: [incdir, configuration_inc], | ||
88 | install: true, | ||
89 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
90 | executable ('gnunet-dns2gns', | ||
91 | ['gnunet-dns2gns.c'], | ||
92 | dependencies: [libgnunetgns_dep, | ||
93 | libgnunetutil_dep, | ||
94 | libgnunetstatistics_dep, | ||
95 | libgnunetvpn_dep, | ||
96 | libgnunetcore_dep, | ||
97 | libgnunetdht_dep, | ||
98 | libgnunetdns_dep, | ||
99 | idn_dep, | ||
100 | libgnunetidentity_dep, | ||
101 | libgnunetnamecache_dep, | ||
102 | libgnunetrevocation_dep, | ||
103 | libgnunetgnsrecord_dep, | ||
104 | libgnunetcadet_dep, | ||
105 | libgnunetblock_dep], | ||
106 | include_directories: [incdir, configuration_inc], | ||
107 | install: true, | ||
108 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
109 | |||
110 | |||
111 | if have_nss | ||
112 | subdir('nss') | ||
113 | endif | ||