]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/meson.build
Merge pull request #16316 from yuwata/backlight-use-actual-brightness
[thirdparty/systemd.git] / src / network / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 sources = files('''
4 netdev/bond.c
5 netdev/bond.h
6 netdev/bridge.c
7 netdev/bridge.h
8 netdev/dummy.c
9 netdev/dummy.h
10 netdev/ifb.c
11 netdev/ifb.h
12 netdev/ipvlan.c
13 netdev/ipvlan.h
14 netdev/macvlan.c
15 netdev/macvlan.h
16 netdev/netdev.c
17 netdev/netdev.h
18 netdev/nlmon.c
19 netdev/nlmon.h
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
34 netdev/geneve.c
35 netdev/geneve.h
36 netdev/vxcan.c
37 netdev/vxcan.h
38 netdev/wireguard.c
39 netdev/wireguard.h
40 netdev/netdevsim.c
41 netdev/netdevsim.h
42 netdev/fou-tunnel.c
43 netdev/fou-tunnel.h
44 netdev/l2tp-tunnel.c
45 netdev/l2tp-tunnel.h
46 netdev/macsec.c
47 netdev/macsec.h
48 netdev/xfrm.c
49 netdev/xfrm.h
50 networkd-address-label.c
51 networkd-address-label.h
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
58 networkd-can.c
59 networkd-can.h
60 networkd-conf.c
61 networkd-conf.h
62 networkd-dhcp-common.c
63 networkd-dhcp-common.h
64 networkd-dhcp-server-bus.c
65 networkd-dhcp-server-bus.h
66 networkd-dhcp-server.c
67 networkd-dhcp-server.h
68 networkd-dhcp4.c
69 networkd-dhcp4.h
70 networkd-dhcp6.c
71 networkd-dhcp6.h
72 networkd-fdb.c
73 networkd-fdb.h
74 networkd-ipv4ll.c
75 networkd-ipv4ll.h
76 networkd-ipv6-proxy-ndp.c
77 networkd-ipv6-proxy-ndp.h
78 networkd-link-bus.c
79 networkd-link-bus.h
80 networkd-link.c
81 networkd-link.h
82 networkd-lldp-rx.c
83 networkd-lldp-rx.h
84 networkd-lldp-tx.c
85 networkd-lldp-tx.h
86 networkd-manager-bus.c
87 networkd-manager-bus.h
88 networkd-manager.c
89 networkd-manager.h
90 networkd-ndisc.c
91 networkd-ndisc.h
92 networkd-neighbor.c
93 networkd-neighbor.h
94 networkd-radv.c
95 networkd-radv.h
96 networkd-network-bus.c
97 networkd-network-bus.h
98 networkd-network.c
99 networkd-network.h
100 networkd-nexthop.c
101 networkd-nexthop.h
102 networkd-route.c
103 networkd-route.h
104 networkd-routing-policy-rule.c
105 networkd-routing-policy-rule.h
106 networkd-speed-meter.c
107 networkd-speed-meter.h
108 networkd-util.c
109 networkd-util.h
110 networkd-wifi.c
111 networkd-wifi.h
112 tc/cake.c
113 tc/cake.h
114 tc/codel.c
115 tc/codel.h
116 tc/drr.c
117 tc/drr.h
118 tc/ets.c
119 tc/ets.h
120 tc/fifo.c
121 tc/fifo.h
122 tc/fq.c
123 tc/fq.h
124 tc/fq-codel.c
125 tc/fq-codel.h
126 tc/gred.c
127 tc/gred.h
128 tc/hhf.c
129 tc/hhf.h
130 tc/htb.c
131 tc/htb.h
132 tc/netem.c
133 tc/netem.h
134 tc/pie.c
135 tc/pie.h
136 tc/qdisc.c
137 tc/qdisc.h
138 tc/qfq.c
139 tc/qfq.h
140 tc/sfb.c
141 tc/sfb.h
142 tc/sfq.c
143 tc/sfq.h
144 tc/tbf.c
145 tc/tbf.h
146 tc/tc-util.c
147 tc/tc-util.h
148 tc/tc.c
149 tc/tc.h
150 tc/tclass.c
151 tc/tclass.h
152 tc/teql.c
153 tc/teql.h
154 '''.split())
155
156 systemd_networkd_sources = files('networkd.c')
157
158 systemd_networkd_wait_online_sources = files('''
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
164 '''.split()) + network_internal_h
165
166 networkctl_sources = files('networkctl.c')
167
168 network_generator_sources = files('''
169 generator/main.c
170 generator/network-generator.c
171 generator/network-generator.h
172 '''.split())
173
174 network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])]
175
176 if conf.get('ENABLE_NETWORKD') == 1
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
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@'])
191
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@'])
197
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@'])
203
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,
211 include_directories : network_include_dir,
212 link_with : [networkd_link_with])
213
214 install_data('org.freedesktop.network1.conf',
215 install_dir : dbuspolicydir)
216 install_data('org.freedesktop.network1.service',
217 install_dir : dbussystemservicedir)
218 install_data('org.freedesktop.network1.policy',
219 install_dir : polkitpolicydir)
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
228
229 install_data('networkd.conf',
230 install_dir : pkgsysconfdir)
231
232 fuzzers += [
233 [['src/network/fuzz-netdev-parser.c',
234 'src/fuzz/fuzz.h'],
235 [libnetworkd_core,
236 libudev_static,
237 libsystemd_network,
238 networkd_link_with],
239 [threads],
240 [],
241 network_include_dir],
242
243 [['src/network/fuzz-network-parser.c',
244 'src/fuzz/fuzz.h'],
245 [libnetworkd_core,
246 libudev_static,
247 libsystemd_network,
248 networkd_link_with],
249 [threads],
250 [],
251 network_include_dir],
252 ]
253
254 tests += [
255 [['src/network/test-networkd-conf.c'],
256 [libnetworkd_core,
257 libsystemd_network,
258 libudev],
259 [], '', '', [], network_include_dir],
260
261 [['src/network/test-network.c'],
262 [libnetworkd_core,
263 libudev_static,
264 libsystemd_network,
265 networkd_link_with],
266 [threads],
267 '', '', [], network_include_dir],
268
269 [['src/network/test-routing-policy-rule.c'],
270 [libnetworkd_core,
271 libsystemd_network,
272 libudev],
273 [], '', '', [], network_include_dir],
274
275 [['src/network/test-network-tables.c',
276 test_tables_h],
277 [libnetworkd_core,
278 libudev_static,
279 libsystemd_network,
280 networkd_link_with],
281 [threads],
282 '', '', [],
283 [network_include_dir]],
284
285 [['src/network/generator/test-network-generator.c',
286 'src/network/generator/network-generator.c',
287 'src/network/generator/network-generator.h'],
288 [networkd_link_with],
289 [], '', '', [], network_include_dir],
290 ]
291 endif