diff options
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | src/core/meson.build | 6 | ||||
-rw-r--r-- | src/dht/meson.build | 25 | ||||
-rw-r--r-- | src/fs/meson.build | 40 | ||||
-rw-r--r-- | src/gns/meson.build | 13 | ||||
-rw-r--r-- | src/namestore/meson.build | 34 | ||||
-rw-r--r-- | src/nat-auto/meson.build | 39 | ||||
-rw-r--r-- | src/nat/meson.build | 7 | ||||
-rw-r--r-- | src/nse/meson.build | 7 | ||||
-rw-r--r-- | src/reclaim/meson.build | 30 |
10 files changed, 186 insertions, 18 deletions
diff --git a/meson.build b/meson.build index 2d4d168df..f090549cd 100644 --- a/meson.build +++ b/meson.build | |||
@@ -47,6 +47,7 @@ endif | |||
47 | # FIXME | 47 | # FIXME |
48 | cdata.set('extractor', 0) | 48 | cdata.set('extractor', 0) |
49 | 49 | ||
50 | cdata.set('PKGDATADIRECTORY', get_option('datadir')/'gnunet') | ||
50 | 51 | ||
51 | # Various checks | 52 | # Various checks |
52 | if cc.has_member ('struct sockaddr_in', 'sin_len', prefix : ['#include <sys/types.h>', '#include <sys/socket.h>', '#include <netinet/in.h>']) | 53 | if cc.has_member ('struct sockaddr_in', 'sin_len', prefix : ['#include <sys/types.h>', '#include <sys/socket.h>', '#include <netinet/in.h>']) |
@@ -324,7 +325,7 @@ result = cc.run(curl_ssl_check, name : 'cURL gnutls check', | |||
324 | dependencies: curl_dep) | 325 | dependencies: curl_dep) |
325 | cdata.set('curl_gnutls', 0) | 326 | cdata.set('curl_gnutls', 0) |
326 | if result.returncode() == 0 | 327 | if result.returncode() == 0 |
327 | cdata.set('curl_gnutls', 1) | 328 | cdata.set('curl_gnutls', 1) |
328 | endif | 329 | endif |
329 | 330 | ||
330 | if cc.has_function('getloadavg') == false | 331 | if cc.has_function('getloadavg') == false |
diff --git a/src/core/meson.build b/src/core/meson.build index d8d506b52..4c5bb4d61 100644 --- a/src/core/meson.build +++ b/src/core/meson.build | |||
@@ -31,6 +31,12 @@ libgnunetcore_dep = declare_dependency(link_with : libgnunetcore) | |||
31 | pkg.generate(libgnunetcore, url: 'https://www.gnunet.org', | 31 | pkg.generate(libgnunetcore, url: 'https://www.gnunet.org', |
32 | description : 'Provides API for (encrypted) P2P communication') | 32 | description : 'Provides API for (encrypted) P2P communication') |
33 | 33 | ||
34 | executable ('gnunet-core', | ||
35 | ['gnunet-core.c'], | ||
36 | dependencies: [libgnunetcore_dep, libgnunetutil_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
34 | executable ('gnunet-service-core', | 40 | executable ('gnunet-service-core', |
35 | gnunetservicecore_src, | 41 | gnunetservicecore_src, |
36 | dependencies: [libgnunetcore_dep, libgnunetutil_dep, | 42 | dependencies: [libgnunetcore_dep, libgnunetutil_dep, |
diff --git a/src/dht/meson.build b/src/dht/meson.build index e36f4544c..83ce8ad9e 100644 --- a/src/dht/meson.build +++ b/src/dht/meson.build | |||
@@ -49,7 +49,30 @@ executable ('gnunet-dht', | |||
49 | include_directories: [incdir, configuration_inc], | 49 | include_directories: [incdir, configuration_inc], |
50 | install: true, | 50 | install: true, |
51 | install_dir: get_option('bindir')) | 51 | install_dir: get_option('bindir')) |
52 | 52 | executable ('gnunet-dht-put', | |
53 | ['gnunet-dht-put.c'], | ||
54 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
55 | include_directories: [incdir, configuration_inc], | ||
56 | install: true, | ||
57 | install_dir: get_option('bindir')) | ||
58 | executable ('gnunet-dht-get', | ||
59 | ['gnunet-dht-get.c'], | ||
60 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
61 | include_directories: [incdir, configuration_inc], | ||
62 | install: true, | ||
63 | install_dir: get_option('bindir')) | ||
64 | executable ('gnunet-dht-monitor', | ||
65 | ['gnunet-dht-monitor.c'], | ||
66 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
67 | include_directories: [incdir, configuration_inc], | ||
68 | install: true, | ||
69 | install_dir: get_option('bindir')) | ||
70 | executable ('gnunet-dht-hello', | ||
71 | ['gnunet-dht-hello.c'], | ||
72 | dependencies: [libgnunetdht_dep, libgnunetutil_dep], | ||
73 | include_directories: [incdir, configuration_inc], | ||
74 | install: true, | ||
75 | install_dir: get_option('bindir')) | ||
53 | executable ('gnunet-service-dht', | 76 | executable ('gnunet-service-dht', |
54 | gnunetservicedht_src, | 77 | gnunetservicedht_src, |
55 | dependencies: [libgnunetdht_dep, libgnunetutil_dep, | 78 | dependencies: [libgnunetdht_dep, libgnunetutil_dep, |
diff --git a/src/fs/meson.build b/src/fs/meson.build index 65fe6320f..fa7924959 100644 --- a/src/fs/meson.build +++ b/src/fs/meson.build | |||
@@ -42,8 +42,8 @@ endif | |||
42 | 42 | ||
43 | libgnunetfs = library('gnunetfs', | 43 | libgnunetfs = library('gnunetfs', |
44 | libgnunetfs_src, | 44 | libgnunetfs_src, |
45 | soversion: '3', | 45 | soversion: '2', |
46 | version: '3.1.1', | 46 | version: '2.1.1', |
47 | dependencies: [libgnunetutil_dep, | 47 | dependencies: [libgnunetutil_dep, |
48 | libgnunetdatastore_dep, | 48 | libgnunetdatastore_dep, |
49 | libgnunetstatistics_dep, | 49 | libgnunetstatistics_dep, |
@@ -70,6 +70,42 @@ executable ('gnunet-unindex', | |||
70 | include_directories: [incdir, configuration_inc], | 70 | include_directories: [incdir, configuration_inc], |
71 | install: true, | 71 | install: true, |
72 | install_dir: get_option('bindir')) | 72 | install_dir: get_option('bindir')) |
73 | executable ('gnunet-auto-share', | ||
74 | 'gnunet-auto-share.c', | ||
75 | dependencies: [libgnunetfs_dep, | ||
76 | libgnunetutil_dep], | ||
77 | include_directories: [incdir, configuration_inc], | ||
78 | install: true, | ||
79 | install_dir: get_option('bindir')) | ||
80 | executable ('gnunet-directory', | ||
81 | 'gnunet-directory.c', | ||
82 | dependencies: [libgnunetfs_dep, | ||
83 | libgnunetutil_dep], | ||
84 | include_directories: [incdir, configuration_inc], | ||
85 | install: true, | ||
86 | install_dir: get_option('bindir')) | ||
87 | executable ('gnunet-download', | ||
88 | 'gnunet-download.c', | ||
89 | dependencies: [libgnunetfs_dep, | ||
90 | libgnunetutil_dep], | ||
91 | include_directories: [incdir, configuration_inc], | ||
92 | install: true, | ||
93 | install_dir: get_option('bindir')) | ||
94 | executable ('gnunet-fs', | ||
95 | 'gnunet-fs.c', | ||
96 | dependencies: [libgnunetfs_dep, | ||
97 | libgnunetutil_dep], | ||
98 | include_directories: [incdir, configuration_inc], | ||
99 | install: true, | ||
100 | install_dir: get_option('bindir')) | ||
101 | executable ('gnunet-publish', | ||
102 | 'gnunet-publish.c', | ||
103 | dependencies: [libgnunetfs_dep, | ||
104 | libgnunetidentity_dep, | ||
105 | libgnunetutil_dep], | ||
106 | include_directories: [incdir, configuration_inc], | ||
107 | install: true, | ||
108 | install_dir: get_option('bindir')) | ||
73 | executable ('gnunet-service-fs', | 109 | executable ('gnunet-service-fs', |
74 | gnunetservicefs_src, | 110 | gnunetservicefs_src, |
75 | dependencies: [libgnunetfs_dep, | 111 | dependencies: [libgnunetfs_dep, |
diff --git a/src/gns/meson.build b/src/gns/meson.build index a25850d85..3441acab2 100644 --- a/src/gns/meson.build +++ b/src/gns/meson.build | |||
@@ -11,7 +11,20 @@ configure_file(input : 'gns.conf.in', | |||
11 | configuration : cdata, | 11 | configuration : cdata, |
12 | install: true, | 12 | install: true, |
13 | install_dir: pkgcfgdir) | 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 | configure_file(input : 'gnunet-gns-proxy-setup-ca.in', | ||
21 | output : 'gnunet-gns-proxy-setup-ca', | ||
22 | configuration : cdata, | ||
23 | install: true, | ||
24 | install_dir: pkgcfgdir) | ||
14 | 25 | ||
26 | install_data('gnunet-gns-proxy-ca.template', | ||
27 | install_dir: get_option('datadir')/'gnunet') | ||
15 | 28 | ||
16 | if get_option('monolith') | 29 | if get_option('monolith') |
17 | foreach p : libgnunetgns_src + gnunetservicegns_src | 30 | foreach p : libgnunetgns_src + gnunetservicegns_src |
diff --git a/src/namestore/meson.build b/src/namestore/meson.build index 1a84e7d0f..e57bf46e7 100644 --- a/src/namestore/meson.build +++ b/src/namestore/meson.build | |||
@@ -59,14 +59,42 @@ if pq_dep.found() | |||
59 | endif | 59 | endif |
60 | 60 | ||
61 | executable ('gnunet-namestore', | 61 | executable ('gnunet-namestore', |
62 | gnunetnamestore_src, | 62 | gnunetnamestore_src, |
63 | dependencies: [libgnunetnamestore_dep, | ||
64 | libgnunetutil_dep, | ||
65 | libgnunetgnsrecord_dep, | ||
66 | libgnunetidentity_dep], | ||
67 | include_directories: [incdir, configuration_inc], | ||
68 | install: true, | ||
69 | install_dir: get_option('bindir')) | ||
70 | executable ('gnunet-namestore-dbtool', | ||
71 | ['gnunet-namestore-dbtool.c'], | ||
63 | dependencies: [libgnunetnamestore_dep, | 72 | dependencies: [libgnunetnamestore_dep, |
64 | libgnunetutil_dep, | 73 | libgnunetutil_dep, |
65 | libgnunetgnsrecord_dep, | 74 | libgnunetgnsrecord_dep, |
66 | libgnunetidentity_dep], | 75 | libgnunetidentity_dep], |
67 | include_directories: [incdir, configuration_inc], | 76 | include_directories: [incdir, configuration_inc], |
68 | install: true, | 77 | install: true, |
69 | install_dir: get_option('bindir')) | 78 | install_dir: get_option('bindir')) |
79 | executable ('gnunet-namestore-zonefile', | ||
80 | ['gnunet-namestore-zonefile.c'], | ||
81 | dependencies: [libgnunetnamestore_dep, | ||
82 | libgnunetutil_dep, | ||
83 | libgnunetgnsrecord_dep, | ||
84 | libgnunetidentity_dep], | ||
85 | include_directories: [incdir, configuration_inc], | ||
86 | install: true, | ||
87 | install_dir: get_option('bindir')) | ||
88 | executable ('gnunet-zoneimport', | ||
89 | ['gnunet-zoneimport.c'], | ||
90 | dependencies: [libgnunetnamestore_dep, | ||
91 | libgnunetutil_dep, | ||
92 | libgnunetstatistics_dep, | ||
93 | libgnunetgnsrecord_dep, | ||
94 | libgnunetidentity_dep], | ||
95 | include_directories: [incdir, configuration_inc], | ||
96 | install: true, | ||
97 | install_dir: get_option('bindir')) | ||
70 | executable ('gnunet-service-namestore', | 98 | executable ('gnunet-service-namestore', |
71 | gnunetservicenamestore_src, | 99 | gnunetservicenamestore_src, |
72 | dependencies: [libgnunetnamestore_dep, | 100 | dependencies: [libgnunetnamestore_dep, |
diff --git a/src/nat-auto/meson.build b/src/nat-auto/meson.build index e5643cc58..6370cb5e4 100644 --- a/src/nat-auto/meson.build +++ b/src/nat-auto/meson.build | |||
@@ -3,19 +3,36 @@ libgnunetnatauto_src = ['nat_auto_api.c', | |||
3 | 3 | ||
4 | gnunetservicenatauto_src = ['gnunet-nat-server.c'] | 4 | gnunetservicenatauto_src = ['gnunet-nat-server.c'] |
5 | 5 | ||
6 | configure_file(input : 'nat-auto.conf.in', | ||
7 | output : 'nat-auto.conf', | ||
8 | configuration : cdata, | ||
9 | install: true, | ||
10 | install_dir: pkgcfgdir) | ||
6 | 11 | ||
7 | if get_option('monolith') == false | 12 | if get_option('monolith') |
8 | libgnunetnatauto = library('gnunetnatauto', | ||
9 | libgnunetnatauto_src, | ||
10 | dependencies: [libgnunetutil_dep, libgnunetnat_dep], | ||
11 | include_directories: [incdir, configuration_inc]) | ||
12 | libgnunetnatauto_dep = declare_dependency(link_with : libgnunetnatauto) | ||
13 | executable ('gnunet-nat-server', | ||
14 | gnunetservicenatauto_src, | ||
15 | dependencies: [libgnunetnatauto_dep, libgnunetutil_dep, libgnunetnat_dep], | ||
16 | include_directories: [incdir, configuration_inc]) | ||
17 | else | ||
18 | foreach p : libgnunetnatauto_src + gnunetservicenatauto_src | 13 | foreach p : libgnunetnatauto_src + gnunetservicenatauto_src |
19 | gnunet_src += 'nat-auto/' + p | 14 | gnunet_src += 'nat-auto/' + p |
20 | endforeach | 15 | endforeach |
16 | subdir_done() | ||
21 | endif | 17 | endif |
18 | |||
19 | libgnunetnatauto = library('gnunetnatauto', | ||
20 | libgnunetnatauto_src, | ||
21 | dependencies: [libgnunetutil_dep, libgnunetnat_dep], | ||
22 | include_directories: [incdir, configuration_inc]) | ||
23 | libgnunetnatauto_dep = declare_dependency(link_with : libgnunetnatauto) | ||
24 | |||
25 | executable ('gnunet-nat-auto', | ||
26 | ['gnunet-nat-auto.c'], | ||
27 | dependencies: [libgnunetnatauto_dep, libgnunetutil_dep, | ||
28 | libgnunetnat_dep], | ||
29 | include_directories: [incdir, configuration_inc], | ||
30 | install: true, | ||
31 | install_dir: get_option('bindir')) | ||
32 | executable ('gnunet-nat-server', | ||
33 | gnunetservicenatauto_src, | ||
34 | dependencies: [libgnunetnatauto_dep, libgnunetutil_dep, libgnunetnat_dep], | ||
35 | include_directories: [incdir, configuration_inc], | ||
36 | install: true, | ||
37 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
38 | |||
diff --git a/src/nat/meson.build b/src/nat/meson.build index 430f56e13..6950e8bae 100644 --- a/src/nat/meson.build +++ b/src/nat/meson.build | |||
@@ -34,6 +34,13 @@ libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | |||
34 | pkg.generate(libgnunetnat, url: 'https://www.gnunet.org', | 34 | pkg.generate(libgnunetnat, url: 'https://www.gnunet.org', |
35 | description : 'Provides API for accessing the NAT service') | 35 | description : 'Provides API for accessing the NAT service') |
36 | 36 | ||
37 | executable ('gnunet-nat', | ||
38 | ['gnunet-nat.c'], | ||
39 | dependencies: [libgnunetnat_dep, libgnunetutil_dep], | ||
40 | include_directories: [incdir, configuration_inc], | ||
41 | install: true, | ||
42 | install_dir: get_option('bindir')) | ||
43 | |||
37 | executable ('gnunet-service-nat', | 44 | executable ('gnunet-service-nat', |
38 | gnunetservicenat_src, | 45 | gnunetservicenat_src, |
39 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, | 46 | dependencies: [libgnunetnat_dep, libgnunetutil_dep, |
diff --git a/src/nse/meson.build b/src/nse/meson.build index 57047b463..7490214a3 100644 --- a/src/nse/meson.build +++ b/src/nse/meson.build | |||
@@ -28,6 +28,13 @@ libgnunetnse_dep = declare_dependency(link_with : libgnunetnse) | |||
28 | pkg.generate(libgnunetnse, url: 'https://www.gnunet.org', | 28 | pkg.generate(libgnunetnse, url: 'https://www.gnunet.org', |
29 | description : 'Provides API for accessing the NSE service') | 29 | description : 'Provides API for accessing the NSE service') |
30 | 30 | ||
31 | executable ('gnunet-nse', | ||
32 | ['gnunet-nse.c'], | ||
33 | dependencies: [libgnunetnse_dep, m_dep, libgnunetutil_dep], | ||
34 | include_directories: [incdir, configuration_inc], | ||
35 | install: true, | ||
36 | install_dir: get_option('bindir')) | ||
37 | |||
31 | executable ('gnunet-service-nse', | 38 | executable ('gnunet-service-nse', |
32 | gnunetservicense_src, | 39 | gnunetservicense_src, |
33 | dependencies: [libgnunetnse_dep, libgnunetutil_dep, | 40 | dependencies: [libgnunetnse_dep, libgnunetutil_dep, |
diff --git a/src/reclaim/meson.build b/src/reclaim/meson.build index 0c23ef92b..4ccda79c2 100644 --- a/src/reclaim/meson.build +++ b/src/reclaim/meson.build | |||
@@ -1,6 +1,8 @@ | |||
1 | libgnunetreclaim_src = ['reclaim_api.c', | 1 | libgnunetreclaim_src = ['reclaim_api.c', |
2 | 'reclaim_attribute.c', | 2 | 'reclaim_attribute.c', |
3 | 'reclaim_credential.c'] | 3 | 'reclaim_credential.c'] |
4 | libgnunetdid_src = ['did_helper.c', | ||
5 | 'did_core.c'] | ||
4 | 6 | ||
5 | gnunetservicereclaim_src = ['gnunet-service-reclaim.c', | 7 | gnunetservicereclaim_src = ['gnunet-service-reclaim.c', |
6 | 'gnunet-service-reclaim_tickets.c'] | 8 | 'gnunet-service-reclaim_tickets.c'] |
@@ -32,6 +34,23 @@ libgnunetreclaim_dep = declare_dependency(link_with : libgnunetreclaim) | |||
32 | pkg.generate(libgnunetreclaim, url: 'https://www.gnunet.org', | 34 | pkg.generate(libgnunetreclaim, url: 'https://www.gnunet.org', |
33 | description : 'Provides API to access reclaimID') | 35 | description : 'Provides API to access reclaimID') |
34 | 36 | ||
37 | libgnunetdid = library('gnunetdid', | ||
38 | libgnunetdid_src, | ||
39 | soversion: '0', | ||
40 | version: '0.0.0', | ||
41 | dependencies: [libgnunetutil_dep, | ||
42 | libgnunetnamestore_dep, | ||
43 | libgnunetgnsrecord_dep, | ||
44 | libgnunetgns_dep, | ||
45 | json_dep, | ||
46 | libgnunetidentity_dep], | ||
47 | include_directories: [incdir, configuration_inc], | ||
48 | install: true, | ||
49 | install_dir: get_option('libdir')) | ||
50 | libgnunetdid_dep = declare_dependency(link_with : libgnunetdid) | ||
51 | pkg.generate(libgnunetdid, url: 'https://www.gnunet.org', | ||
52 | description : 'Provides API to manipulate DID') | ||
53 | |||
35 | executable ('gnunet-reclaim', | 54 | executable ('gnunet-reclaim', |
36 | 'gnunet-reclaim.c', | 55 | 'gnunet-reclaim.c', |
37 | dependencies: [libgnunetreclaim_dep, | 56 | dependencies: [libgnunetreclaim_dep, |
@@ -40,6 +59,17 @@ executable ('gnunet-reclaim', | |||
40 | include_directories: [incdir, configuration_inc], | 59 | include_directories: [incdir, configuration_inc], |
41 | install: true, | 60 | install: true, |
42 | install_dir: get_option('bindir')) | 61 | install_dir: get_option('bindir')) |
62 | executable ('gnunet-did', | ||
63 | 'gnunet-did.c', | ||
64 | dependencies: [libgnunetreclaim_dep, | ||
65 | libgnunetdid_dep, | ||
66 | libgnunetgns_dep, | ||
67 | libgnunetnamestore_dep, | ||
68 | libgnunetidentity_dep, | ||
69 | libgnunetutil_dep], | ||
70 | include_directories: [incdir, configuration_inc], | ||
71 | install: true, | ||
72 | install_dir: get_option('bindir')) | ||
43 | executable ('gnunet-service-reclaim', | 73 | executable ('gnunet-service-reclaim', |
44 | gnunetservicereclaim_src, | 74 | gnunetservicereclaim_src, |
45 | dependencies: [libgnunetreclaim_dep, | 75 | dependencies: [libgnunetreclaim_dep, |