diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-27 17:36:36 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-27 17:36:36 +0200 |
commit | c076a67de45e9214cea48ff74456861e80984d87 (patch) | |
tree | 033e2040872e5f52051343009f378b04f3eaa57f | |
parent | 43ebcad0d712f59bf987dea55c88e6761a1aad5c (diff) | |
download | gnunet-c076a67de45e9214cea48ff74456861e80984d87.tar.gz gnunet-c076a67de45e9214cea48ff74456861e80984d87.zip |
BUILD: Meson add testbed option (dysfunct)
-rw-r--r-- | meson.options | 1 | ||||
-rw-r--r-- | src/consensus/meson.build | 9 | ||||
-rw-r--r-- | src/dht/meson.build | 4 | ||||
-rw-r--r-- | src/fs/meson.build | 7 | ||||
-rw-r--r-- | src/gns/meson.build | 8 | ||||
-rw-r--r-- | src/meson.build | 5 | ||||
-rw-r--r-- | src/namestore/meson.build | 14 | ||||
-rw-r--r-- | src/nat-auto/meson.build | 15 | ||||
-rw-r--r-- | src/nat/meson.build | 10 | ||||
-rw-r--r-- | src/regex/meson.build | 11 | ||||
-rw-r--r-- | src/testbed/meson.build | 46 | ||||
-rw-r--r-- | src/util/meson.build | 2 |
12 files changed, 126 insertions, 6 deletions
diff --git a/meson.options b/meson.options index 0d5b7e325..9959aaedc 100644 --- a/meson.options +++ b/meson.options | |||
@@ -1,5 +1,6 @@ | |||
1 | # Build options | 1 | # Build options |
2 | option('monolith', type : 'boolean', value : false, description: 'Build a single, monolithic libgnunet shlib') | 2 | option('monolith', type : 'boolean', value : false, description: 'Build a single, monolithic libgnunet shlib') |
3 | option('testbed', type : 'boolean', value : false, description: 'Build the testbed') | ||
3 | option('experimental', type : 'boolean', value : false, description: 'Build experimental components') | 4 | option('experimental', type : 'boolean', value : false, description: 'Build experimental components') |
4 | option('logging', type : 'string', value: 'yes', description: 'Log setting. Can be set to "yes" (logging, default), "no" (no logging), "verbose" (extra loggin"), veryverbose (even more logging)') | 5 | option('logging', type : 'string', value: 'yes', description: 'Log setting. Can be set to "yes" (logging, default), "no" (no logging), "verbose" (extra loggin"), veryverbose (even more logging)') |
5 | 6 | ||
diff --git a/src/consensus/meson.build b/src/consensus/meson.build index b23b8cdff..b67017ab3 100644 --- a/src/consensus/meson.build +++ b/src/consensus/meson.build | |||
@@ -27,6 +27,15 @@ pkg.generate(libgnunetconsensus, url: 'https://www.gnunet.org', | |||
27 | description : 'Provides API for accessing the consensus service') | 27 | description : 'Provides API for accessing the consensus service') |
28 | libgnunetarm_dep = declare_dependency(link_with : libgnunetarm) | 28 | libgnunetarm_dep = declare_dependency(link_with : libgnunetarm) |
29 | libgnunetconsensus_dep = declare_dependency(link_with : libgnunetconsensus) | 29 | libgnunetconsensus_dep = declare_dependency(link_with : libgnunetconsensus) |
30 | |||
31 | shared_module('gnunet_plugin_block_consensus', | ||
32 | ['plugin_block_consensus.c'], | ||
33 | dependencies: [libgnunetutil_dep, | ||
34 | libgnunetblock_dep], | ||
35 | include_directories: [incdir, configuration_inc], | ||
36 | install:true, | ||
37 | install_dir: get_option('libdir')/'gnunet') | ||
38 | |||
30 | executable ('gnunet-service-consensus', | 39 | executable ('gnunet-service-consensus', |
31 | gnunetserviceconsensus_src, | 40 | gnunetserviceconsensus_src, |
32 | dependencies: [libgnunetconsensus_dep, | 41 | dependencies: [libgnunetconsensus_dep, |
diff --git a/src/dht/meson.build b/src/dht/meson.build index 83ce8ad9e..f42ae354c 100644 --- a/src/dht/meson.build +++ b/src/dht/meson.build | |||
@@ -35,7 +35,9 @@ shared_module('gnunet_plugin_block_dht', | |||
35 | libgnunethello_dep, | 35 | libgnunethello_dep, |
36 | libgnunetblock_dep, | 36 | libgnunetblock_dep, |
37 | libgnunetblockgroup_dep], | 37 | libgnunetblockgroup_dep], |
38 | include_directories: [incdir, configuration_inc]) | 38 | include_directories: [incdir, configuration_inc], |
39 | install:true, | ||
40 | install_dir: get_option('libdir')/'gnunet') | ||
39 | 41 | ||
40 | executable ('gnunet-dht', | 42 | executable ('gnunet-dht', |
41 | gnunetservicedht_src, | 43 | gnunetservicedht_src, |
diff --git a/src/fs/meson.build b/src/fs/meson.build index ca0b7ef95..63a5d9a39 100644 --- a/src/fs/meson.build +++ b/src/fs/meson.build | |||
@@ -55,6 +55,13 @@ libgnunetfs_dep = declare_dependency(link_with : libgnunetfs) | |||
55 | pkg.generate(libgnunetfs, url: 'https://www.gnunet.org', | 55 | pkg.generate(libgnunetfs, url: 'https://www.gnunet.org', |
56 | description : 'Provides API for GNUnet File-Sharing service') | 56 | description : 'Provides API for GNUnet File-Sharing service') |
57 | 57 | ||
58 | shared_module('gnunet_plugin_block_fs', | ||
59 | ['plugin_block_fs.c'], | ||
60 | dependencies: [libgnunetutil_dep, | ||
61 | libgnunetblockgroup_dep], | ||
62 | include_directories: [incdir, configuration_inc], | ||
63 | install:true, | ||
64 | install_dir: get_option('libdir')/'gnunet') | ||
58 | 65 | ||
59 | executable ('gnunet-search', | 66 | executable ('gnunet-search', |
60 | 'gnunet-search.c', | 67 | 'gnunet-search.c', |
diff --git a/src/gns/meson.build b/src/gns/meson.build index bb9fac065..bce7dccb5 100644 --- a/src/gns/meson.build +++ b/src/gns/meson.build | |||
@@ -55,6 +55,14 @@ shared_module('gnunet_plugin_gnsrecord_gns', | |||
55 | include_directories: [incdir, configuration_inc], | 55 | include_directories: [incdir, configuration_inc], |
56 | install: true, | 56 | install: true, |
57 | install_dir: get_option('libdir')/'gnunet') | 57 | install_dir: get_option('libdir')/'gnunet') |
58 | shared_module('gnunet_plugin_block_gns', | ||
59 | ['plugin_block_gns.c'], | ||
60 | dependencies: [libgnunetutil_dep, | ||
61 | libgnunetgnsrecord_dep, | ||
62 | libgnunetblockgroup_dep], | ||
63 | include_directories: [incdir, configuration_inc], | ||
64 | install:true, | ||
65 | install_dir: get_option('libdir')/'gnunet') | ||
58 | 66 | ||
59 | 67 | ||
60 | executable ('gnunet-gns', | 68 | executable ('gnunet-gns', |
diff --git a/src/meson.build b/src/meson.build index 3da201f9b..732e3a62a 100644 --- a/src/meson.build +++ b/src/meson.build | |||
@@ -31,7 +31,10 @@ subdir('fragmentation') | |||
31 | subdir('transport') | 31 | subdir('transport') |
32 | #subdir('ats-tool') | 32 | #subdir('ats-tool') |
33 | subdir('core') | 33 | subdir('core') |
34 | ##subdir('$(TESTBED)') | 34 | if get_option('testbed') |
35 | #subdir('testbed-logger') | ||
36 | subdir('testbed') | ||
37 | endif | ||
35 | subdir('nse') | 38 | subdir('nse') |
36 | subdir('dhtu') | 39 | subdir('dhtu') |
37 | subdir('dht') | 40 | subdir('dht') |
diff --git a/src/namestore/meson.build b/src/namestore/meson.build index e57bf46e7..133c98d6c 100644 --- a/src/namestore/meson.build +++ b/src/namestore/meson.build | |||
@@ -106,4 +106,18 @@ executable ('gnunet-service-namestore', | |||
106 | include_directories: [incdir, configuration_inc], | 106 | include_directories: [incdir, configuration_inc], |
107 | install: true, | 107 | install: true, |
108 | install_dir: get_option('libdir')/'gnunet'/'libexec') | 108 | install_dir: get_option('libdir')/'gnunet'/'libexec') |
109 | executable ('gnunet-namestore-fcfsd', | ||
110 | ['gnunet-namestore-fcfsd.c'], | ||
111 | dependencies: [libgnunetnamestore_dep, | ||
112 | libgnunetutil_dep, | ||
113 | libgnunetnamecache_dep, | ||
114 | libgnunetgnsrecord_dep, | ||
115 | libgnunetidentity_dep, | ||
116 | mhd_dep, | ||
117 | json_dep, | ||
118 | libgnunetjson_dep, | ||
119 | libgnunetstatistics_dep], | ||
120 | include_directories: [incdir, configuration_inc], | ||
121 | install: true, | ||
122 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
109 | 123 | ||
diff --git a/src/nat-auto/meson.build b/src/nat-auto/meson.build index 9c6f5a0d0..a7d31d005 100644 --- a/src/nat-auto/meson.build +++ b/src/nat-auto/meson.build | |||
@@ -1,7 +1,8 @@ | |||
1 | libgnunetnatauto_src = ['nat_auto_api.c', | 1 | libgnunetnatauto_src = ['nat_auto_api.c', |
2 | 'nat_auto_api_test.c'] | 2 | 'nat_auto_api_test.c'] |
3 | 3 | ||
4 | gnunetservicenatauto_src = ['gnunet-nat-server.c'] | 4 | gnunetservernat_src = ['gnunet-nat-server.c'] |
5 | gnunetservicenatauto_src = ['gnunet-service-nat-auto.c'] | ||
5 | 6 | ||
6 | configure_file(input : 'nat-auto.conf.in', | 7 | configure_file(input : 'nat-auto.conf.in', |
7 | output : 'nat-auto.conf', | 8 | output : 'nat-auto.conf', |
@@ -10,7 +11,7 @@ configure_file(input : 'nat-auto.conf.in', | |||
10 | install_dir: pkgcfgdir) | 11 | install_dir: pkgcfgdir) |
11 | 12 | ||
12 | if get_option('monolith') | 13 | if get_option('monolith') |
13 | foreach p : libgnunetnatauto_src + gnunetservicenatauto_src | 14 | foreach p : libgnunetnatauto_src + gnunetservernatauto_src + gnunetservicenatauto_src |
14 | gnunet_src += 'nat-auto/' + p | 15 | gnunet_src += 'nat-auto/' + p |
15 | endforeach | 16 | endforeach |
16 | subdir_done() | 17 | subdir_done() |
@@ -32,9 +33,17 @@ executable ('gnunet-nat-auto', | |||
32 | install: true, | 33 | install: true, |
33 | install_dir: get_option('bindir')) | 34 | install_dir: get_option('bindir')) |
34 | executable ('gnunet-nat-server', | 35 | executable ('gnunet-nat-server', |
35 | gnunetservicenatauto_src, | 36 | gnunetservernat_src, |
36 | dependencies: [libgnunetnatauto_dep, libgnunetutil_dep, libgnunetnat_dep], | 37 | dependencies: [libgnunetnatauto_dep, libgnunetutil_dep, libgnunetnat_dep], |
37 | include_directories: [incdir, configuration_inc], | 38 | include_directories: [incdir, configuration_inc], |
38 | install: true, | 39 | install: true, |
39 | install_dir: get_option('libdir')/'gnunet'/'libexec') | 40 | install_dir: get_option('libdir')/'gnunet'/'libexec') |
41 | executable ('gnunet-service-nat-auto', | ||
42 | gnunetservicenatauto_src, | ||
43 | dependencies: [libgnunetnatauto_dep, libgnunetutil_dep, | ||
44 | libgnunetnat_dep, | ||
45 | libgnunetstatistics_dep], | ||
46 | include_directories: [incdir, configuration_inc], | ||
47 | install: true, | ||
48 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
40 | 49 | ||
diff --git a/src/nat/meson.build b/src/nat/meson.build index 415d6cbb3..e629f6411 100644 --- a/src/nat/meson.build +++ b/src/nat/meson.build | |||
@@ -33,6 +33,16 @@ libgnunetnat = library('gnunetnat', | |||
33 | libgnunetnat_dep = declare_dependency(link_with : libgnunetnat) | 33 | 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 | 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) | ||
36 | 46 | ||
37 | executable ('gnunet-nat', | 47 | executable ('gnunet-nat', |
38 | ['gnunet-nat.c'], | 48 | ['gnunet-nat.c'], |
diff --git a/src/regex/meson.build b/src/regex/meson.build index f1bbfa1b8..c8c3fd506 100644 --- a/src/regex/meson.build +++ b/src/regex/meson.build | |||
@@ -41,6 +41,17 @@ libgnunetregexblock = library('gnunetregexblock', | |||
41 | install_dir: get_option('libdir')) | 41 | install_dir: get_option('libdir')) |
42 | libgnunetregexblock_dep = declare_dependency(link_with : libgnunetregexblock) | 42 | libgnunetregexblock_dep = declare_dependency(link_with : libgnunetregexblock) |
43 | 43 | ||
44 | shared_module('gnunet_plugin_block_regex', | ||
45 | ['plugin_block_regex.c'], | ||
46 | dependencies: [libgnunetutil_dep, | ||
47 | libgnunetregexblock_dep, | ||
48 | libgnunetblock_dep, | ||
49 | libgnunetblockgroup_dep], | ||
50 | include_directories: [incdir, configuration_inc], | ||
51 | install:true, | ||
52 | install_dir: get_option('libdir')/'gnunet') | ||
53 | |||
54 | |||
44 | executable ('gnunet-service-regex', | 55 | executable ('gnunet-service-regex', |
45 | gnunetserviceregex_src, | 56 | gnunetserviceregex_src, |
46 | dependencies: [libgnunetregex_dep, libgnunetutil_dep, | 57 | dependencies: [libgnunetregex_dep, libgnunetutil_dep, |
diff --git a/src/testbed/meson.build b/src/testbed/meson.build new file mode 100644 index 000000000..927d1248c --- /dev/null +++ b/src/testbed/meson.build | |||
@@ -0,0 +1,46 @@ | |||
1 | configure_file(input : 'testbed.conf', | ||
2 | output : 'testbed.conf', | ||
3 | configuration : cdata, | ||
4 | install: true, | ||
5 | install_dir: pkgcfgdir) | ||
6 | |||
7 | |||
8 | if get_option('monolith') | ||
9 | subdir_done() | ||
10 | endif | ||
11 | executable ('gnunet-helper-testbed', | ||
12 | ['gnunet-helper-testbed.c'], | ||
13 | dependencies: [libgnunetutil_dep, | ||
14 | libgnunetcore_dep, | ||
15 | libgnunethello_dep, | ||
16 | libgnunetpeerinfo_dep, | ||
17 | libgnunetstatistics_dep, | ||
18 | libgnunettransport_dep, | ||
19 | zlib_dep], | ||
20 | include_directories: [incdir, configuration_inc], | ||
21 | install:true, | ||
22 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
23 | executable ('gnunet-daemon-testbed-blacklist', | ||
24 | ['gnunet-daemon-testbed-blacklist.c'], | ||
25 | dependencies: [libgnunetutil_dep, | ||
26 | libgnunetcore_dep, | ||
27 | libgnunethello_dep, | ||
28 | libgnunetpeerinfo_dep, | ||
29 | libgnunetstatistics_dep, | ||
30 | libgnunettransport_dep], | ||
31 | include_directories: [incdir, configuration_inc], | ||
32 | install:true, | ||
33 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
34 | |||
35 | executable ('gnunet-daemon-underlay', | ||
36 | ['gnunet-daemon-testbed-underlay.c'], | ||
37 | dependencies: [libgnunetutil_dep, | ||
38 | libgnunetcore_dep, | ||
39 | libgnunethello_dep, | ||
40 | libgnunetpeerinfo_dep, | ||
41 | libgnunetstatistics_dep, | ||
42 | libgnunettransport_dep, | ||
43 | sqlite_dep], | ||
44 | include_directories: [incdir, configuration_inc], | ||
45 | install:true, | ||
46 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
diff --git a/src/util/meson.build b/src/util/meson.build index a9d1178b1..aa9fd8e3a 100644 --- a/src/util/meson.build +++ b/src/util/meson.build | |||
@@ -152,7 +152,7 @@ executable ('gnunet-config-diff', | |||
152 | include_directories: [incdir, configuration_inc], | 152 | include_directories: [incdir, configuration_inc], |
153 | install: false) | 153 | install: false) |
154 | 154 | ||
155 | executable ('gnunet-service-resolver-arm', | 155 | executable ('gnunet-service-resolver', |
156 | gnunetserviceresolver_src, | 156 | gnunetserviceresolver_src, |
157 | dependencies: [libgnunetutil_dep], | 157 | dependencies: [libgnunetutil_dep], |
158 | include_directories: [incdir, configuration_inc], | 158 | include_directories: [incdir, configuration_inc], |