summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/meson.build
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-26 18:07:25 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-08-03 13:37:16 +0200
commitcbc55c4cce7e8a076dbeb5bc7a9660e20338b7e6 (patch)
treeafa00146b30f58bddcb17193bec1ba27c3985424 /src/libsystemd-network/meson.build
parentmeson: merge declarations of normal and test executables (diff)
downloadsystemd-cbc55c4cce7e8a076dbeb5bc7a9660e20338b7e6.tar.xz
systemd-cbc55c4cce7e8a076dbeb5bc7a9660e20338b7e6.zip
meson: also merge declarations of fuzzers with other executables
Diffstat (limited to 'src/libsystemd-network/meson.build')
-rw-r--r--src/libsystemd-network/meson.build32
1 files changed, 13 insertions, 19 deletions
diff --git a/src/libsystemd-network/meson.build b/src/libsystemd-network/meson.build
index 74041f6abd..043d3bc254 100644
--- a/src/libsystemd-network/meson.build
+++ b/src/libsystemd-network/meson.build
@@ -47,6 +47,13 @@ network_test_template = test_template + {
'suite' : 'network',
}
+network_fuzz_template = fuzz_template + {
+ 'link_with' : [
+ libshared,
+ libsystemd_network,
+ ],
+}
+
executables += [
network_test_template + {
'sources' : files('test-acd.c'),
@@ -83,35 +90,22 @@ executables += [
network_test_template + {
'sources' : files('test-sd-dhcp-lease.c'),
},
-]
-
-fuzzer_network_base = {
- 'link_with' : [libshared, libsystemd_network],
-}
-
-fuzzers += [
- {
+ network_fuzz_template + {
'sources' : files('fuzz-dhcp-client.c'),
- 'base' : fuzzer_network_base,
},
- {
+ network_fuzz_template + {
'sources' : files('fuzz-dhcp6-client.c'),
- 'base' : fuzzer_network_base,
},
- {
+ network_fuzz_template + {
'sources' : files('fuzz-dhcp-server.c'),
- 'base' : fuzzer_network_base,
},
- {
+ network_fuzz_template + {
'sources' : files('fuzz-dhcp-server-relay.c'),
- 'base' : fuzzer_network_base,
},
- {
+ network_fuzz_template + {
'sources' : files('fuzz-lldp-rx.c'),
- 'base' : fuzzer_network_base,
},
- {
+ network_fuzz_template + {
'sources' : files('fuzz-ndisc-rs.c'),
- 'base' : fuzzer_network_base,
},
]