diff options
Diffstat (limited to 'src/lib/gnsrecord/meson.build')
-rw-r--r-- | src/lib/gnsrecord/meson.build | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src/lib/gnsrecord/meson.build b/src/lib/gnsrecord/meson.build new file mode 100644 index 000000000..dd71695ca --- /dev/null +++ b/src/lib/gnsrecord/meson.build | |||
@@ -0,0 +1,86 @@ | |||
1 | libgnunetgnsrecord_src = ['gnsrecord.c', | ||
2 | 'gnsrecord_serialization.c', | ||
3 | 'gnsrecord_crypto.c', | ||
4 | 'gnsrecord_pow.c', | ||
5 | 'gnsrecord_misc.c'] | ||
6 | libgnunetgnsrecordjson_src = ['json_gnsrecord.c'] | ||
7 | |||
8 | libgnunetgnsrecord = library('gnunetgnsrecord', | ||
9 | libgnunetgnsrecord_src, | ||
10 | soversion: '0', | ||
11 | version: '0.0.0', | ||
12 | dependencies: [libgnunetutil_dep, | ||
13 | sodium_dep, | ||
14 | gcrypt_dep], | ||
15 | include_directories: [incdir, configuration_inc], | ||
16 | install: true, | ||
17 | install_dir: get_option('libdir')) | ||
18 | libgnunetgnsrecord_dep = declare_dependency(link_with : libgnunetgnsrecord) | ||
19 | pkg.generate(libgnunetgnsrecord, url: 'https://www.gnunet.org', | ||
20 | description : 'Provides API for manipulating GNS records') | ||
21 | |||
22 | |||
23 | libgnunetgnsrecordjson = library('gnunetgnsrecordjson', | ||
24 | libgnunetgnsrecordjson_src, | ||
25 | soversion: '0', | ||
26 | version: '0.0.0', | ||
27 | dependencies: [libgnunetutil_dep, libgnunetgnsrecord_dep, json_dep], | ||
28 | include_directories: [incdir, configuration_inc], | ||
29 | install: true, | ||
30 | install_dir: get_option('libdir')) | ||
31 | libgnunetgnsrecordjson_dep = declare_dependency(link_with : libgnunetgnsrecordjson) | ||
32 | |||
33 | testgnsrecrd_perf_crypto = executable ('perf_gnsrecord_crypto', | ||
34 | ['perf_gnsrecord_crypto.c'], | ||
35 | dependencies: [libgnunetutil_dep, | ||
36 | libgnunetgnsrecord_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | build_by_default: false, | ||
39 | install: false) | ||
40 | testgnsrecrd_test_crypto = executable ('test_gnsrecord_crypto', | ||
41 | ['test_gnsrecord_crypto.c'], | ||
42 | dependencies: [libgnunetutil_dep, | ||
43 | libgnunetgnsrecord_dep], | ||
44 | include_directories: [incdir, configuration_inc], | ||
45 | build_by_default: false, | ||
46 | install: false) | ||
47 | testgnsrecrd_test_serialization = executable ('test_gnsrecord_serialization', | ||
48 | ['test_gnsrecord_serialization.c'], | ||
49 | dependencies: [libgnunetutil_dep, | ||
50 | libgnunetgnsrecord_dep], | ||
51 | include_directories: [incdir, configuration_inc], | ||
52 | build_by_default: false, | ||
53 | install: false) | ||
54 | testgnsrecrd_test_tvs = executable ('test_gnsrecord_testvectors', | ||
55 | ['test_gnsrecord_testvectors.c'], | ||
56 | dependencies: [libgnunetutil_dep, | ||
57 | libgnunetgnsrecord_dep], | ||
58 | include_directories: [incdir, configuration_inc], | ||
59 | build_by_default: false, | ||
60 | install: false) | ||
61 | testgnsrecrd_test_exp = executable ('test_gnsrecord_block_expiration', | ||
62 | ['test_gnsrecord_block_expiration.c'], | ||
63 | dependencies: [libgnunetutil_dep, | ||
64 | libgnunetgnsrecord_dep], | ||
65 | include_directories: [incdir, configuration_inc], | ||
66 | build_by_default: false, | ||
67 | install: false) | ||
68 | |||
69 | test('perf_gnsrecord_crypto', testgnsrecrd_perf_crypto, | ||
70 | workdir: meson.current_build_dir(), | ||
71 | suite: ['gnsrecord', 'perf']) | ||
72 | test('test_gnsrecord_crypto', testgnsrecrd_test_crypto, | ||
73 | workdir: meson.current_build_dir(), | ||
74 | suite: ['gnsrecord']) | ||
75 | test('test_gnsrecord_serialization', testgnsrecrd_test_serialization, | ||
76 | workdir: meson.current_build_dir(), | ||
77 | suite: ['gnsrecord']) | ||
78 | test('test_gnsrecord_block_expiration', testgnsrecrd_test_exp, | ||
79 | workdir: meson.current_build_dir(), | ||
80 | suite: ['gnsrecord']) | ||
81 | test('test_gnsrecord_serialization', testgnsrecrd_test_serialization, | ||
82 | workdir: meson.current_build_dir(), | ||
83 | suite: ['gnsrecord']) | ||
84 | test('test_gnsrecord_testvectors', testgnsrecrd_test_tvs, | ||
85 | workdir: meson.current_build_dir(), | ||
86 | suite: ['gnsrecord']) | ||