Skip to content

Commit 653b499

Browse files
committed
Feature-gate TV generators
1 parent d42bd1c commit 653b499

File tree

2 files changed

+44
-30
lines changed

2 files changed

+44
-30
lines changed

meson_options.txt

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,43 @@
1-
option('openssl',
1+
option(
2+
'openssl',
23
type: 'feature',
34
value: 'auto',
4-
description: 'Use OpenSSL for AES-CTR implementation'
5+
description: 'Use OpenSSL for AES-CTR implementation',
56
)
6-
option('SHA3',
7+
option(
8+
'SHA3',
79
type: 'combo',
810
choices: ['auto', 'opt64', 'plain32', 'avx2', 'armv8a-neon', 's390-cpacf'],
911
value: 'auto',
10-
description: 'Select SHA3 implementation'
12+
description: 'Select SHA3 implementation',
1113
)
12-
option('valgrind',
14+
option(
15+
'valgrind',
1316
type: 'feature',
1417
value: 'disabled',
15-
description: 'Use valgrind for timing checks'
18+
description: 'Use valgrind for timing checks',
1619
)
17-
option('benchmarks',
20+
option(
21+
'benchmarks',
1822
type: 'feature',
1923
value: 'auto',
20-
description: 'Build benchmark executables'
24+
description: 'Build benchmark executables',
2125
)
22-
option('catch2',
26+
option(
27+
'catch2',
2328
type: 'feature',
2429
value: 'auto',
25-
description: 'Use catch2 for benchmarks'
30+
description: 'Use catch2 for benchmarks',
2631
)
27-
option('march-native',
32+
option(
33+
'march-native',
2834
type: 'feature',
2935
value: 'disabled',
30-
description: 'Build with -march=native'
36+
description: 'Build with -march=native',
3137
)
38+
option(
39+
'tv-generators',
40+
type: 'feature',
41+
value: 'disabled',
42+
description: 'Build with test vector generators',
43+
)

tests/meson.build

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,23 @@ if boost_test.found()
125125
endforeach
126126
endif
127127

128-
executable(
129-
'generate_bavc_tv',
130-
files('generate_bavc_tv.cpp'),
131-
dependencies: [libfaest_static_dependency],
132-
include_directories: include_directories,
133-
cpp_args: defines + cpp_flags,
134-
link_args: linker_flags,
135-
override_options: ['b_lto=false'],
136-
)
137-
executable(
138-
'generate_prg_tv',
139-
files('generate_prg_tv.cpp'),
140-
dependencies: [libfaest_static_dependency],
141-
include_directories: include_directories,
142-
cpp_args: defines + cpp_flags,
143-
link_args: linker_flags,
144-
override_options: ['b_lto=false'],
145-
)
128+
if get_option('tv-generators').enabled()
129+
executable(
130+
'generate_bavc_tv',
131+
files('generate_bavc_tv.cpp'),
132+
dependencies: [libfaest_static_dependency],
133+
include_directories: include_directories,
134+
cpp_args: defines + cpp_flags,
135+
link_args: linker_flags,
136+
override_options: ['b_lto=false'],
137+
)
138+
executable(
139+
'generate_prg_tv',
140+
files('generate_prg_tv.cpp'),
141+
dependencies: [libfaest_static_dependency],
142+
include_directories: include_directories,
143+
cpp_args: defines + cpp_flags,
144+
link_args: linker_flags,
145+
override_options: ['b_lto=false'],
146+
)
147+
endif

0 commit comments

Comments
 (0)