diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-29 16:21:12 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-29 16:21:12 +0200 |
commit | 842935e2522d97d80ec2d63ec01838afe65dba96 (patch) | |
tree | a365478b69aaee0d17288edb142e6b3fb3c3024c | |
parent | 398bb943478f9acfedb49c34bd6c483373ab2023 (diff) | |
download | gnunet-842935e2522d97d80ec2d63ec01838afe65dba96.tar.gz gnunet-842935e2522d97d80ec2d63ec01838afe65dba96.zip |
BUILD: Meson add more build targets
m--------- | contrib/gana | 0 | ||||
m--------- | contrib/sphinx | 0 | ||||
-rw-r--r-- | src/meson.build | 6 | ||||
-rw-r--r-- | src/testbed-logger/meson.build | 30 | ||||
-rw-r--r-- | src/testbed/meson.build | 68 | ||||
-rw-r--r-- | src/testing/meson.build | 11 | ||||
-rw-r--r-- | src/transport/meson.build | 16 |
7 files changed, 126 insertions, 5 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/meson.build b/src/meson.build index ee7e53fc2..fa993e220 100644 --- a/src/meson.build +++ b/src/meson.build | |||
@@ -31,10 +31,8 @@ subdir('fragmentation') | |||
31 | subdir('transport') | 31 | subdir('transport') |
32 | #subdir('ats-tool') | 32 | #subdir('ats-tool') |
33 | subdir('core') | 33 | subdir('core') |
34 | if get_option('testbed') | 34 | subdir('testbed-logger') |
35 | #subdir('testbed-logger') | 35 | subdir('testbed') |
36 | subdir('testbed') | ||
37 | endif | ||
38 | subdir('nse') | 36 | subdir('nse') |
39 | subdir('dhtu') | 37 | subdir('dhtu') |
40 | subdir('dht') | 38 | subdir('dht') |
diff --git a/src/testbed-logger/meson.build b/src/testbed-logger/meson.build new file mode 100644 index 000000000..4af126abe --- /dev/null +++ b/src/testbed-logger/meson.build | |||
@@ -0,0 +1,30 @@ | |||
1 | libgnunettestbedlogger_src = ['testbed_logger_api.c'] | ||
2 | |||
3 | configure_file(input : 'testbed-logger.conf', | ||
4 | output : 'testbed-logger.conf', | ||
5 | configuration : cdata, | ||
6 | install: true, | ||
7 | install_dir: pkgcfgdir) | ||
8 | |||
9 | |||
10 | if get_option('monolith') | ||
11 | subdir_done() | ||
12 | endif | ||
13 | |||
14 | libgnunettestbedlogger = library('gnunettestbed', | ||
15 | libgnunettestbedlogger_src, | ||
16 | soversion: '0', | ||
17 | version: '0.0.0', | ||
18 | dependencies: [libgnunetutil_dep], | ||
19 | include_directories: [incdir, configuration_inc], | ||
20 | install: true, | ||
21 | install_dir: get_option('libdir')) | ||
22 | libgnunettestbedlogger_dep = declare_dependency(link_with : libgnunettestbedlogger) | ||
23 | |||
24 | |||
25 | executable ('gnunet-service-testbed-logger', | ||
26 | ['gnunet-service-testbed-logger.c'], | ||
27 | dependencies: [libgnunetutil_dep], | ||
28 | include_directories: [incdir, configuration_inc], | ||
29 | install:true, | ||
30 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
diff --git a/src/testbed/meson.build b/src/testbed/meson.build index 927d1248c..0662ba614 100644 --- a/src/testbed/meson.build +++ b/src/testbed/meson.build | |||
@@ -1,3 +1,17 @@ | |||
1 | libgnunettestbed_src = [ | ||
2 | 'testbed_api.c', | ||
3 | 'testbed_api_hosts.c', | ||
4 | 'testbed_api_operations.c', | ||
5 | 'testbed_api_peers.c', | ||
6 | 'testbed_api_services.c', | ||
7 | 'testbed_api_statistics.c', | ||
8 | 'testbed_api_testbed.c', | ||
9 | 'testbed_api_test.c', | ||
10 | 'testbed_api_topology.c', | ||
11 | 'testbed_api_sd.c', | ||
12 | 'testbed_api_barriers.c' | ||
13 | ] | ||
14 | |||
1 | configure_file(input : 'testbed.conf', | 15 | configure_file(input : 'testbed.conf', |
2 | output : 'testbed.conf', | 16 | output : 'testbed.conf', |
3 | configuration : cdata, | 17 | configuration : cdata, |
@@ -8,6 +22,26 @@ configure_file(input : 'testbed.conf', | |||
8 | if get_option('monolith') | 22 | if get_option('monolith') |
9 | subdir_done() | 23 | subdir_done() |
10 | endif | 24 | endif |
25 | |||
26 | libgnunettestbed = library('gnunettestbed', | ||
27 | libgnunettestbed_src, | ||
28 | soversion: '0', | ||
29 | version: '0.1.0', | ||
30 | dependencies: [libgnunetutil_dep, | ||
31 | zlib_dep, | ||
32 | libgnunetstatistics_dep, | ||
33 | libgnunethello_dep, | ||
34 | libgnunettesting_dep, | ||
35 | libgnunettransport_dep, | ||
36 | libgnunetarm_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('libdir')) | ||
40 | libgnunettestbed_dep = declare_dependency(link_with : libgnunettestbed) | ||
41 | pkg.generate(libgnunettestbed, url: 'https://www.gnunet.org', | ||
42 | description : 'Provides API for testbed') | ||
43 | |||
44 | |||
11 | executable ('gnunet-helper-testbed', | 45 | executable ('gnunet-helper-testbed', |
12 | ['gnunet-helper-testbed.c'], | 46 | ['gnunet-helper-testbed.c'], |
13 | dependencies: [libgnunetutil_dep, | 47 | dependencies: [libgnunetutil_dep, |
@@ -15,6 +49,8 @@ executable ('gnunet-helper-testbed', | |||
15 | libgnunethello_dep, | 49 | libgnunethello_dep, |
16 | libgnunetpeerinfo_dep, | 50 | libgnunetpeerinfo_dep, |
17 | libgnunetstatistics_dep, | 51 | libgnunetstatistics_dep, |
52 | libgnunettestbed_dep, | ||
53 | libgnunettesting_dep, | ||
18 | libgnunettransport_dep, | 54 | libgnunettransport_dep, |
19 | zlib_dep], | 55 | zlib_dep], |
20 | include_directories: [incdir, configuration_inc], | 56 | include_directories: [incdir, configuration_inc], |
@@ -44,3 +80,35 @@ executable ('gnunet-daemon-underlay', | |||
44 | include_directories: [incdir, configuration_inc], | 80 | include_directories: [incdir, configuration_inc], |
45 | install:true, | 81 | install:true, |
46 | install_dir: get_option('libdir')/'gnunet'/'libexec') | 82 | install_dir: get_option('libdir')/'gnunet'/'libexec') |
83 | |||
84 | executable ('gnunet-service-testbed', | ||
85 | ['gnunet-service-testbed.c', | ||
86 | 'gnunet-service-testbed_links.c', | ||
87 | 'gnunet-service-testbed_peers.c', | ||
88 | 'gnunet-service-testbed_cache.c', | ||
89 | 'gnunet-service-testbed_oc.c', | ||
90 | 'gnunet-service-testbed_cpustatus.c', | ||
91 | 'gnunet-service-testbed_meminfo.c', | ||
92 | 'gnunet-service-testbed_barriers.c', | ||
93 | 'gnunet-service-testbed_connectionpool.c'], | ||
94 | dependencies: [libgnunetutil_dep, | ||
95 | libgnunetcore_dep, | ||
96 | libgnunetats_dep, | ||
97 | libgnunetarm_dep, | ||
98 | libgnunethello_dep, | ||
99 | libgnunettestbed_dep, | ||
100 | libgnunettesting_dep, | ||
101 | libgnunettransport_dep, | ||
102 | zlib_dep], | ||
103 | include_directories: [incdir, configuration_inc], | ||
104 | install:true, | ||
105 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
106 | |||
107 | executable ('gnunet-daemon-latency-logger', | ||
108 | ['gnunet-daemon-latency-logger.c'], | ||
109 | dependencies: [libgnunetutil_dep, | ||
110 | libgnunetats_dep, | ||
111 | sqlite_dep], | ||
112 | include_directories: [incdir, configuration_inc], | ||
113 | install:true, | ||
114 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
diff --git a/src/testing/meson.build b/src/testing/meson.build index d4bcd346d..74adaa738 100644 --- a/src/testing/meson.build +++ b/src/testing/meson.build | |||
@@ -46,7 +46,7 @@ libgnunettesting = library('gnunettesting', | |||
46 | install_dir: get_option('libdir')) | 46 | install_dir: get_option('libdir')) |
47 | libgnunettesting_dep = declare_dependency(link_with : libgnunettesting) | 47 | libgnunettesting_dep = declare_dependency(link_with : libgnunettesting) |
48 | pkg.generate(libgnunettesting, url: 'https://www.gnunet.org', | 48 | pkg.generate(libgnunettesting, url: 'https://www.gnunet.org', |
49 | description : 'Provides API for storing GNS records to a database') | 49 | description : 'Provides API for gnunet testing') |
50 | 50 | ||
51 | executable ('gnunet-testing', | 51 | executable ('gnunet-testing', |
52 | gnunettesting_src, | 52 | gnunettesting_src, |
@@ -57,3 +57,12 @@ executable ('gnunet-testing', | |||
57 | install: true, | 57 | install: true, |
58 | install_dir: get_option('bindir')) | 58 | install_dir: get_option('bindir')) |
59 | 59 | ||
60 | executable ('gnunet-cmds-helper', | ||
61 | ['gnunet-cmds-helper.c'], | ||
62 | dependencies: [libgnunettesting_dep, | ||
63 | libgnunetutil_dep, | ||
64 | ], | ||
65 | include_directories: [incdir, configuration_inc], | ||
66 | install: true, | ||
67 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
68 | |||
diff --git a/src/transport/meson.build b/src/transport/meson.build index 9a3a2ebd0..a57dc968a 100644 --- a/src/transport/meson.build +++ b/src/transport/meson.build | |||
@@ -22,6 +22,11 @@ configure_file(input : 'transport.conf.in', | |||
22 | install: true, | 22 | install: true, |
23 | install_dir: pkgcfgdir) | 23 | install_dir: pkgcfgdir) |
24 | 24 | ||
25 | configure_file(input : 'gnunet-transport-certificate-creation', | ||
26 | output : 'gnuent-transport-certificate-creation.in', | ||
27 | configuration : cdata, | ||
28 | install: true, | ||
29 | install_dir: get_option('bindir')) | ||
25 | 30 | ||
26 | if get_option('monolith') | 31 | if get_option('monolith') |
27 | foreach p : libgnunettransport_src #+ libgnunettransportapplication_src + libgnunettransportcore_src + libgnunettransportcommunicator_src + libgnunettransportmonitor_src + gnunetservicetransport_src | 32 | foreach p : libgnunettransport_src #+ libgnunettransportapplication_src + libgnunettransportcore_src + libgnunettransportcommunicator_src + libgnunettransportmonitor_src + gnunetservicetransport_src |
@@ -189,3 +194,14 @@ executable ('gnunet-communicator-tcp', | |||
189 | install: true, | 194 | install: true, |
190 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | 195 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') |
191 | 196 | ||
197 | executable ('gnunet-transport', | ||
198 | ['gnunet-transport.c'], | ||
199 | dependencies: [libgnunettransportcommunicator_dep, | ||
200 | libgnunethello_dep, | ||
201 | libgnunettransport_dep, | ||
202 | libgnunetpeerstore_dep, | ||
203 | libgnunetutil_dep], | ||
204 | include_directories: [incdir, configuration_inc], | ||
205 | install: true, | ||
206 | install_dir: get_option('bindir')) | ||
207 | |||