diff options
author | Jan Janssen <medhefgo@web.de> | 2023-01-25 17:39:12 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2023-02-21 15:10:26 +0100 |
commit | 2ed35b2f3e183ad6455142bbca455167e3b08f39 (patch) | |
tree | 3b13e1f5bab5eae0eb12310793e54de6326819b6 /src/journal | |
parent | meson: Add simple_fuzzers list (diff) | |
download | systemd-2ed35b2f3e183ad6455142bbca455167e3b08f39.tar.xz systemd-2ed35b2f3e183ad6455142bbca455167e3b08f39.zip |
meson: Use dicts for fuzzer definitions
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/meson.build | 82 |
1 files changed, 47 insertions, 35 deletions
diff --git a/src/journal/meson.build b/src/journal/meson.build index 8547a90222..c9ff54c991 100644 --- a/src/journal/meson.build +++ b/src/journal/meson.build @@ -111,40 +111,52 @@ tests += [ }, ] -fuzzers += [ - [files('fuzz-journald-audit.c', - 'fuzz-journald.c'), - [libjournal_core, - libshared], - [libselinux]], - - [files('fuzz-journald-kmsg.c', - 'fuzz-journald.c'), - [libjournal_core, - libshared], - [libselinux]], - - [files('fuzz-journald-native.c', - 'fuzz-journald.c'), - [libjournal_core, - libshared], - [libselinux]], - - [files('fuzz-journald-native-fd.c', - 'fuzz-journald.c'), - [libjournal_core, - libshared], - [libselinux]], - - [files('fuzz-journald-stream.c', - 'fuzz-journald.c'), - [libjournal_core, - libshared], - [libselinux]], +fuzzer_journald_base = { + 'link_with' : [libjournal_core, libshared], + 'dependencies' : [libselinux], +} - [files('fuzz-journald-syslog.c', - 'fuzz-journald.c'), - [libjournal_core, - libshared], - [libselinux]], +fuzzers += [ + { + 'sources' : files( + 'fuzz-journald-audit.c', + 'fuzz-journald.c', + ), + 'base' : fuzzer_journald_base, + }, + { + 'sources' : files( + 'fuzz-journald-kmsg.c', + 'fuzz-journald.c', + ), + 'base' : fuzzer_journald_base, + }, + { + 'sources' : files( + 'fuzz-journald-native.c', + 'fuzz-journald.c', + ), + 'base' : fuzzer_journald_base, + }, + { + 'sources' : files( + 'fuzz-journald-native-fd.c', + 'fuzz-journald.c', + ), + 'base' : fuzzer_journald_base, + }, + { + 'sources' : files( + 'fuzz-journald-stream.c', + 'fuzz-journald.c', + ), + 'base' : fuzzer_journald_base, + }, + { + 'sources' : files( + 'fuzz-journald-syslog.c', + 'fuzz-journald.c', + ), + 'base' : fuzzer_journald_base, + }, ] |