summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-network/meson.build')
-rw-r--r--src/libsystemd-network/meson.build133
1 files changed, 133 insertions, 0 deletions
diff --git a/src/libsystemd-network/meson.build b/src/libsystemd-network/meson.build
new file mode 100644
index 0000000..ff59ec0
--- /dev/null
+++ b/src/libsystemd-network/meson.build
@@ -0,0 +1,133 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+sources = files(
+ 'arp-util.c',
+ 'arp-util.h',
+ 'dhcp-client-internal.h',
+ 'dhcp-identifier.c',
+ 'dhcp-identifier.h',
+ 'dhcp-internal.h',
+ 'dhcp-lease-internal.h',
+ 'dhcp-network.c',
+ 'dhcp-option.c',
+ 'dhcp-packet.c',
+ 'dhcp-protocol.h',
+ 'dhcp-server-internal.h',
+ 'dhcp6-internal.h',
+ 'dhcp6-lease-internal.h',
+ 'dhcp6-network.c',
+ 'dhcp6-option.c',
+ 'dhcp6-option.h',
+ 'dhcp6-protocol.c',
+ 'dhcp6-protocol.h',
+ 'icmp6-util.c',
+ 'icmp6-util.h',
+ 'lldp-neighbor.c',
+ 'lldp-neighbor.h',
+ 'lldp-network.c',
+ 'lldp-network.h',
+ 'lldp-rx-internal.h',
+ 'ndisc-internal.h',
+ 'ndisc-router.c',
+ 'ndisc-router.h',
+ 'network-common.c',
+ 'network-common.h',
+ 'network-internal.c',
+ 'network-internal.h',
+ 'radv-internal.h',
+ 'sd-dhcp-client.c',
+ 'sd-dhcp-lease.c',
+ 'sd-dhcp-server.c',
+ 'sd-dhcp6-client.c',
+ 'sd-dhcp6-lease.c',
+ 'sd-ipv4acd.c',
+ 'sd-ipv4ll.c',
+ 'sd-lldp-rx.c',
+ 'sd-lldp-tx.c',
+ 'sd-ndisc.c',
+ 'sd-radv.c',
+)
+
+libsystemd_network = static_library(
+ 'systemd-network',
+ sources,
+ include_directories : includes,
+ build_by_default : false)
+
+libsystemd_network_includes = [includes, include_directories('.')]
+
+############################################################
+
+tests += [
+ [files('test-dhcp-option.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-sd-dhcp-lease.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-dhcp-client.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-dhcp-server.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-ipv4ll.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-ipv4ll-manual.c'),
+ [libshared,
+ libsystemd_network],
+ [], [], '', 'manual'],
+
+ [files('test-acd.c'),
+ [libshared,
+ libsystemd_network],
+ [], [], '', 'manual'],
+
+ [files('test-ndisc-rs.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-ndisc-ra.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-dhcp6-client.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('test-lldp-rx.c'),
+ [libshared,
+ libsystemd_network]],
+]
+
+fuzzers += [
+ [files('fuzz-dhcp-client.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('fuzz-dhcp6-client.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('fuzz-dhcp-server.c'),
+ [libsystemd_network,
+ libshared]],
+
+ [files('fuzz-dhcp-server-relay.c'),
+ [libsystemd_network,
+ libshared]],
+
+ [files('fuzz-lldp-rx.c'),
+ [libshared,
+ libsystemd_network]],
+
+ [files('fuzz-ndisc-rs.c'),
+ [libshared,
+ libsystemd_network]],
+]