1 # SPDX-License-Identifier: LGPL-2.1-or-later
54 networkd-address-label.c
55 networkd-address-label.h
56 networkd-address-pool.c
57 networkd-address-pool.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
80 networkd-ipv6-proxy-ndp.c
81 networkd-ipv6-proxy-ndp.h
92 networkd-manager-bus.c
93 networkd-manager-bus.h
104 networkd-network-bus.c
105 networkd-network-bus.h
114 networkd-routing-policy-rule.c
115 networkd-routing-policy-rule.h
116 networkd-speed-meter.c
117 networkd-speed-meter.h
120 networkd-state-file.c
121 networkd-state-file.h
174 systemd_networkd_sources = files('networkd.c')
176 systemd_networkd_wait_online_sources = files('''
179 wait-online/manager.c
180 wait-online/manager.h
181 wait-online/wait-online.c
184 networkctl_sources = files('networkctl.c')
186 network_generator_sources = files('''
188 generator/network-generator.c
189 generator/network-generator.h
192 sources += custom_target(
194 input : 'networkd-gperf.gperf',
195 output : 'networkd-gperf.c',
196 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
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@'])
204 sources += custom_target(
206 input : 'netdev/netdev-gperf.gperf',
207 output : 'netdev-gperf.c',
208 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
210 if get_option('link-networkd-shared')
211 networkd_link_with = [libshared]
213 networkd_link_with = [libsystemd_static,
218 network_includes = [libsystemd_network_includes, include_directories(['.', 'netdev', 'tc'])]
220 libnetworkd_core = static_library(
223 include_directories : network_includes,
224 link_with : [networkd_link_with])
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)
234 install_data('systemd-networkd.rules',
235 install_dir : polkitrulesdir)
237 if install_polkit_pkla
238 install_data('systemd-networkd.pkla',
239 install_dir : polkitpkladir)
242 if install_sysconfdir_samples
243 install_data('networkd.conf',
244 install_dir : pkgsysconfdir)
249 [['src/network/fuzz-netdev-parser.c'],
256 [['src/network/fuzz-network-parser.c'],
265 [['src/network/test-networkd-conf.c'],
271 [['src/network/test-network.c'],
277 [['src/network/test-network-tables.c'],
283 [['src/network/generator/test-network-generator.c',
284 'src/network/generator/network-generator.c',
285 'src/network/generator/network-generator.h']],