]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/meson.build
shutdown: log on container exit
[thirdparty/systemd.git] / src / network / meson.build
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 sources = files('''
4 netdev/bareudp.c
5 netdev/bareudp.h
6 netdev/batadv.c
7 netdev/batadv.h
8 netdev/bond.c
9 netdev/bond.h
10 netdev/bridge.c
11 netdev/bridge.h
12 netdev/dummy.c
13 netdev/dummy.h
14 netdev/ifb.c
15 netdev/ifb.h
16 netdev/ipvlan.c
17 netdev/ipvlan.h
18 netdev/macvlan.c
19 netdev/macvlan.h
20 netdev/netdev.c
21 netdev/netdev.h
22 netdev/nlmon.c
23 netdev/nlmon.h
24 netdev/tunnel.c
25 netdev/tunnel.h
26 netdev/tuntap.c
27 netdev/tuntap.h
28 netdev/vcan.c
29 netdev/vcan.h
30 netdev/veth.c
31 netdev/veth.h
32 netdev/vlan.c
33 netdev/vlan.h
34 netdev/vrf.c
35 netdev/vrf.h
36 netdev/vxlan.c
37 netdev/vxlan.h
38 netdev/geneve.c
39 netdev/geneve.h
40 netdev/vxcan.c
41 netdev/vxcan.h
42 netdev/wireguard.c
43 netdev/wireguard.h
44 netdev/netdevsim.c
45 netdev/netdevsim.h
46 netdev/fou-tunnel.c
47 netdev/fou-tunnel.h
48 netdev/l2tp-tunnel.c
49 netdev/l2tp-tunnel.h
50 netdev/macsec.c
51 netdev/macsec.h
52 netdev/xfrm.c
53 netdev/xfrm.h
54 networkd-address-label.c
55 networkd-address-label.h
56 networkd-address-pool.c
57 networkd-address-pool.h
58 networkd-address.c
59 networkd-address.h
60 networkd-brvlan.c
61 networkd-brvlan.h
62 networkd-can.c
63 networkd-can.h
64 networkd-conf.c
65 networkd-conf.h
66 networkd-dhcp-common.c
67 networkd-dhcp-common.h
68 networkd-dhcp-server-bus.c
69 networkd-dhcp-server-bus.h
70 networkd-dhcp-server.c
71 networkd-dhcp-server.h
72 networkd-dhcp4.c
73 networkd-dhcp4.h
74 networkd-dhcp6.c
75 networkd-dhcp6.h
76 networkd-fdb.c
77 networkd-fdb.h
78 networkd-ipv4ll.c
79 networkd-ipv4ll.h
80 networkd-ipv6-proxy-ndp.c
81 networkd-ipv6-proxy-ndp.h
82 networkd-link-bus.c
83 networkd-link-bus.h
84 networkd-link.c
85 networkd-link.h
86 networkd-lldp-rx.c
87 networkd-lldp-rx.h
88 networkd-lldp-tx.c
89 networkd-lldp-tx.h
90 networkd-manager-bus.c
91 networkd-manager-bus.h
92 networkd-manager.c
93 networkd-manager.h
94 networkd-mdb.c
95 networkd-mdb.h
96 networkd-ndisc.c
97 networkd-ndisc.h
98 networkd-neighbor.c
99 networkd-neighbor.h
100 networkd-radv.c
101 networkd-radv.h
102 networkd-network-bus.c
103 networkd-network-bus.h
104 networkd-network.c
105 networkd-network.h
106 networkd-nexthop.c
107 networkd-nexthop.h
108 networkd-route.c
109 networkd-route.h
110 networkd-routing-policy-rule.c
111 networkd-routing-policy-rule.h
112 networkd-speed-meter.c
113 networkd-speed-meter.h
114 networkd-sriov.c
115 networkd-sriov.h
116 networkd-sysctl.c
117 networkd-sysctl.h
118 networkd-util.c
119 networkd-util.h
120 networkd-wifi.c
121 networkd-wifi.h
122 tc/cake.c
123 tc/cake.h
124 tc/codel.c
125 tc/codel.h
126 tc/drr.c
127 tc/drr.h
128 tc/ets.c
129 tc/ets.h
130 tc/fifo.c
131 tc/fifo.h
132 tc/fq.c
133 tc/fq.h
134 tc/fq-codel.c
135 tc/fq-codel.h
136 tc/fq-pie.c
137 tc/fq-pie.h
138 tc/gred.c
139 tc/gred.h
140 tc/hhf.c
141 tc/hhf.h
142 tc/htb.c
143 tc/htb.h
144 tc/netem.c
145 tc/netem.h
146 tc/pie.c
147 tc/pie.h
148 tc/qdisc.c
149 tc/qdisc.h
150 tc/qfq.c
151 tc/qfq.h
152 tc/sfb.c
153 tc/sfb.h
154 tc/sfq.c
155 tc/sfq.h
156 tc/tbf.c
157 tc/tbf.h
158 tc/tc-util.c
159 tc/tc-util.h
160 tc/tc.c
161 tc/tc.h
162 tc/tclass.c
163 tc/tclass.h
164 tc/teql.c
165 tc/teql.h
166 '''.split())
167
168 systemd_networkd_sources = files('networkd.c')
169
170 systemd_networkd_wait_online_sources = files('''
171 wait-online/link.c
172 wait-online/link.h
173 wait-online/manager.c
174 wait-online/manager.h
175 wait-online/wait-online.c
176 '''.split())
177
178 networkctl_sources = files('networkctl.c')
179
180 network_generator_sources = files('''
181 generator/main.c
182 generator/network-generator.c
183 generator/network-generator.h
184 '''.split())
185
186 sources += custom_target(
187 'networkd-gperf.c',
188 input : 'networkd-gperf.gperf',
189 output : 'networkd-gperf.c',
190 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
191
192 sources += 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@'])
197
198 sources += custom_target(
199 'netdev-gperf.c',
200 input : 'netdev/netdev-gperf.gperf',
201 output : 'netdev-gperf.c',
202 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
203
204 if get_option('link-networkd-shared')
205 networkd_link_with = [libshared]
206 else
207 networkd_link_with = [libsystemd_static,
208 libshared_static,
209 libbasic_gcrypt]
210 endif
211
212 network_includes = [libsystemd_network_includes, include_directories(['.', 'netdev', 'tc'])]
213
214 libnetworkd_core = static_library(
215 'networkd-core',
216 sources,
217 include_directories : network_includes,
218 link_with : [networkd_link_with])
219
220 if conf.get('ENABLE_NETWORKD') == 1
221 install_data('org.freedesktop.network1.conf',
222 install_dir : dbuspolicydir)
223 install_data('org.freedesktop.network1.service',
224 install_dir : dbussystemservicedir)
225 install_data('org.freedesktop.network1.policy',
226 install_dir : polkitpolicydir)
227 if install_polkit
228 install_data('systemd-networkd.rules',
229 install_dir : polkitrulesdir)
230 endif
231 if install_polkit_pkla
232 install_data('systemd-networkd.pkla',
233 install_dir : polkitpkladir)
234 endif
235
236 if install_sysconfdir_samples
237 install_data('networkd.conf',
238 install_dir : pkgsysconfdir)
239 endif
240 endif
241
242 fuzzers += [
243 [['src/network/fuzz-netdev-parser.c'],
244 [libnetworkd_core,
245 libsystemd_network,
246 networkd_link_with],
247 [threads],
248 network_includes],
249
250 [['src/network/fuzz-network-parser.c'],
251 [libnetworkd_core,
252 libsystemd_network,
253 networkd_link_with],
254 [threads],
255 network_includes],
256 ]
257
258 tests += [
259 [['src/network/test-networkd-conf.c'],
260 [libnetworkd_core,
261 libsystemd_network],
262 [],
263 network_includes],
264
265 [['src/network/test-network.c'],
266 [libnetworkd_core,
267 libsystemd_network],
268 [threads],
269 network_includes],
270
271 [['src/network/test-network-tables.c'],
272 [libnetworkd_core,
273 libsystemd_network],
274 [threads],
275 network_includes],
276
277 [['src/network/generator/test-network-generator.c',
278 'src/network/generator/network-generator.c',
279 'src/network/generator/network-generator.h']],
280 ]