diff options
Diffstat (limited to 'src/vpn/meson.build')
-rw-r--r-- | src/vpn/meson.build | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/vpn/meson.build b/src/vpn/meson.build new file mode 100644 index 000000000..e77b88432 --- /dev/null +++ b/src/vpn/meson.build | |||
@@ -0,0 +1,66 @@ | |||
1 | libgnunetvpn_src = ['vpn_api.c'] | ||
2 | |||
3 | gnunetservicevpn_src = ['gnunet-service-vpn.c'] | ||
4 | |||
5 | exitdir = include_directories('../exit') | ||
6 | |||
7 | configure_file(input : 'vpn.conf.in', | ||
8 | output : 'vpn.conf', | ||
9 | configuration : cdata, | ||
10 | install: true, | ||
11 | install_dir: pkgcfgdir) | ||
12 | |||
13 | |||
14 | if get_option('monolith') | ||
15 | foreach p : libgnunetvpn_src + gnunetservicevpn_src | ||
16 | gnunet_src += 'vpn/' + p | ||
17 | endforeach | ||
18 | subdir_done() | ||
19 | endif | ||
20 | |||
21 | libgnunetvpn = library('gnunetvpn', | ||
22 | libgnunetvpn_src, | ||
23 | soversion: '0', | ||
24 | version: '0.0.0', | ||
25 | dependencies: libgnunetutil_dep, | ||
26 | include_directories: [incdir, configuration_inc], | ||
27 | install: true, | ||
28 | install_dir: get_option('libdir')) | ||
29 | pkg.generate(libgnunetvpn, url: 'https://www.gnunet.org', | ||
30 | description : 'Provides API for accessing the VPN service') | ||
31 | libgnunetvpn_dep = declare_dependency(link_with : libgnunetvpn) | ||
32 | |||
33 | executable ('gnunet-vpn', | ||
34 | ['gnunet-vpn.c'], | ||
35 | dependencies: [libgnunetvpn_dep, | ||
36 | libgnunetutil_dep, | ||
37 | libgnunetstatistics_dep, | ||
38 | libgnunetregex_dep, | ||
39 | libgnunetcore_dep, | ||
40 | libgnunetcadet_dep, | ||
41 | libgnunetblock_dep], | ||
42 | include_directories: [incdir, configuration_inc, exitdir], | ||
43 | install: true, | ||
44 | install_dir: get_option('bindir')) | ||
45 | |||
46 | executable ('gnunet-service-vpn', | ||
47 | gnunetservicevpn_src, | ||
48 | dependencies: [libgnunetvpn_dep, | ||
49 | libgnunetutil_dep, | ||
50 | libgnunetstatistics_dep, | ||
51 | libgnunetregex_dep, | ||
52 | libgnunetcore_dep, | ||
53 | libgnunetcadet_dep, | ||
54 | libgnunetblock_dep], | ||
55 | include_directories: [incdir, configuration_inc, exitdir], | ||
56 | install: true, | ||
57 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
58 | if host_machine.system() == 'linux' | ||
59 | executable ('gnunet-helper-vpn', | ||
60 | ['gnunet-helper-vpn.c'], | ||
61 | dependencies: [libgnunetvpn_dep, | ||
62 | libgnunetutil_dep], | ||
63 | include_directories: [incdir, configuration_inc, exitdir], | ||
64 | install: true, | ||
65 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
66 | endif | ||