meson: Use dicts for fuzzer definitions

This commit is contained in:
Jan Janssen
2023-02-21 15:10:26 +01:00
parent a9a7153cd2
commit 2ed35b2f3e
12 changed files with 205 additions and 142 deletions
+13 -9
View File
@@ -66,14 +66,18 @@ tests += [
},
]
fuzzers += [
[files('fuzz-nspawn-settings.c'),
[libshared,
libnspawn_core],
[libseccomp]],
fuzzer_nspawn_base = {
'link_with' : [libshared, libnspawn_core],
'dependencies' : libseccomp
}
[files('fuzz-nspawn-oci.c'),
[libshared,
libnspawn_core],
[libseccomp]],
fuzzers += [
{
'sources' : files('fuzz-nspawn-settings.c'),
'base' : fuzzer_nspawn_base,
},
{
'sources' : files('fuzz-nspawn-oci.c'),
'base' : fuzzer_nspawn_base,
},
]