diff options
Diffstat (limited to 'src/nat/meson.build')
-rw-r--r-- | src/nat/meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nat/meson.build b/src/nat/meson.build new file mode 100644 index 000000000..5a0e7622f --- /dev/null +++ b/src/nat/meson.build | |||
@@ -0,0 +1,26 @@ | |||
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 | if gnunet_monolith == false | ||
12 | libgnunetnat = library('gnunetnat', | ||
13 | libgnunetnat_src, | ||
14 | dependencies: libgnunetutil_dep, | ||
15 | include_directories: [incdir, configuration_inc]) | ||
16 | libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | ||
17 | executable ('gnunet-service-nat', | ||
18 | gnunetservicenat_src, | ||
19 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | ||
20 | libgnunetstatistics_dep], | ||
21 | include_directories: [incdir, configuration_inc]) | ||
22 | else | ||
23 | foreach p : libgnunetnat_src + gnunetservicenat_src | ||
24 | gnunet_src += 'nat/' + p | ||
25 | endforeach | ||
26 | endif | ||