summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/meson.build
blob: 718495cd8eb5558a7d263e34844aad1c532ccab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# SPDX-License-Identifier: LGPL-2.1-or-later

sources = files(
        'arp-util.c',
        'dhcp-network.c',
        'dhcp-option.c',
        'dhcp-packet.c',
        'dhcp6-network.c',
        'dhcp6-option.c',
        'dhcp6-protocol.c',
        'icmp6-packet.c',
        'icmp6-util.c',
        'lldp-neighbor.c',
        'lldp-network.c',
        'ndisc-option.c',
        'network-common.c',
        'network-internal.c',
        'sd-dhcp-client-id.c',
        'sd-dhcp-client.c',
        'sd-dhcp-duid.c',
        'sd-dhcp-lease.c',
        'sd-dhcp-server-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-ndisc-neighbor.c',
        'sd-ndisc-redirect.c',
        'sd-ndisc-router.c',
        'sd-ndisc-router-solicit.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-test-util.c',
                ),
        },
        network_test_template + {
                'sources' : files(
                        'test-ndisc-rs.c',
                        'icmp6-test-util.c',
                ),
        },
        network_test_template + {
                'sources' : files('test-ndisc-send.c'),
                'type' : 'manual',
        },
        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-test-util.c',
                ),
        },
]