diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-29 16:00:14 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-29 16:00:14 +0200 |
commit | bce615c696f9948376a54a6ddf8c253ea39113bf (patch) | |
tree | 321a155eb132d904681c5701919aa6d036b06a5d /src/testing/meson.build | |
parent | d43a6c820edcf173fe4822bdf15a3ecb6ca32cf6 (diff) | |
download | gnunet-bce615c696f9948376a54a6ddf8c253ea39113bf.tar.gz gnunet-bce615c696f9948376a54a6ddf8c253ea39113bf.zip |
BUILD: Fix meson build
Diffstat (limited to 'src/testing/meson.build')
-rw-r--r-- | src/testing/meson.build | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/testing/meson.build b/src/testing/meson.build new file mode 100644 index 000000000..d4bcd346d --- /dev/null +++ b/src/testing/meson.build | |||
@@ -0,0 +1,59 @@ | |||
1 | libgnunettesting_src = [ | ||
2 | 'testing_api_cmd_barrier.c', | ||
3 | 'testing_api_cmd_barrier_reached.c', | ||
4 | 'testing_api_cmd_finish.c', | ||
5 | 'testing_api_cmd_local_test_prepared.c', | ||
6 | 'testing_api_cmd_send_peer_ready.c', | ||
7 | 'testing_api_cmd_block_until_external_trigger.c', | ||
8 | 'testing_api_cmd_netjail_start.c', | ||
9 | 'testing_api_cmd_netjail_start_cmds_helper.c', | ||
10 | 'testing_api_cmd_netjail_stop_cmds_helper.c', | ||
11 | 'testing_api_cmd_netjail_stop.c', | ||
12 | 'testing.c', | ||
13 | 'testing_api_cmd_system_create.c', | ||
14 | 'testing_api_cmd_system_destroy.c', | ||
15 | 'testing_api_cmd_batch.c', | ||
16 | 'testing_api_loop.c', | ||
17 | 'testing_api_traits.c' | ||
18 | ] | ||
19 | |||
20 | gnunettesting_src = ['gnunet-testing.c'] | ||
21 | gnunetservicetesting_src = ['gnunet-service-testing.c'] | ||
22 | |||
23 | configure_file(input : 'testing.conf', | ||
24 | output : 'testing.conf', | ||
25 | configuration : cdata, | ||
26 | install: true, | ||
27 | install_dir: pkgcfgdir) | ||
28 | |||
29 | |||
30 | if get_option('monolith') | ||
31 | foreach p : libgnunettesting_src | ||
32 | gnunet_src += 'testing/' + p | ||
33 | endforeach | ||
34 | subdir_done() | ||
35 | endif | ||
36 | |||
37 | libgnunettesting = library('gnunettesting', | ||
38 | libgnunettesting_src, | ||
39 | soversion: '0', | ||
40 | version: '0.1.0', | ||
41 | dependencies: [libgnunetutil_dep, | ||
42 | m_dep, | ||
43 | libgnunetarm_dep], | ||
44 | include_directories: [incdir, configuration_inc], | ||
45 | install: true, | ||
46 | install_dir: get_option('libdir')) | ||
47 | libgnunettesting_dep = declare_dependency(link_with : libgnunettesting) | ||
48 | pkg.generate(libgnunettesting, url: 'https://www.gnunet.org', | ||
49 | description : 'Provides API for storing GNS records to a database') | ||
50 | |||
51 | executable ('gnunet-testing', | ||
52 | gnunettesting_src, | ||
53 | dependencies: [libgnunettesting_dep, | ||
54 | libgnunetutil_dep, | ||
55 | ], | ||
56 | include_directories: [incdir, configuration_inc], | ||
57 | install: true, | ||
58 | install_dir: get_option('bindir')) | ||
59 | |||