meson: also merge declarations of fuzzers with other executables

This commit is contained in:
Yu Watanabe
2023-08-03 20:37:16 +09:00
parent 130c87b16a
commit cbc55c4cce
14 changed files with 246 additions and 323 deletions
+8 -11
View File
@@ -63,6 +63,14 @@ executables += [
threads,
],
},
fuzz_template + {
'sources' : [
files('fuzz-systemctl-parse-argv.c'),
systemctl_sources,
],
'link_with' : systemctl_link_with,
'c_args' : ['-DFUZZ_SYSTEMCTL_PARSE_ARGV'],
},
]
foreach alias : (['halt', 'poweroff', 'reboot', 'shutdown'] +
@@ -71,14 +79,3 @@ foreach alias : (['halt', 'poweroff', 'reboot', 'shutdown'] +
bindir / 'systemctl',
sbindir / alias)
endforeach
fuzzers += [
{
'sources' : [
files('fuzz-systemctl-parse-argv.c'),
systemctl_sources,
],
'link_with' : systemctl_link_with,
'c_args' : '-DFUZZ_SYSTEMCTL_PARSE_ARGV',
},
]