]>
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 | |
37efbbd8 ZJS |
108 | networkd-util.c |
109 | networkd-util.h | |
8d968fdd YW |
110 | networkd-wifi.c |
111 | networkd-wifi.h | |
ad8352f4 SS |
112 | tc/cake.c |
113 | tc/cake.h | |
a9a5d632 SS |
114 | tc/codel.c |
115 | tc/codel.h | |
f5fc0441 SS |
116 | tc/drr.c |
117 | tc/drr.h | |
d474aa51 YW |
118 | tc/ets.c |
119 | tc/ets.h | |
a7476065 SS |
120 | tc/fifo.c |
121 | tc/fifo.h | |
7234b915 SS |
122 | tc/fq.c |
123 | tc/fq.h | |
4e5ef149 SS |
124 | tc/fq-codel.c |
125 | tc/fq-codel.h | |
609e8340 SS |
126 | tc/gred.c |
127 | tc/gred.h | |
7f224020 SS |
128 | tc/hhf.c |
129 | tc/hhf.h | |
b934ac3d YW |
130 | tc/htb.c |
131 | tc/htb.h | |
0f5bd7fe SS |
132 | tc/netem.c |
133 | tc/netem.h | |
bde4ae88 SS |
134 | tc/pie.c |
135 | tc/pie.h | |
0f5bd7fe SS |
136 | tc/qdisc.c |
137 | tc/qdisc.h | |
b12aaee5 SS |
138 | tc/qfq.c |
139 | tc/qfq.h | |
982998b0 SS |
140 | tc/sfb.c |
141 | tc/sfb.h | |
9942b710 SS |
142 | tc/sfq.c |
143 | tc/sfq.h | |
ba5841b5 SS |
144 | tc/tbf.c |
145 | tc/tbf.h | |
0f5bd7fe SS |
146 | tc/tc-util.c |
147 | tc/tc-util.h | |
34658df2 YW |
148 | tc/tc.c |
149 | tc/tc.h | |
4666f63b YW |
150 | tc/tclass.c |
151 | tc/tclass.h | |
9b749c11 YW |
152 | tc/teql.c |
153 | tc/teql.h | |
5c23128d ZJS |
154 | '''.split()) |
155 | ||
156 | systemd_networkd_sources = files('networkd.c') | |
157 | ||
158 | systemd_networkd_wait_online_sources = files(''' | |
37efbbd8 ZJS |
159 | wait-online/link.c |
160 | wait-online/link.h | |
161 | wait-online/manager.c | |
162 | wait-online/manager.h | |
163 | wait-online/wait-online.c | |
5c23128d ZJS |
164 | '''.split()) + network_internal_h |
165 | ||
166 | networkctl_sources = files('networkctl.c') | |
167 | ||
426c1d38 YW |
168 | network_generator_sources = files(''' |
169 | generator/main.c | |
170 | generator/network-generator.c | |
171 | generator/network-generator.h | |
172 | '''.split()) | |
173 | ||
737f1405 | 174 | network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])] |
69e96427 | 175 | |
349cc4a5 | 176 | if conf.get('ENABLE_NETWORKD') == 1 |
5ac8b50d RS |
177 | if get_option('link-networkd-shared') |
178 | networkd_link_with = [libshared] | |
179 | else | |
180 | networkd_link_with = [libsystemd_static, | |
181 | libshared_static, | |
182 | libjournal_client, | |
183 | libbasic_gcrypt] | |
184 | endif | |
185 | ||
37efbbd8 ZJS |
186 | networkd_gperf_c = custom_target( |
187 | 'networkd-gperf.c', | |
188 | input : 'networkd-gperf.gperf', | |
189 | output : 'networkd-gperf.c', | |
190 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 191 | |
37efbbd8 ZJS |
192 | networkd_network_gperf_c = custom_target( |
193 | 'networkd-network-gperf.c', | |
194 | input : 'networkd-network-gperf.gperf', | |
195 | output : 'networkd-network-gperf.c', | |
196 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 197 | |
37efbbd8 ZJS |
198 | netdev_gperf_c = custom_target( |
199 | 'netdev-gperf.c', | |
200 | input : 'netdev/netdev-gperf.gperf', | |
201 | output : 'netdev-gperf.c', | |
202 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 203 | |
37efbbd8 ZJS |
204 | libnetworkd_core = static_library( |
205 | 'networkd-core', | |
206 | sources, | |
207 | network_internal_h, | |
208 | networkd_gperf_c, | |
209 | networkd_network_gperf_c, | |
210 | netdev_gperf_c, | |
737f1405 | 211 | include_directories : network_include_dir, |
5ac8b50d | 212 | link_with : [networkd_link_with]) |
5c23128d | 213 | |
37efbbd8 ZJS |
214 | install_data('org.freedesktop.network1.conf', |
215 | install_dir : dbuspolicydir) | |
216 | install_data('org.freedesktop.network1.service', | |
217 | install_dir : dbussystemservicedir) | |
15761549 YW |
218 | install_data('org.freedesktop.network1.policy', |
219 | install_dir : polkitpolicydir) | |
37efbbd8 ZJS |
220 | if install_polkit |
221 | install_data('systemd-networkd.rules', | |
222 | install_dir : polkitrulesdir) | |
223 | endif | |
224 | if install_polkit_pkla | |
225 | install_data('systemd-networkd.pkla', | |
226 | install_dir : polkitpkladir) | |
227 | endif | |
69e96427 | 228 | |
36321494 YW |
229 | install_data('networkd.conf', |
230 | install_dir : pkgsysconfdir) | |
231 | ||
e27aac11 EV |
232 | fuzzers += [ |
233 | [['src/network/fuzz-netdev-parser.c', | |
234 | 'src/fuzz/fuzz.h'], | |
235 | [libnetworkd_core, | |
236 | libudev_static, | |
237 | libsystemd_network, | |
5ac8b50d | 238 | networkd_link_with], |
737f1405 YW |
239 | [threads], |
240 | [], | |
241 | network_include_dir], | |
212bd73c EV |
242 | |
243 | [['src/network/fuzz-network-parser.c', | |
244 | 'src/fuzz/fuzz.h'], | |
245 | [libnetworkd_core, | |
246 | libudev_static, | |
247 | libsystemd_network, | |
5ac8b50d | 248 | networkd_link_with], |
737f1405 YW |
249 | [threads], |
250 | [], | |
251 | network_include_dir], | |
e27aac11 EV |
252 | ] |
253 | ||
37efbbd8 | 254 | tests += [ |
f0bd7cc7 ZJS |
255 | [['src/network/test-networkd-conf.c'], |
256 | [libnetworkd_core, | |
257 | libsystemd_network, | |
258 | libudev], | |
737f1405 | 259 | [], '', '', [], network_include_dir], |
69e96427 | 260 | |
f0bd7cc7 ZJS |
261 | [['src/network/test-network.c'], |
262 | [libnetworkd_core, | |
0c06b506 | 263 | libudev_static, |
f0bd7cc7 | 264 | libsystemd_network, |
5ac8b50d | 265 | networkd_link_with], |
737f1405 YW |
266 | [threads], |
267 | '', '', [], network_include_dir], | |
69e96427 | 268 | |
7379f3de ZJS |
269 | [['src/network/test-routing-policy-rule.c'], |
270 | [libnetworkd_core, | |
271 | libsystemd_network, | |
272 | libudev], | |
737f1405 | 273 | [], '', '', [], network_include_dir], |
7379f3de | 274 | |
f0bd7cc7 | 275 | [['src/network/test-network-tables.c', |
f0bd7cc7 ZJS |
276 | test_tables_h], |
277 | [libnetworkd_core, | |
0c06b506 | 278 | libudev_static, |
f0bd7cc7 | 279 | libsystemd_network, |
5ac8b50d | 280 | networkd_link_with], |
4b57a272 | 281 | [threads], |
f0bd7cc7 | 282 | '', '', [], |
11b8568f | 283 | [network_include_dir]], |
5cbd45f3 YW |
284 | |
285 | [['src/network/generator/test-network-generator.c', | |
286 | 'src/network/generator/network-generator.c', | |
287 | 'src/network/generator/network-generator.h'], | |
5ac8b50d | 288 | [networkd_link_with], |
737f1405 | 289 | [], '', '', [], network_include_dir], |
69e96427 | 290 | ] |
f0bd7cc7 | 291 | endif |