1 # SPDX-License-Identifier: LGPL-2.1-or-later
52 networkd-address-label.c
53 networkd-address-label.h
54 networkd-address-pool.c
55 networkd-address-pool.h
64 networkd-dhcp-common.c
65 networkd-dhcp-common.h
66 networkd-dhcp-server-bus.c
67 networkd-dhcp-server-bus.h
68 networkd-dhcp-server.c
69 networkd-dhcp-server.h
78 networkd-ipv6-proxy-ndp.c
79 networkd-ipv6-proxy-ndp.h
88 networkd-manager-bus.c
89 networkd-manager-bus.h
100 networkd-network-bus.c
101 networkd-network-bus.h
108 networkd-routing-policy-rule.c
109 networkd-routing-policy-rule.h
110 networkd-speed-meter.c
111 networkd-speed-meter.h
166 systemd_networkd_sources = files('networkd.c')
168 systemd_networkd_wait_online_sources = files('''
171 wait-online/manager.c
172 wait-online/manager.h
173 wait-online/wait-online.c
174 '''.split()) + network_internal_h
176 networkctl_sources = files('networkctl.c')
178 network_generator_sources = files('''
180 generator/network-generator.c
181 generator/network-generator.h
184 network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])]
186 if conf.get('ENABLE_NETWORKD') == 1
187 if get_option('link-networkd-shared')
188 networkd_link_with = [libshared]
190 networkd_link_with = [libsystemd_static,
196 networkd_gperf_c = custom_target(
198 input : 'networkd-gperf.gperf',
199 output : 'networkd-gperf.c',
200 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
202 networkd_network_gperf_c = custom_target(
203 'networkd-network-gperf.c',
204 input : 'networkd-network-gperf.gperf',
205 output : 'networkd-network-gperf.c',
206 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
208 netdev_gperf_c = custom_target(
210 input : 'netdev/netdev-gperf.gperf',
211 output : 'netdev-gperf.c',
212 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
214 libnetworkd_core = static_library(
219 networkd_network_gperf_c,
221 include_directories : network_include_dir,
222 link_with : [networkd_link_with])
224 install_data('org.freedesktop.network1.conf',
225 install_dir : dbuspolicydir)
226 install_data('org.freedesktop.network1.service',
227 install_dir : dbussystemservicedir)
228 install_data('org.freedesktop.network1.policy',
229 install_dir : polkitpolicydir)
231 install_data('systemd-networkd.rules',
232 install_dir : polkitrulesdir)
234 if install_polkit_pkla
235 install_data('systemd-networkd.pkla',
236 install_dir : polkitpkladir)
239 install_data('networkd.conf',
240 install_dir : pkgsysconfdir)
243 [['src/network/fuzz-netdev-parser.c',
251 network_include_dir],
253 [['src/network/fuzz-network-parser.c',
261 network_include_dir],
265 [['src/network/test-networkd-conf.c'],
269 [], '', '', [], network_include_dir],
271 [['src/network/test-network.c'],
277 '', '', [], network_include_dir],
279 [['src/network/test-routing-policy-rule.c'],
283 [], '', '', [], network_include_dir],
285 [['src/network/test-network-tables.c',
293 [network_include_dir]],
295 [['src/network/generator/test-network-generator.c',
296 'src/network/generator/network-generator.c',
297 'src/network/generator/network-generator.h'],
298 [networkd_link_with],
299 [], '', '', [], network_include_dir],