diff options
Diffstat (limited to 'src/service/nat/meson.build')
-rw-r--r-- | src/service/nat/meson.build | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/service/nat/meson.build b/src/service/nat/meson.build new file mode 100644 index 000000000..6cf204d34 --- /dev/null +++ b/src/service/nat/meson.build | |||
@@ -0,0 +1,67 @@ | |||
1 | libgnunetnat_src = ['nat_api.c', | ||
2 | 'nat_api_stun.c'] | ||
3 | |||
4 | gnunetservicenat_src = ['gnunet-service-nat.c', | ||
5 | 'gnunet-service-nat.c', | ||
6 | 'gnunet-service-nat_externalip.c', | ||
7 | 'gnunet-service-nat_stun.c', | ||
8 | 'gnunet-service-nat_mini.c', | ||
9 | 'gnunet-service-nat_helper.c'] | ||
10 | |||
11 | configure_file(input : 'nat.conf.in', | ||
12 | output : 'nat.conf', | ||
13 | configuration : cdata, | ||
14 | install: true, | ||
15 | install_dir: pkgcfgdir) | ||
16 | |||
17 | |||
18 | if get_option('monolith') | ||
19 | foreach p : libgnunetnat_src + gnunetservicenat_src | ||
20 | gnunet_src += 'nat/' + p | ||
21 | endforeach | ||
22 | endif | ||
23 | |||
24 | libgnunetnat = library('gnunetnat', | ||
25 | libgnunetnat_src, | ||
26 | soversion: '2', | ||
27 | version: '2.0.0', | ||
28 | dependencies: libgnunetutil_dep, | ||
29 | include_directories: [incdir, configuration_inc], | ||
30 | install: true, | ||
31 | install_dir: get_option('libdir')) | ||
32 | libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | ||
33 | pkg.generate(libgnunetnat, url: 'https://www.gnunet.org', | ||
34 | description : 'Provides API for accessing the NAT service') | ||
35 | libgnunetnat = library('gnunetnatnew', | ||
36 | ['nat_api.c', | ||
37 | 'nat_api_stun.c'], | ||
38 | soversion: '2', | ||
39 | version: '2.0.0', | ||
40 | dependencies: libgnunetutil_dep, | ||
41 | include_directories: [incdir, configuration_inc], | ||
42 | install: true, | ||
43 | install_dir: get_option('libdir')) | ||
44 | libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | ||
45 | |||
46 | executable ('gnunet-service-nat', | ||
47 | gnunetservicenat_src, | ||
48 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
49 | libgnunetstatistics_dep], | ||
50 | include_directories: [incdir, configuration_inc], | ||
51 | install: true, | ||
52 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
53 | executable ('gnunet-helper-nat-server', | ||
54 | ['gnunet-helper-nat-server.c'], | ||
55 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
56 | libgnunetstatistics_dep], | ||
57 | include_directories: [incdir, configuration_inc], | ||
58 | install: true, | ||
59 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
60 | executable ('gnunet-helper-nat-client', | ||
61 | ['gnunet-helper-nat-client.c'], | ||
62 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
63 | libgnunetstatistics_dep], | ||
64 | include_directories: [incdir, configuration_inc], | ||
65 | install: true, | ||
66 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
67 | |||