]>
Commit | Line | Data |
---|---|---|
3a726fcd | 1 | # SPDX-License-Identifier: LGPL-2.1+ |
3a726fcd | 2 | |
5c23128d | 3 | sources = 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 | |
38ee31a6 MAL |
64 | networkd-dhcp-server-bus.c |
65 | networkd-dhcp-server-bus.h | |
8fcf1d61 YW |
66 | networkd-dhcp-server.c |
67 | networkd-dhcp-server.h | |
37efbbd8 | 68 | networkd-dhcp4.c |
ca5ad760 | 69 | networkd-dhcp4.h |
37efbbd8 | 70 | networkd-dhcp6.c |
ca5ad760 | 71 | networkd-dhcp6.h |
37efbbd8 ZJS |
72 | networkd-fdb.c |
73 | networkd-fdb.h | |
74 | networkd-ipv4ll.c | |
ca5ad760 | 75 | networkd-ipv4ll.h |
37efbbd8 ZJS |
76 | networkd-ipv6-proxy-ndp.c |
77 | networkd-ipv6-proxy-ndp.h | |
78 | networkd-link-bus.c | |
6a1af3d4 | 79 | networkd-link-bus.h |
37efbbd8 ZJS |
80 | networkd-link.c |
81 | networkd-link.h | |
7f853950 YW |
82 | networkd-lldp-rx.c |
83 | networkd-lldp-rx.h | |
37efbbd8 ZJS |
84 | networkd-lldp-tx.c |
85 | networkd-lldp-tx.h | |
86 | networkd-manager-bus.c | |
79a59fa5 | 87 | networkd-manager-bus.h |
37efbbd8 ZJS |
88 | networkd-manager.c |
89 | networkd-manager.h | |
90 | networkd-ndisc.c | |
91 | networkd-ndisc.h | |
e4a71bf3 WKI |
92 | networkd-neighbor.c |
93 | networkd-neighbor.h | |
4a24ba71 ZJS |
94 | networkd-radv.c |
95 | networkd-radv.h | |
37efbbd8 | 96 | networkd-network-bus.c |
ceac2c2b | 97 | networkd-network-bus.h |
37efbbd8 ZJS |
98 | networkd-network.c |
99 | networkd-network.h | |
c16c7808 SS |
100 | networkd-nexthop.c |
101 | networkd-nexthop.h | |
37efbbd8 ZJS |
102 | networkd-route.c |
103 | networkd-route.h | |
bce67bbe SS |
104 | networkd-routing-policy-rule.c |
105 | networkd-routing-policy-rule.h | |
a879e1a4 YW |
106 | networkd-speed-meter.c |
107 | networkd-speed-meter.h | |
518cd6b5 SS |
108 | networkd-sriov.c |
109 | networkd-sriov.h | |
37efbbd8 ZJS |
110 | networkd-util.c |
111 | networkd-util.h | |
8d968fdd YW |
112 | networkd-wifi.c |
113 | networkd-wifi.h | |
ad8352f4 SS |
114 | tc/cake.c |
115 | tc/cake.h | |
a9a5d632 SS |
116 | tc/codel.c |
117 | tc/codel.h | |
f5fc0441 SS |
118 | tc/drr.c |
119 | tc/drr.h | |
d474aa51 YW |
120 | tc/ets.c |
121 | tc/ets.h | |
a7476065 SS |
122 | tc/fifo.c |
123 | tc/fifo.h | |
7234b915 SS |
124 | tc/fq.c |
125 | tc/fq.h | |
4e5ef149 SS |
126 | tc/fq-codel.c |
127 | tc/fq-codel.h | |
609e8340 SS |
128 | tc/gred.c |
129 | tc/gred.h | |
7f224020 SS |
130 | tc/hhf.c |
131 | tc/hhf.h | |
b934ac3d YW |
132 | tc/htb.c |
133 | tc/htb.h | |
0f5bd7fe SS |
134 | tc/netem.c |
135 | tc/netem.h | |
bde4ae88 SS |
136 | tc/pie.c |
137 | tc/pie.h | |
0f5bd7fe SS |
138 | tc/qdisc.c |
139 | tc/qdisc.h | |
b12aaee5 SS |
140 | tc/qfq.c |
141 | tc/qfq.h | |
982998b0 SS |
142 | tc/sfb.c |
143 | tc/sfb.h | |
9942b710 SS |
144 | tc/sfq.c |
145 | tc/sfq.h | |
ba5841b5 SS |
146 | tc/tbf.c |
147 | tc/tbf.h | |
0f5bd7fe SS |
148 | tc/tc-util.c |
149 | tc/tc-util.h | |
34658df2 YW |
150 | tc/tc.c |
151 | tc/tc.h | |
4666f63b YW |
152 | tc/tclass.c |
153 | tc/tclass.h | |
9b749c11 YW |
154 | tc/teql.c |
155 | tc/teql.h | |
5c23128d ZJS |
156 | '''.split()) |
157 | ||
158 | systemd_networkd_sources = files('networkd.c') | |
159 | ||
160 | systemd_networkd_wait_online_sources = files(''' | |
37efbbd8 ZJS |
161 | wait-online/link.c |
162 | wait-online/link.h | |
163 | wait-online/manager.c | |
164 | wait-online/manager.h | |
165 | wait-online/wait-online.c | |
5c23128d ZJS |
166 | '''.split()) + network_internal_h |
167 | ||
168 | networkctl_sources = files('networkctl.c') | |
169 | ||
426c1d38 YW |
170 | network_generator_sources = files(''' |
171 | generator/main.c | |
172 | generator/network-generator.c | |
173 | generator/network-generator.h | |
174 | '''.split()) | |
175 | ||
737f1405 | 176 | network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])] |
69e96427 | 177 | |
349cc4a5 | 178 | if conf.get('ENABLE_NETWORKD') == 1 |
5ac8b50d RS |
179 | if get_option('link-networkd-shared') |
180 | networkd_link_with = [libshared] | |
181 | else | |
182 | networkd_link_with = [libsystemd_static, | |
183 | libshared_static, | |
184 | libjournal_client, | |
185 | libbasic_gcrypt] | |
186 | endif | |
187 | ||
37efbbd8 ZJS |
188 | networkd_gperf_c = custom_target( |
189 | 'networkd-gperf.c', | |
190 | input : 'networkd-gperf.gperf', | |
191 | output : 'networkd-gperf.c', | |
192 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 193 | |
37efbbd8 ZJS |
194 | networkd_network_gperf_c = custom_target( |
195 | 'networkd-network-gperf.c', | |
196 | input : 'networkd-network-gperf.gperf', | |
197 | output : 'networkd-network-gperf.c', | |
198 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 199 | |
37efbbd8 ZJS |
200 | netdev_gperf_c = custom_target( |
201 | 'netdev-gperf.c', | |
202 | input : 'netdev/netdev-gperf.gperf', | |
203 | output : 'netdev-gperf.c', | |
204 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 205 | |
37efbbd8 ZJS |
206 | libnetworkd_core = static_library( |
207 | 'networkd-core', | |
208 | sources, | |
209 | network_internal_h, | |
210 | networkd_gperf_c, | |
211 | networkd_network_gperf_c, | |
212 | netdev_gperf_c, | |
737f1405 | 213 | include_directories : network_include_dir, |
5ac8b50d | 214 | link_with : [networkd_link_with]) |
5c23128d | 215 | |
37efbbd8 ZJS |
216 | install_data('org.freedesktop.network1.conf', |
217 | install_dir : dbuspolicydir) | |
218 | install_data('org.freedesktop.network1.service', | |
219 | install_dir : dbussystemservicedir) | |
15761549 YW |
220 | install_data('org.freedesktop.network1.policy', |
221 | install_dir : polkitpolicydir) | |
37efbbd8 ZJS |
222 | if install_polkit |
223 | install_data('systemd-networkd.rules', | |
224 | install_dir : polkitrulesdir) | |
225 | endif | |
226 | if install_polkit_pkla | |
227 | install_data('systemd-networkd.pkla', | |
228 | install_dir : polkitpkladir) | |
229 | endif | |
69e96427 | 230 | |
36321494 YW |
231 | install_data('networkd.conf', |
232 | install_dir : pkgsysconfdir) | |
233 | ||
e27aac11 EV |
234 | fuzzers += [ |
235 | [['src/network/fuzz-netdev-parser.c', | |
236 | 'src/fuzz/fuzz.h'], | |
237 | [libnetworkd_core, | |
238 | libudev_static, | |
239 | libsystemd_network, | |
5ac8b50d | 240 | networkd_link_with], |
737f1405 YW |
241 | [threads], |
242 | [], | |
243 | network_include_dir], | |
212bd73c EV |
244 | |
245 | [['src/network/fuzz-network-parser.c', | |
246 | 'src/fuzz/fuzz.h'], | |
247 | [libnetworkd_core, | |
248 | libudev_static, | |
249 | libsystemd_network, | |
5ac8b50d | 250 | networkd_link_with], |
737f1405 YW |
251 | [threads], |
252 | [], | |
253 | network_include_dir], | |
e27aac11 EV |
254 | ] |
255 | ||
37efbbd8 | 256 | tests += [ |
f0bd7cc7 ZJS |
257 | [['src/network/test-networkd-conf.c'], |
258 | [libnetworkd_core, | |
259 | libsystemd_network, | |
260 | libudev], | |
737f1405 | 261 | [], '', '', [], network_include_dir], |
69e96427 | 262 | |
f0bd7cc7 ZJS |
263 | [['src/network/test-network.c'], |
264 | [libnetworkd_core, | |
0c06b506 | 265 | libudev_static, |
f0bd7cc7 | 266 | libsystemd_network, |
5ac8b50d | 267 | networkd_link_with], |
737f1405 YW |
268 | [threads], |
269 | '', '', [], network_include_dir], | |
69e96427 | 270 | |
7379f3de ZJS |
271 | [['src/network/test-routing-policy-rule.c'], |
272 | [libnetworkd_core, | |
273 | libsystemd_network, | |
274 | libudev], | |
737f1405 | 275 | [], '', '', [], network_include_dir], |
7379f3de | 276 | |
f0bd7cc7 | 277 | [['src/network/test-network-tables.c', |
f0bd7cc7 ZJS |
278 | test_tables_h], |
279 | [libnetworkd_core, | |
0c06b506 | 280 | libudev_static, |
f0bd7cc7 | 281 | libsystemd_network, |
5ac8b50d | 282 | networkd_link_with], |
4b57a272 | 283 | [threads], |
f0bd7cc7 | 284 | '', '', [], |
11b8568f | 285 | [network_include_dir]], |
5cbd45f3 YW |
286 | |
287 | [['src/network/generator/test-network-generator.c', | |
288 | 'src/network/generator/network-generator.c', | |
289 | 'src/network/generator/network-generator.h'], | |
5ac8b50d | 290 | [networkd_link_with], |
737f1405 | 291 | [], '', '', [], network_include_dir], |
69e96427 | 292 | ] |
f0bd7cc7 | 293 | endif |