]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/meson.build
test-network: add a test case for PFIFO
[thirdparty/systemd.git] / src / network / meson.build
CommitLineData
3a726fcd 1# SPDX-License-Identifier: LGPL-2.1+
3a726fcd 2
5c23128d 3sources = files('''
37efbbd8
ZJS
4 netdev/bond.c
5 netdev/bond.h
6 netdev/bridge.c
7 netdev/bridge.h
8 netdev/dummy.c
9 netdev/dummy.h
3295a461
SS
10 netdev/ifb.c
11 netdev/ifb.h
37efbbd8
ZJS
12 netdev/ipvlan.c
13 netdev/ipvlan.h
14 netdev/macvlan.c
15 netdev/macvlan.h
16 netdev/netdev.c
17 netdev/netdev.h
d61e4c5b
YW
18 netdev/nlmon.c
19 netdev/nlmon.h
37efbbd8
ZJS
20 netdev/tunnel.c
21 netdev/tunnel.h
22 netdev/tuntap.c
23 netdev/tuntap.h
24 netdev/vcan.c
25 netdev/vcan.h
26 netdev/veth.c
27 netdev/veth.h
28 netdev/vlan.c
29 netdev/vlan.h
30 netdev/vrf.c
31 netdev/vrf.h
32 netdev/vxlan.c
33 netdev/vxlan.h
9dfed8dd
SS
34 netdev/geneve.c
35 netdev/geneve.h
d6df583c
SS
36 netdev/vxcan.c
37 netdev/vxcan.h
e5719363
JT
38 netdev/wireguard.c
39 netdev/wireguard.h
56e7fb50
SS
40 netdev/netdevsim.c
41 netdev/netdevsim.h
53cb501a
SS
42 netdev/fou-tunnel.c
43 netdev/fou-tunnel.h
3a56e697
SS
44 netdev/l2tp-tunnel.c
45 netdev/l2tp-tunnel.h
81962db7
SS
46 netdev/macsec.c
47 netdev/macsec.h
98d20a17 48 netdev/xfrm.c
49 netdev/xfrm.h
c23ae61e
SS
50 networkd-address-label.c
51 networkd-address-label.h
37efbbd8
ZJS
52 networkd-address-pool.c
53 networkd-address-pool.h
54 networkd-address.c
55 networkd-address.h
56 networkd-brvlan.c
57 networkd-brvlan.h
3ddcbeea
YW
58 networkd-can.c
59 networkd-can.h
37efbbd8
ZJS
60 networkd-conf.c
61 networkd-conf.h
ca5ad760
YW
62 networkd-dhcp-common.c
63 networkd-dhcp-common.h
8fcf1d61
YW
64 networkd-dhcp-server.c
65 networkd-dhcp-server.h
37efbbd8 66 networkd-dhcp4.c
ca5ad760 67 networkd-dhcp4.h
37efbbd8 68 networkd-dhcp6.c
ca5ad760 69 networkd-dhcp6.h
37efbbd8
ZJS
70 networkd-fdb.c
71 networkd-fdb.h
72 networkd-ipv4ll.c
ca5ad760 73 networkd-ipv4ll.h
37efbbd8
ZJS
74 networkd-ipv6-proxy-ndp.c
75 networkd-ipv6-proxy-ndp.h
76 networkd-link-bus.c
6a1af3d4 77 networkd-link-bus.h
37efbbd8
ZJS
78 networkd-link.c
79 networkd-link.h
7f853950
YW
80 networkd-lldp-rx.c
81 networkd-lldp-rx.h
37efbbd8
ZJS
82 networkd-lldp-tx.c
83 networkd-lldp-tx.h
84 networkd-manager-bus.c
79a59fa5 85 networkd-manager-bus.h
37efbbd8
ZJS
86 networkd-manager.c
87 networkd-manager.h
88 networkd-ndisc.c
89 networkd-ndisc.h
e4a71bf3
WKI
90 networkd-neighbor.c
91 networkd-neighbor.h
4a24ba71
ZJS
92 networkd-radv.c
93 networkd-radv.h
37efbbd8 94 networkd-network-bus.c
ceac2c2b 95 networkd-network-bus.h
37efbbd8
ZJS
96 networkd-network.c
97 networkd-network.h
c16c7808
SS
98 networkd-nexthop.c
99 networkd-nexthop.h
37efbbd8
ZJS
100 networkd-route.c
101 networkd-route.h
bce67bbe
SS
102 networkd-routing-policy-rule.c
103 networkd-routing-policy-rule.h
a879e1a4
YW
104 networkd-speed-meter.c
105 networkd-speed-meter.h
37efbbd8
ZJS
106 networkd-util.c
107 networkd-util.h
8d968fdd
YW
108 networkd-wifi.c
109 networkd-wifi.h
a9a5d632
SS
110 tc/codel.c
111 tc/codel.h
a7476065
SS
112 tc/fifo.c
113 tc/fifo.h
7234b915
SS
114 tc/fq.c
115 tc/fq.h
4e5ef149
SS
116 tc/fq-codel.c
117 tc/fq-codel.h
b934ac3d
YW
118 tc/htb.c
119 tc/htb.h
0f5bd7fe
SS
120 tc/netem.c
121 tc/netem.h
122 tc/qdisc.c
123 tc/qdisc.h
9942b710
SS
124 tc/sfq.c
125 tc/sfq.h
ba5841b5
SS
126 tc/tbf.c
127 tc/tbf.h
0f5bd7fe
SS
128 tc/tc-util.c
129 tc/tc-util.h
34658df2
YW
130 tc/tc.c
131 tc/tc.h
4666f63b
YW
132 tc/tclass.c
133 tc/tclass.h
9b749c11
YW
134 tc/teql.c
135 tc/teql.h
5c23128d
ZJS
136'''.split())
137
138systemd_networkd_sources = files('networkd.c')
139
140systemd_networkd_wait_online_sources = files('''
37efbbd8
ZJS
141 wait-online/link.c
142 wait-online/link.h
143 wait-online/manager.c
144 wait-online/manager.h
145 wait-online/wait-online.c
5c23128d
ZJS
146'''.split()) + network_internal_h
147
148networkctl_sources = files('networkctl.c')
149
426c1d38
YW
150network_generator_sources = files('''
151 generator/main.c
152 generator/network-generator.c
153 generator/network-generator.h
154'''.split())
155
737f1405 156network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])]
69e96427 157
349cc4a5 158if conf.get('ENABLE_NETWORKD') == 1
5ac8b50d
RS
159 if get_option('link-networkd-shared')
160 networkd_link_with = [libshared]
161 else
162 networkd_link_with = [libsystemd_static,
163 libshared_static,
164 libjournal_client,
165 libbasic_gcrypt]
166 endif
167
37efbbd8
ZJS
168 networkd_gperf_c = custom_target(
169 'networkd-gperf.c',
170 input : 'networkd-gperf.gperf',
171 output : 'networkd-gperf.c',
172 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
5c23128d 173
37efbbd8
ZJS
174 networkd_network_gperf_c = custom_target(
175 'networkd-network-gperf.c',
176 input : 'networkd-network-gperf.gperf',
177 output : 'networkd-network-gperf.c',
178 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
5c23128d 179
37efbbd8
ZJS
180 netdev_gperf_c = custom_target(
181 'netdev-gperf.c',
182 input : 'netdev/netdev-gperf.gperf',
183 output : 'netdev-gperf.c',
184 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
5c23128d 185
37efbbd8
ZJS
186 libnetworkd_core = static_library(
187 'networkd-core',
188 sources,
189 network_internal_h,
190 networkd_gperf_c,
191 networkd_network_gperf_c,
192 netdev_gperf_c,
737f1405 193 include_directories : network_include_dir,
5ac8b50d 194 link_with : [networkd_link_with])
5c23128d 195
37efbbd8
ZJS
196 install_data('org.freedesktop.network1.conf',
197 install_dir : dbuspolicydir)
198 install_data('org.freedesktop.network1.service',
199 install_dir : dbussystemservicedir)
15761549
YW
200 install_data('org.freedesktop.network1.policy',
201 install_dir : polkitpolicydir)
37efbbd8
ZJS
202 if install_polkit
203 install_data('systemd-networkd.rules',
204 install_dir : polkitrulesdir)
205 endif
206 if install_polkit_pkla
207 install_data('systemd-networkd.pkla',
208 install_dir : polkitpkladir)
209 endif
69e96427 210
36321494
YW
211 install_data('networkd.conf',
212 install_dir : pkgsysconfdir)
213
e27aac11
EV
214 fuzzers += [
215 [['src/network/fuzz-netdev-parser.c',
216 'src/fuzz/fuzz.h'],
217 [libnetworkd_core,
218 libudev_static,
219 libsystemd_network,
5ac8b50d 220 networkd_link_with],
737f1405
YW
221 [threads],
222 [],
223 network_include_dir],
212bd73c
EV
224
225 [['src/network/fuzz-network-parser.c',
226 'src/fuzz/fuzz.h'],
227 [libnetworkd_core,
228 libudev_static,
229 libsystemd_network,
5ac8b50d 230 networkd_link_with],
737f1405
YW
231 [threads],
232 [],
233 network_include_dir],
e27aac11
EV
234 ]
235
37efbbd8 236 tests += [
f0bd7cc7
ZJS
237 [['src/network/test-networkd-conf.c'],
238 [libnetworkd_core,
239 libsystemd_network,
240 libudev],
737f1405 241 [], '', '', [], network_include_dir],
69e96427 242
f0bd7cc7
ZJS
243 [['src/network/test-network.c'],
244 [libnetworkd_core,
0c06b506 245 libudev_static,
f0bd7cc7 246 libsystemd_network,
5ac8b50d 247 networkd_link_with],
737f1405
YW
248 [threads],
249 '', '', [], network_include_dir],
69e96427 250
7379f3de
ZJS
251 [['src/network/test-routing-policy-rule.c'],
252 [libnetworkd_core,
253 libsystemd_network,
254 libudev],
737f1405 255 [], '', '', [], network_include_dir],
7379f3de 256
f0bd7cc7 257 [['src/network/test-network-tables.c',
f0bd7cc7
ZJS
258 test_tables_h],
259 [libnetworkd_core,
0c06b506 260 libudev_static,
f0bd7cc7 261 libsystemd_network,
5ac8b50d 262 networkd_link_with],
4b57a272 263 [threads],
f0bd7cc7 264 '', '', [],
11b8568f 265 [network_include_dir]],
5cbd45f3
YW
266
267 [['src/network/generator/test-network-generator.c',
268 'src/network/generator/network-generator.c',
269 'src/network/generator/network-generator.h'],
5ac8b50d 270 [networkd_link_with],
737f1405 271 [], '', '', [], network_include_dir],
69e96427 272 ]
f0bd7cc7 273endif