]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/meson.build
network: bridgeFDB: rename FdbEntry -> BridgeFDB
[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-bridge-fdb.c
61 networkd-bridge-fdb.h
62 networkd-brvlan.c
63 networkd-brvlan.h
64 networkd-can.c
65 networkd-can.h
66 networkd-conf.c
67 networkd-conf.h
68 networkd-dhcp-common.c
69 networkd-dhcp-common.h
70 networkd-dhcp-server-bus.c
71 networkd-dhcp-server-bus.h
72 networkd-dhcp-server.c
73 networkd-dhcp-server.h
74 networkd-dhcp4.c
75 networkd-dhcp4.h
76 networkd-dhcp6.c
77 networkd-dhcp6.h
78 networkd-ipv4ll.c
79 networkd-ipv4ll.h
80 networkd-ipv6-proxy-ndp.c
81 networkd-ipv6-proxy-ndp.h
82 networkd-json.c
83 networkd-json.h
84 networkd-link-bus.c
85 networkd-link-bus.h
86 networkd-link.c
87 networkd-link.h
88 networkd-lldp-rx.c
89 networkd-lldp-rx.h
90 networkd-lldp-tx.c
91 networkd-lldp-tx.h
92 networkd-manager-bus.c
93 networkd-manager-bus.h
94 networkd-manager.c
95 networkd-manager.h
96 networkd-mdb.c
97 networkd-mdb.h
98 networkd-ndisc.c
99 networkd-ndisc.h
100 networkd-neighbor.c
101 networkd-neighbor.h
102 networkd-radv.c
103 networkd-radv.h
104 networkd-network-bus.c
105 networkd-network-bus.h
106 networkd-network.c
107 networkd-network.h
108 networkd-nexthop.c
109 networkd-nexthop.h
110 networkd-queue.c
111 networkd-queue.h
112 networkd-route.c
113 networkd-route.h
114 networkd-routing-policy-rule.c
115 networkd-routing-policy-rule.h
116 networkd-speed-meter.c
117 networkd-speed-meter.h
118 networkd-sriov.c
119 networkd-sriov.h
120 networkd-state-file.c
121 networkd-state-file.h
122 networkd-sysctl.c
123 networkd-sysctl.h
124 networkd-util.c
125 networkd-util.h
126 networkd-wifi.c
127 networkd-wifi.h
128 tc/cake.c
129 tc/cake.h
130 tc/codel.c
131 tc/codel.h
132 tc/drr.c
133 tc/drr.h
134 tc/ets.c
135 tc/ets.h
136 tc/fifo.c
137 tc/fifo.h
138 tc/fq.c
139 tc/fq.h
140 tc/fq-codel.c
141 tc/fq-codel.h
142 tc/fq-pie.c
143 tc/fq-pie.h
144 tc/gred.c
145 tc/gred.h
146 tc/hhf.c
147 tc/hhf.h
148 tc/htb.c
149 tc/htb.h
150 tc/netem.c
151 tc/netem.h
152 tc/pie.c
153 tc/pie.h
154 tc/qdisc.c
155 tc/qdisc.h
156 tc/qfq.c
157 tc/qfq.h
158 tc/sfb.c
159 tc/sfb.h
160 tc/sfq.c
161 tc/sfq.h
162 tc/tbf.c
163 tc/tbf.h
164 tc/tc-util.c
165 tc/tc-util.h
166 tc/tc.c
167 tc/tc.h
168 tc/tclass.c
169 tc/tclass.h
170 tc/teql.c
171 tc/teql.h
172 '''.split())
173
174 systemd_networkd_sources = files('networkd.c')
175
176 systemd_networkd_wait_online_sources = files('''
177 wait-online/link.c
178 wait-online/link.h
179 wait-online/manager.c
180 wait-online/manager.h
181 wait-online/wait-online.c
182 '''.split())
183
184 networkctl_sources = files('networkctl.c')
185
186 network_generator_sources = files('''
187 generator/main.c
188 generator/network-generator.c
189 generator/network-generator.h
190 '''.split())
191
192 sources += custom_target(
193 'networkd-gperf.c',
194 input : 'networkd-gperf.gperf',
195 output : 'networkd-gperf.c',
196 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
197
198 sources += custom_target(
199 'networkd-network-gperf.c',
200 input : 'networkd-network-gperf.gperf',
201 output : 'networkd-network-gperf.c',
202 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
203
204 sources += custom_target(
205 'netdev-gperf.c',
206 input : 'netdev/netdev-gperf.gperf',
207 output : 'netdev-gperf.c',
208 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
209
210 if get_option('link-networkd-shared')
211 networkd_link_with = [libshared]
212 else
213 networkd_link_with = [libsystemd_static,
214 libshared_static,
215 libbasic_gcrypt]
216 endif
217
218 network_includes = [libsystemd_network_includes, include_directories(['.', 'netdev', 'tc'])]
219
220 libnetworkd_core = static_library(
221 'networkd-core',
222 sources,
223 include_directories : network_includes,
224 link_with : [networkd_link_with])
225
226 if conf.get('ENABLE_NETWORKD') == 1
227 install_data('org.freedesktop.network1.conf',
228 install_dir : dbuspolicydir)
229 install_data('org.freedesktop.network1.service',
230 install_dir : dbussystemservicedir)
231 install_data('org.freedesktop.network1.policy',
232 install_dir : polkitpolicydir)
233 if install_polkit
234 install_data('systemd-networkd.rules',
235 install_dir : polkitrulesdir)
236 endif
237 if install_polkit_pkla
238 install_data('systemd-networkd.pkla',
239 install_dir : polkitpkladir)
240 endif
241
242 if install_sysconfdir_samples
243 install_data('networkd.conf',
244 install_dir : pkgsysconfdir)
245 endif
246 endif
247
248 fuzzers += [
249 [['src/network/fuzz-netdev-parser.c'],
250 [libnetworkd_core,
251 libsystemd_network,
252 networkd_link_with],
253 [threads],
254 network_includes],
255
256 [['src/network/fuzz-network-parser.c'],
257 [libnetworkd_core,
258 libsystemd_network,
259 networkd_link_with],
260 [threads],
261 network_includes],
262 ]
263
264 tests += [
265 [['src/network/test-networkd-conf.c'],
266 [libnetworkd_core,
267 libsystemd_network],
268 [],
269 network_includes],
270
271 [['src/network/test-network.c'],
272 [libnetworkd_core,
273 libsystemd_network],
274 [threads],
275 network_includes],
276
277 [['src/network/test-network-tables.c'],
278 [libnetworkd_core,
279 libsystemd_network],
280 [threads],
281 network_includes],
282
283 [['src/network/generator/test-network-generator.c',
284 'src/network/generator/network-generator.c',
285 'src/network/generator/network-generator.h']],
286 ]