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