diff options
m--------- | contrib/gana | 0 | ||||
m--------- | contrib/sphinx | 0 | ||||
-rw-r--r-- | src/ats/meson.build | 13 | ||||
-rw-r--r-- | src/block/meson.build | 3 | ||||
-rw-r--r-- | src/cadet/meson.build | 3 | ||||
-rw-r--r-- | src/dhtu/meson.build | 19 | ||||
-rw-r--r-- | src/dns/meson.build | 55 | ||||
-rw-r--r-- | src/fragmentation/meson.build | 17 | ||||
-rw-r--r-- | src/fs/meson.build | 91 | ||||
-rw-r--r-- | src/hello/meson.build | 28 | ||||
-rw-r--r-- | src/identity/meson.build | 36 | ||||
-rw-r--r-- | src/json/meson.build | 18 | ||||
-rw-r--r-- | src/messenger/meson.build | 60 |
13 files changed, 200 insertions, 143 deletions
diff --git a/contrib/gana b/contrib/gana | |||
Subproject c9bda21875ea1775f88b71de735d527132e4592 | Subproject c1dc2dc975742c929a523c22d91f7d4f8278723 | ||
diff --git a/contrib/sphinx b/contrib/sphinx | |||
Subproject 0cccef450b037a48170402117f7d3b6c0a4272a | Subproject 9c5b9d9040d21542eff792e26624cf9669b127a | ||
diff --git a/src/ats/meson.build b/src/ats/meson.build index de9289efc..123f394bf 100644 --- a/src/ats/meson.build +++ b/src/ats/meson.build | |||
@@ -28,6 +28,7 @@ endif | |||
28 | 28 | ||
29 | libgnunetats = library('gnunetats', | 29 | libgnunetats = library('gnunetats', |
30 | libgnunetats_src, | 30 | libgnunetats_src, |
31 | soversion: '4.0.0', | ||
31 | dependencies: [libgnunetutil_dep, libgnunethello_dep], | 32 | dependencies: [libgnunetutil_dep, libgnunethello_dep], |
32 | include_directories: [incdir, configuration_inc], | 33 | include_directories: [incdir, configuration_inc], |
33 | install: true, | 34 | install: true, |
@@ -35,6 +36,18 @@ libgnunetats = library('gnunetats', | |||
35 | pkg.generate(libgnunetats, url : 'https://www.gnunet.org', | 36 | pkg.generate(libgnunetats, url : 'https://www.gnunet.org', |
36 | description : 'Provides API for allocating bandwidth, expressing preferences for certain peers and accessing allocation information') | 37 | description : 'Provides API for allocating bandwidth, expressing preferences for certain peers and accessing allocation information') |
37 | libgnunetats_dep = declare_dependency(link_with : libgnunetats) | 38 | libgnunetats_dep = declare_dependency(link_with : libgnunetats) |
39 | |||
40 | shared_module('gnunet_plugin_ats_proportional', | ||
41 | ['plugin_ats_proportional.c'], | ||
42 | dependencies: [libgnunetutil_dep, | ||
43 | libgnunetats_dep, | ||
44 | libgnunetstatistics_dep, | ||
45 | libgnunetnt_dep, | ||
46 | libgnunetstatistics_dep], | ||
47 | include_directories: [incdir, configuration_inc], | ||
48 | install: true, | ||
49 | install_dir: get_option('libdir')) | ||
50 | |||
38 | executable ('gnunet-service-ats', | 51 | executable ('gnunet-service-ats', |
39 | gnunetserviceats_src, | 52 | gnunetserviceats_src, |
40 | dependencies: [libgnunetats_dep, libgnunetutil_dep, | 53 | dependencies: [libgnunetats_dep, libgnunetutil_dep, |
diff --git a/src/block/meson.build b/src/block/meson.build index 18fd71bb0..5b0542c19 100644 --- a/src/block/meson.build +++ b/src/block/meson.build | |||
@@ -16,6 +16,9 @@ libgnunetblock = library('gnunetblock', | |||
16 | soversion: '0.0.0', | 16 | soversion: '0.0.0', |
17 | install_dir: get_option('libdir')) | 17 | install_dir: get_option('libdir')) |
18 | libgnunetblock_dep = declare_dependency(link_with : libgnunetblock) | 18 | libgnunetblock_dep = declare_dependency(link_with : libgnunetblock) |
19 | pkg.generate(libgnunetblock, url: 'https://www.gnunet.org', | ||
20 | description : 'Library for data block manipulation') | ||
21 | |||
19 | libgnunetblockgroup = library('gnunetblockgroup', | 22 | libgnunetblockgroup = library('gnunetblockgroup', |
20 | libgnunetblockgroup_src, | 23 | libgnunetblockgroup_src, |
21 | dependencies: [libgnunetutil_dep, libgnunetblock_dep], | 24 | dependencies: [libgnunetutil_dep, libgnunetblock_dep], |
diff --git a/src/cadet/meson.build b/src/cadet/meson.build index baeecdcd3..6c9b6727f 100644 --- a/src/cadet/meson.build +++ b/src/cadet/meson.build | |||
@@ -37,6 +37,9 @@ libgnunetcadet = library('gnunetcadet', | |||
37 | soversion: '7.0.0', | 37 | soversion: '7.0.0', |
38 | install_dir: get_option('libdir')) | 38 | install_dir: get_option('libdir')) |
39 | libgnunetcadet_dep = declare_dependency(link_with : libgnunetcadet) | 39 | libgnunetcadet_dep = declare_dependency(link_with : libgnunetcadet) |
40 | pkg.generate(libgnunetcadet, url: 'https://www.gnunet.org', | ||
41 | description : 'API for multicast and multi-hop routing between GNUnet peers') | ||
42 | |||
40 | executable ('gnunet-cadet', | 43 | executable ('gnunet-cadet', |
41 | gnunetservicecadet_src, | 44 | gnunetservicecadet_src, |
42 | dependencies: [libgnunetcadet_dep, | 45 | dependencies: [libgnunetcadet_dep, |
diff --git a/src/dhtu/meson.build b/src/dhtu/meson.build index 8ac1feb43..155b6744c 100644 --- a/src/dhtu/meson.build +++ b/src/dhtu/meson.build | |||
@@ -7,13 +7,18 @@ configure_file(input : 'dhtu.conf', | |||
7 | install: true, | 7 | install: true, |
8 | install_dir: pkgcfgdir) | 8 | install_dir: pkgcfgdir) |
9 | 9 | ||
10 | if get_option('monolith') == false | 10 | if get_option('monolith') |
11 | libgnunetplugindhtuip = library('gnunet_plugin_dhtu_ip', | 11 | foreach p : libgnunetplugindhtuip_src + libgnunetplugindhtugnunet_src |
12 | gnunet_src += 'dhtu/' + p | ||
13 | endforeach | ||
14 | endif | ||
15 | |||
16 | shared_module('gnunet_plugin_dhtu_ip', | ||
12 | libgnunetplugindhtuip_src, | 17 | libgnunetplugindhtuip_src, |
13 | dependencies: [libgnunetutil_dep, m_dep], | 18 | dependencies: [libgnunetutil_dep, m_dep], |
14 | include_directories: [incdir, configuration_inc]) | 19 | include_directories: [incdir, configuration_inc]) |
15 | libgnunetplugindhtuip_dep = declare_dependency(link_with : libgnunetplugindhtuip) | 20 | |
16 | libgnunetplugindhtugnunet = library('gnunet_plugin_dhtu_gnunet', | 21 | shared_module('gnunet_plugin_dhtu_gnunet', |
17 | libgnunetplugindhtugnunet_src, | 22 | libgnunetplugindhtugnunet_src, |
18 | dependencies: [libgnunetutil_dep, | 23 | dependencies: [libgnunetutil_dep, |
19 | libgnunetats_dep, | 24 | libgnunetats_dep, |
@@ -24,9 +29,3 @@ if get_option('monolith') == false | |||
24 | libgnunetnse_dep, | 29 | libgnunetnse_dep, |
25 | libgnunettransport_dep], | 30 | libgnunettransport_dep], |
26 | include_directories: [incdir, configuration_inc]) | 31 | include_directories: [incdir, configuration_inc]) |
27 | libgnunetplugindhtugnunet_dep = declare_dependency(link_with : libgnunetplugindhtugnunet) | ||
28 | else | ||
29 | foreach p : libgnunetplugindhtuip_src + libgnunetplugindhtugnunet_src | ||
30 | gnunet_src += 'dhtu/' + p | ||
31 | endforeach | ||
32 | endif | ||
diff --git a/src/dns/meson.build b/src/dns/meson.build index 9eb26aeee..9cc98b24a 100644 --- a/src/dns/meson.build +++ b/src/dns/meson.build | |||
@@ -11,32 +11,37 @@ configure_file(input : 'dns.conf.in', | |||
11 | install: true, | 11 | install: true, |
12 | install_dir: pkgcfgdir) | 12 | install_dir: pkgcfgdir) |
13 | 13 | ||
14 | if get_option('monolith') == false | 14 | if get_option('monolith') |
15 | libgnunetdns = library('gnunetdns', | ||
16 | libgnunetdns_src, | ||
17 | dependencies: libgnunetutil_dep, | ||
18 | include_directories: [incdir, configuration_inc]) | ||
19 | libgnunetdns_dep = declare_dependency(link_with : libgnunetdns) | ||
20 | libgnunetpluginblockdns = library('gnunet_plugin_block_dns', | ||
21 | libgnunetpluginblockdns_src, | ||
22 | dependencies: [libgnunetutil_dep, libgnunetblockgroup_dep], | ||
23 | include_directories: [incdir, configuration_inc]) | ||
24 | libgnunetpluginblockdns_dep = declare_dependency(link_with : libgnunetpluginblockdns) | ||
25 | executable ('gnunet-service-dns', | ||
26 | gnunetservicedns_src, | ||
27 | dependencies: [libgnunetdns_dep, libgnunetutil_dep, | ||
28 | libgnunetstatistics_dep], | ||
29 | include_directories: [incdir, configuration_inc]) | ||
30 | executable ('gnunet-dns-monitor', | ||
31 | gnunetdnsmonitor_src, | ||
32 | dependencies: [libgnunetdns_dep, libgnunetutil_dep, libgnunetdns_dep], | ||
33 | include_directories: [incdir, configuration_inc]) | ||
34 | executable ('gnunet-dns-redirector', | ||
35 | gnunetdnsredirector_src, | ||
36 | dependencies: [libgnunetdns_dep, libgnunetutil_dep, libgnunetdns_dep], | ||
37 | include_directories: [incdir, configuration_inc]) | ||
38 | else | ||
39 | foreach p : libgnunetdns_src + gnunetservicedns_src + libgnunetpluginblockdns_src | 15 | foreach p : libgnunetdns_src + gnunetservicedns_src + libgnunetpluginblockdns_src |
40 | gnunet_src += 'dns/' + p | 16 | gnunet_src += 'dns/' + p |
41 | endforeach | 17 | endforeach |
18 | subdir_done() | ||
42 | endif | 19 | endif |
20 | |||
21 | libgnunetdns = library('gnunetdns', | ||
22 | libgnunetdns_src, | ||
23 | dependencies: libgnunetutil_dep, | ||
24 | include_directories: [incdir, configuration_inc]) | ||
25 | libgnunetdns_dep = declare_dependency(link_with : libgnunetdns) | ||
26 | pkg.generate(libgnunetdns, url: 'https://www.gnunet.org', | ||
27 | description : 'Provides API to access GNUnet\'s DNS service (to intercept and manipulate DNS queries)') | ||
28 | |||
29 | shared_module('gnunet_plugin_block_dns', | ||
30 | libgnunetpluginblockdns_src, | ||
31 | dependencies: [libgnunetutil_dep, libgnunetblockgroup_dep], | ||
32 | include_directories: [incdir, configuration_inc]) | ||
33 | |||
34 | executable ('gnunet-service-dns', | ||
35 | gnunetservicedns_src, | ||
36 | dependencies: [libgnunetdns_dep, libgnunetutil_dep, | ||
37 | libgnunetstatistics_dep], | ||
38 | include_directories: [incdir, configuration_inc]) | ||
39 | executable ('gnunet-dns-monitor', | ||
40 | gnunetdnsmonitor_src, | ||
41 | dependencies: [libgnunetdns_dep, libgnunetutil_dep, libgnunetdns_dep], | ||
42 | include_directories: [incdir, configuration_inc]) | ||
43 | executable ('gnunet-dns-redirector', | ||
44 | gnunetdnsredirector_src, | ||
45 | dependencies: [libgnunetdns_dep, libgnunetutil_dep, libgnunetdns_dep], | ||
46 | include_directories: [incdir, configuration_inc]) | ||
47 | |||
diff --git a/src/fragmentation/meson.build b/src/fragmentation/meson.build index 1292d6012..486c560c2 100644 --- a/src/fragmentation/meson.build +++ b/src/fragmentation/meson.build | |||
@@ -1,14 +1,17 @@ | |||
1 | libgnunetfragmentation_src = ['fragmentation.c', | 1 | libgnunetfragmentation_src = ['fragmentation.c', |
2 | 'defragmentation.c'] | 2 | 'defragmentation.c'] |
3 | 3 | ||
4 | if get_option('monolith') == false | 4 | if get_option('monolith') |
5 | libgnunetfragmentation = library('gnunetfragmentation', | ||
6 | libgnunetfragmentation_src, | ||
7 | dependencies: [m_dep, libgnunetutil_dep, libgnunetstatistics_dep], | ||
8 | include_directories: [incdir, configuration_inc]) | ||
9 | libgnunetfragmentation_dep = declare_dependency(link_with : libgnunetfragmentation) | ||
10 | else | ||
11 | foreach p : libgnunetfragmentation_src | 5 | foreach p : libgnunetfragmentation_src |
12 | gnunet_src += 'fragmentation/' + p | 6 | gnunet_src += 'fragmentation/' + p |
13 | endforeach | 7 | endforeach |
14 | endif | 8 | endif |
9 | |||
10 | libgnunetfragmentation = library('gnunetfragmentation', | ||
11 | libgnunetfragmentation_src, | ||
12 | dependencies: [m_dep, libgnunetutil_dep, libgnunetstatistics_dep], | ||
13 | include_directories: [incdir, configuration_inc]) | ||
14 | libgnunetfragmentation_dep = declare_dependency(link_with : libgnunetfragmentation) | ||
15 | pkg.generate(libgnunetfragmentation, url: 'https://www.gnunet.org', | ||
16 | description : 'Provides API for sending and receiving messages that are larger than the MTU of the transport') | ||
17 | |||
diff --git a/src/fs/meson.build b/src/fs/meson.build index 9351f100d..855cccaea 100644 --- a/src/fs/meson.build +++ b/src/fs/meson.build | |||
@@ -34,50 +34,55 @@ configure_file(input : 'fs.conf.in', | |||
34 | install_dir: pkgcfgdir) | 34 | install_dir: pkgcfgdir) |
35 | 35 | ||
36 | 36 | ||
37 | if get_option('monolith') == false | 37 | if get_option('monolith') |
38 | libgnunetfs = library('gnunetfs', | ||
39 | libgnunetfs_src, | ||
40 | dependencies: [libgnunetutil_dep, | ||
41 | libgnunetdatastore_dep, | ||
42 | libgnunetstatistics_dep, | ||
43 | unistr_dep], | ||
44 | include_directories: [incdir, configuration_inc], | ||
45 | install: true, | ||
46 | install_dir: get_option('libdir')) | ||
47 | libgnunetfs_dep = declare_dependency(link_with : libgnunetfs) | ||
48 | executable ('gnunet-search', | ||
49 | 'gnunet-search.c', | ||
50 | dependencies: [libgnunetfs_dep, | ||
51 | libgnunetutil_dep], | ||
52 | include_directories: [incdir, configuration_inc], | ||
53 | install: true, | ||
54 | install_dir: get_option('bindir')) | ||
55 | executable ('gnunet-unindex', | ||
56 | 'gnunet-unindex.c', | ||
57 | dependencies: [libgnunetfs_dep, | ||
58 | libgnunetutil_dep], | ||
59 | include_directories: [incdir, configuration_inc], | ||
60 | install: true, | ||
61 | install_dir: get_option('bindir')) | ||
62 | executable ('gnunet-service-fs', | ||
63 | gnunetservicefs_src, | ||
64 | dependencies: [libgnunetfs_dep, | ||
65 | libgnunetutil_dep, | ||
66 | libgnunetstatistics_dep, | ||
67 | libgnunetcore_dep, | ||
68 | libgnunetdht_dep, | ||
69 | libgnunetidentity_dep, | ||
70 | m_dep, | ||
71 | libgnunetats_dep, | ||
72 | libgnunetcadet_dep, | ||
73 | libgnunetpeerstore_dep, | ||
74 | libgnunetdatastore_dep, | ||
75 | libgnunetblock_dep], | ||
76 | include_directories: [incdir, configuration_inc], | ||
77 | install: true, | ||
78 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
79 | else | ||
80 | foreach p : libgnunetfs_src + gnunetservicefs_src | 38 | foreach p : libgnunetfs_src + gnunetservicefs_src |
81 | gnunet_src += 'fs/' + p | 39 | gnunet_src += 'fs/' + p |
82 | endforeach | 40 | endforeach |
83 | endif | 41 | endif |
42 | |||
43 | libgnunetfs = library('gnunetfs', | ||
44 | libgnunetfs_src, | ||
45 | dependencies: [libgnunetutil_dep, | ||
46 | libgnunetdatastore_dep, | ||
47 | libgnunetstatistics_dep, | ||
48 | unistr_dep], | ||
49 | include_directories: [incdir, configuration_inc], | ||
50 | install: true, | ||
51 | install_dir: get_option('libdir')) | ||
52 | libgnunetfs_dep = declare_dependency(link_with : libgnunetfs) | ||
53 | pkg.generate(libgnunetfs, url: 'https://www.gnunet.org', | ||
54 | description : 'Provides API for GNUnet File-Sharing service') | ||
55 | |||
56 | |||
57 | executable ('gnunet-search', | ||
58 | 'gnunet-search.c', | ||
59 | dependencies: [libgnunetfs_dep, | ||
60 | libgnunetutil_dep], | ||
61 | include_directories: [incdir, configuration_inc], | ||
62 | install: true, | ||
63 | install_dir: get_option('bindir')) | ||
64 | executable ('gnunet-unindex', | ||
65 | 'gnunet-unindex.c', | ||
66 | dependencies: [libgnunetfs_dep, | ||
67 | libgnunetutil_dep], | ||
68 | include_directories: [incdir, configuration_inc], | ||
69 | install: true, | ||
70 | install_dir: get_option('bindir')) | ||
71 | executable ('gnunet-service-fs', | ||
72 | gnunetservicefs_src, | ||
73 | dependencies: [libgnunetfs_dep, | ||
74 | libgnunetutil_dep, | ||
75 | libgnunetstatistics_dep, | ||
76 | libgnunetcore_dep, | ||
77 | libgnunetdht_dep, | ||
78 | libgnunetidentity_dep, | ||
79 | m_dep, | ||
80 | libgnunetats_dep, | ||
81 | libgnunetcadet_dep, | ||
82 | libgnunetpeerstore_dep, | ||
83 | libgnunetdatastore_dep, | ||
84 | libgnunetblock_dep], | ||
85 | include_directories: [incdir, configuration_inc], | ||
86 | install: true, | ||
87 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
88 | |||
diff --git a/src/hello/meson.build b/src/hello/meson.build index 843531bb5..23f26db31 100644 --- a/src/hello/meson.build +++ b/src/hello/meson.build | |||
@@ -6,18 +6,24 @@ libgnunethello_src = ['hello.c', | |||
6 | gnunethello_src = ['gnunet-hello.c'] | 6 | gnunethello_src = ['gnunet-hello.c'] |
7 | 7 | ||
8 | 8 | ||
9 | if get_option('monolith') == false | 9 | if get_option('monolith') |
10 | libgnunethello = library('gnunethello', | ||
11 | libgnunethello_src, | ||
12 | dependencies: libgnunetutil_dep, | ||
13 | include_directories: [incdir, configuration_inc]) | ||
14 | libgnunethello_dep = declare_dependency(link_with : libgnunethello) | ||
15 | executable ('gnunet-hello', | ||
16 | gnunethello_src, | ||
17 | dependencies: [libgnunethello_dep, libgnunetutil_dep], | ||
18 | include_directories: [incdir, configuration_inc]) | ||
19 | else | ||
20 | foreach p : libgnunethello_src | 10 | foreach p : libgnunethello_src |
21 | gnunet_src += 'hello/' + p | 11 | gnunet_src += 'hello/' + p |
22 | endforeach | 12 | endforeach |
13 | subdir_done() | ||
23 | endif | 14 | endif |
15 | |||
16 | libgnunethello = library('gnunethello', | ||
17 | libgnunethello_src, | ||
18 | dependencies: libgnunetutil_dep, | ||
19 | include_directories: [incdir, configuration_inc]) | ||
20 | libgnunethello_dep = declare_dependency(link_with : libgnunethello) | ||
21 | pkg.generate(libgnunethello, url: 'https://www.gnunet.org', | ||
22 | description : 'Helper library for handling GNUnet HELLO messages') | ||
23 | |||
24 | |||
25 | executable ('gnunet-hello', | ||
26 | gnunethello_src, | ||
27 | dependencies: [libgnunethello_dep, libgnunetutil_dep], | ||
28 | include_directories: [incdir, configuration_inc]) | ||
29 | |||
diff --git a/src/identity/meson.build b/src/identity/meson.build index 9c1199d5f..e792752a7 100644 --- a/src/identity/meson.build +++ b/src/identity/meson.build | |||
@@ -11,20 +11,30 @@ configure_file(input : 'identity.conf.in', | |||
11 | install_dir: pkgcfgdir) | 11 | install_dir: pkgcfgdir) |
12 | 12 | ||
13 | 13 | ||
14 | if get_option('monolith') == false | 14 | if get_option('monolith') |
15 | libgnunetidentity = library('gnunetidentity', | ||
16 | libgnunetidentity_src, | ||
17 | dependencies: [libgnunetutil_dep, sodium_dep], | ||
18 | include_directories: [incdir, configuration_inc]) | ||
19 | libgnunetidentity_dep = declare_dependency(link_with : libgnunetidentity) | ||
20 | executable ('gnunet-service-identity', | ||
21 | gnunetserviceidentity_src, | ||
22 | dependencies: [libgnunetidentity_dep, | ||
23 | libgnunetutil_dep, | ||
24 | libgnunetstatistics_dep], | ||
25 | include_directories: [incdir, configuration_inc]) | ||
26 | else | ||
27 | foreach p : libgnunetidentity_src + gnunetserviceidentity_src | 15 | foreach p : libgnunetidentity_src + gnunetserviceidentity_src |
28 | gnunet_src += 'identity/' + p | 16 | gnunet_src += 'identity/' + p |
29 | endforeach | 17 | endforeach |
30 | endif | 18 | endif |
19 | |||
20 | libgnunetidentity = library('gnunetidentity', | ||
21 | libgnunetidentity_src, | ||
22 | dependencies: [libgnunetutil_dep, sodium_dep], | ||
23 | include_directories: [incdir, configuration_inc]) | ||
24 | libgnunetidentity_dep = declare_dependency(link_with : libgnunetidentity) | ||
25 | pkg.generate(libgnunetidentity, url: 'https://www.gnunet.org', | ||
26 | description : 'API to access and organize private keys of the user egos') | ||
27 | |||
28 | executable ('gnunet-identity', | ||
29 | ['gnunet-identity.c'], | ||
30 | dependencies: [libgnunetidentity_dep, | ||
31 | libgnunetutil_dep, | ||
32 | libgnunetstatistics_dep], | ||
33 | include_directories: [incdir, configuration_inc]) | ||
34 | executable ('gnunet-service-identity', | ||
35 | gnunetserviceidentity_src, | ||
36 | dependencies: [libgnunetidentity_dep, | ||
37 | libgnunetutil_dep, | ||
38 | libgnunetstatistics_dep], | ||
39 | include_directories: [incdir, configuration_inc]) | ||
40 | |||
diff --git a/src/json/meson.build b/src/json/meson.build index 769e9d4cf..9c3566335 100644 --- a/src/json/meson.build +++ b/src/json/meson.build | |||
@@ -4,14 +4,18 @@ libgnunetjson_src = ['json.c', | |||
4 | 'json_mhd.c', | 4 | 'json_mhd.c', |
5 | 'json_pack.c'] | 5 | 'json_pack.c'] |
6 | 6 | ||
7 | if get_option('monolith') == false | 7 | if get_option('monolith') |
8 | libgnunetjson = library('gnunetjson', | ||
9 | libgnunetjson_src, | ||
10 | dependencies: [libgnunetutil_dep, json_dep, mhd_dep, zlib_dep], | ||
11 | include_directories: [incdir, configuration_inc]) | ||
12 | libgnunetjson_dep = declare_dependency(link_with : libgnunetjson) | ||
13 | else | ||
14 | foreach p : libgnunetjson_src | 8 | foreach p : libgnunetjson_src |
15 | gnunet_src += 'json/' + p | 9 | gnunet_src += 'json/' + p |
16 | endforeach | 10 | endforeach |
11 | subdir_done() | ||
17 | endif | 12 | endif |
13 | |||
14 | libgnunetjson = library('gnunetjson', | ||
15 | libgnunetjson_src, | ||
16 | dependencies: [libgnunetutil_dep, json_dep, mhd_dep, zlib_dep], | ||
17 | include_directories: [incdir, configuration_inc]) | ||
18 | libgnunetjson_dep = declare_dependency(link_with : libgnunetjson) | ||
19 | pkg.generate(libgnunetarm, url: 'https://www.gnunet.org', | ||
20 | description : 'Library for JSON de/serialization') | ||
21 | |||
diff --git a/src/messenger/meson.build b/src/messenger/meson.build index 7555328e1..e2e74c5e7 100644 --- a/src/messenger/meson.build +++ b/src/messenger/meson.build | |||
@@ -28,34 +28,40 @@ gnunetservicemessenger_src = ['gnunet-service-messenger.c', | |||
28 | 'gnunet-service-messenger_room.c', | 28 | 'gnunet-service-messenger_room.c', |
29 | 'gnunet-service-messenger_tunnel.c'] | 29 | 'gnunet-service-messenger_tunnel.c'] |
30 | 30 | ||
31 | if get_option('monolith') == false | 31 | if get_option('monolith') |
32 | libgnunetmessenger = library('gnunetmessenger', | ||
33 | libgnunetmessenger_src, | ||
34 | dependencies: [libgnunetutil_dep, | ||
35 | libgnunetcadet_dep, | ||
36 | libgnunetidentity_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('libdir')) | ||
40 | libgnunetmessenger_dep = declare_dependency(link_with : libgnunetmessenger) | ||
41 | executable ('gnunet-messenger', | ||
42 | 'gnunet-messenger.c', | ||
43 | dependencies: [libgnunetmessenger_dep, | ||
44 | libgnunetutil_dep], | ||
45 | include_directories: [incdir, configuration_inc], | ||
46 | install: true, | ||
47 | install_dir: get_option('bindir')) | ||
48 | executable ('gnunet-service-messenger', | ||
49 | gnunetservicemessenger_src, | ||
50 | dependencies: [libgnunetmessenger_dep, | ||
51 | libgnunetutil_dep, | ||
52 | libgnunetidentity_dep, | ||
53 | libgnunetcadet_dep], | ||
54 | include_directories: [incdir, configuration_inc], | ||
55 | install: true, | ||
56 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
57 | else | ||
58 | foreach p : libgnunetmessenger_src + gnunetservicemessenger_src | 32 | foreach p : libgnunetmessenger_src + gnunetservicemessenger_src |
59 | gnunet_src += 'messenger/' + p | 33 | gnunet_src += 'messenger/' + p |
60 | endforeach | 34 | endforeach |
35 | subdir_done() | ||
61 | endif | 36 | endif |
37 | |||
38 | libgnunetmessenger = library('gnunetmessenger', | ||
39 | libgnunetmessenger_src, | ||
40 | dependencies: [libgnunetutil_dep, | ||
41 | libgnunetcadet_dep, | ||
42 | libgnunetidentity_dep], | ||
43 | include_directories: [incdir, configuration_inc], | ||
44 | install: true, | ||
45 | install_dir: get_option('libdir')) | ||
46 | libgnunetmessenger_dep = declare_dependency(link_with : libgnunetmessenger) | ||
47 | pkg.generate(libgnunetmessenger, url: 'https://www.gnunet.org', | ||
48 | description : 'Provides API to access the GNUnet Messenger subsystem') | ||
49 | |||
50 | |||
51 | executable ('gnunet-messenger', | ||
52 | 'gnunet-messenger.c', | ||
53 | dependencies: [libgnunetmessenger_dep, | ||
54 | libgnunetutil_dep], | ||
55 | include_directories: [incdir, configuration_inc], | ||
56 | install: true, | ||
57 | install_dir: get_option('bindir')) | ||
58 | executable ('gnunet-service-messenger', | ||
59 | gnunetservicemessenger_src, | ||
60 | dependencies: [libgnunetmessenger_dep, | ||
61 | libgnunetutil_dep, | ||
62 | libgnunetidentity_dep, | ||
63 | libgnunetcadet_dep], | ||
64 | include_directories: [incdir, configuration_inc], | ||
65 | install: true, | ||
66 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
67 | |||