diff options
Diffstat (limited to 'src/service/nat/meson.build')
-rw-r--r-- | src/service/nat/meson.build | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/service/nat/meson.build b/src/service/nat/meson.build new file mode 100644 index 000000000..e629f6411 --- /dev/null +++ b/src/service/nat/meson.build | |||
@@ -0,0 +1,75 @@ | |||
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 | subdir_done() | ||
23 | endif | ||
24 | |||
25 | libgnunetnat = library('gnunetnat', | ||
26 | libgnunetnat_src, | ||
27 | soversion: '2', | ||
28 | version: '2.0.0', | ||
29 | dependencies: libgnunetutil_dep, | ||
30 | include_directories: [incdir, configuration_inc], | ||
31 | install: true, | ||
32 | install_dir: get_option('libdir')) | ||
33 | libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | ||
34 | pkg.generate(libgnunetnat, url: 'https://www.gnunet.org', | ||
35 | description : 'Provides API for accessing the NAT service') | ||
36 | libgnunetnat = library('gnunetnatnew', | ||
37 | ['nat_api.c', | ||
38 | 'nat_api_stun.c'], | ||
39 | soversion: '2', | ||
40 | version: '2.0.0', | ||
41 | dependencies: libgnunetutil_dep, | ||
42 | include_directories: [incdir, configuration_inc], | ||
43 | install: true, | ||
44 | install_dir: get_option('libdir')) | ||
45 | libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | ||
46 | |||
47 | executable ('gnunet-nat', | ||
48 | ['gnunet-nat.c'], | ||
49 | dependencies: [libgnunetnat_dep, libgnunetutil_dep], | ||
50 | include_directories: [incdir, configuration_inc], | ||
51 | install: true, | ||
52 | install_dir: get_option('bindir')) | ||
53 | |||
54 | executable ('gnunet-service-nat', | ||
55 | gnunetservicenat_src, | ||
56 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
57 | libgnunetstatistics_dep], | ||
58 | include_directories: [incdir, configuration_inc], | ||
59 | install: true, | ||
60 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
61 | executable ('gnunet-helper-nat-server', | ||
62 | ['gnunet-helper-nat-server.c'], | ||
63 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
64 | libgnunetstatistics_dep], | ||
65 | include_directories: [incdir, configuration_inc], | ||
66 | install: true, | ||
67 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
68 | executable ('gnunet-helper-nat-client', | ||
69 | ['gnunet-helper-nat-client.c'], | ||
70 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
71 | libgnunetstatistics_dep], | ||
72 | include_directories: [incdir, configuration_inc], | ||
73 | install: true, | ||
74 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
75 | |||