summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
commit55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch)
tree33f869f55a1b149e9b7c2b7e201867ca5dd52992 /src/libsystemd-network/meson.build
parentInitial commit. (diff)
downloadsystemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz
systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/libsystemd-network/meson.build')
-rw-r--r--src/libsystemd-network/meson.build121
1 files changed, 121 insertions, 0 deletions
diff --git a/src/libsystemd-network/meson.build b/src/libsystemd-network/meson.build
new file mode 100644
index 0000000..93186e2
--- /dev/null
+++ b/src/libsystemd-network/meson.build
@@ -0,0 +1,121 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+sources = files(
+ 'arp-util.c',
+ 'dhcp-identifier.c',
+ 'dhcp-network.c',
+ 'dhcp-option.c',
+ 'dhcp-packet.c',
+ 'dhcp6-network.c',
+ 'dhcp6-option.c',
+ 'dhcp6-protocol.c',
+ 'icmp6-util.c',
+ 'lldp-neighbor.c',
+ 'lldp-network.c',
+ 'ndisc-protocol.c',
+ 'ndisc-router.c',
+ 'network-common.c',
+ 'network-internal.c',
+ '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,
+ dependencies : userspace,
+ build_by_default : false)
+
+libsystemd_network_includes = [includes, include_directories('.')]
+
+############################################################
+
+network_test_template = test_template + {
+ 'link_with' : [
+ libshared,
+ libsystemd_network,
+ ],
+ 'suite' : 'network',
+}
+
+network_fuzz_template = fuzz_template + {
+ 'link_with' : [
+ libshared,
+ libsystemd_network,
+ ],
+}
+
+executables += [
+ network_test_template + {
+ 'sources' : files('test-acd.c'),
+ 'type' : 'manual',
+ },
+ network_test_template + {
+ 'sources' : files('test-dhcp-client.c'),
+ },
+ network_test_template + {
+ 'sources' : files('test-dhcp-option.c'),
+ },
+ network_test_template + {
+ 'sources' : files('test-dhcp-server.c'),
+ },
+ network_test_template + {
+ 'sources' : files('test-dhcp6-client.c'),
+ },
+ network_test_template + {
+ 'sources' : files('test-ipv4ll-manual.c'),
+ 'type' : 'manual',
+ },
+ network_test_template + {
+ 'sources' : files('test-ipv4ll.c'),
+ },
+ network_test_template + {
+ 'sources' : files('test-lldp-rx.c'),
+ },
+ network_test_template + {
+ 'sources' : files(
+ 'test-ndisc-ra.c',
+ 'icmp6-util-unix.c',
+ ),
+ },
+ network_test_template + {
+ 'sources' : files(
+ 'test-ndisc-rs.c',
+ 'icmp6-util-unix.c',
+ ),
+ },
+ network_test_template + {
+ 'sources' : files('test-sd-dhcp-lease.c'),
+ },
+ network_fuzz_template + {
+ 'sources' : files('fuzz-dhcp-client.c'),
+ },
+ network_fuzz_template + {
+ 'sources' : files('fuzz-dhcp6-client.c'),
+ },
+ network_fuzz_template + {
+ 'sources' : files('fuzz-dhcp-server.c'),
+ },
+ network_fuzz_template + {
+ 'sources' : files('fuzz-dhcp-server-relay.c'),
+ },
+ network_fuzz_template + {
+ 'sources' : files('fuzz-lldp-rx.c'),
+ },
+ network_fuzz_template + {
+ 'sources' : files(
+ 'fuzz-ndisc-rs.c',
+ 'icmp6-util-unix.c',
+ ),
+ },
+]