1 # SPDX-License-Identifier: LGPL-2.1+
50 networkd-address-label.c
51 networkd-address-label.h
52 networkd-address-pool.c
53 networkd-address-pool.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
76 networkd-ipv6-proxy-ndp.c
77 networkd-ipv6-proxy-ndp.h
86 networkd-manager-bus.c
87 networkd-manager-bus.h
96 networkd-network-bus.c
97 networkd-network-bus.h
104 networkd-routing-policy-rule.c
105 networkd-routing-policy-rule.h
106 networkd-speed-meter.c
107 networkd-speed-meter.h
158 systemd_networkd_sources = files('networkd.c')
160 systemd_networkd_wait_online_sources = files('''
163 wait-online/manager.c
164 wait-online/manager.h
165 wait-online/wait-online.c
166 '''.split()) + network_internal_h
168 networkctl_sources = files('networkctl.c')
170 network_generator_sources = files('''
172 generator/network-generator.c
173 generator/network-generator.h
176 network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])]
178 if conf.get('ENABLE_NETWORKD') == 1
179 if get_option('link-networkd-shared')
180 networkd_link_with = [libshared]
182 networkd_link_with = [libsystemd_static,
188 networkd_gperf_c = custom_target(
190 input : 'networkd-gperf.gperf',
191 output : 'networkd-gperf.c',
192 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
194 networkd_network_gperf_c = custom_target(
195 'networkd-network-gperf.c',
196 input : 'networkd-network-gperf.gperf',
197 output : 'networkd-network-gperf.c',
198 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
200 netdev_gperf_c = custom_target(
202 input : 'netdev/netdev-gperf.gperf',
203 output : 'netdev-gperf.c',
204 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
206 libnetworkd_core = static_library(
211 networkd_network_gperf_c,
213 include_directories : network_include_dir,
214 link_with : [networkd_link_with])
216 install_data('org.freedesktop.network1.conf',
217 install_dir : dbuspolicydir)
218 install_data('org.freedesktop.network1.service',
219 install_dir : dbussystemservicedir)
220 install_data('org.freedesktop.network1.policy',
221 install_dir : polkitpolicydir)
223 install_data('systemd-networkd.rules',
224 install_dir : polkitrulesdir)
226 if install_polkit_pkla
227 install_data('systemd-networkd.pkla',
228 install_dir : polkitpkladir)
231 install_data('networkd.conf',
232 install_dir : pkgsysconfdir)
235 [['src/network/fuzz-netdev-parser.c',
243 network_include_dir],
245 [['src/network/fuzz-network-parser.c',
253 network_include_dir],
257 [['src/network/test-networkd-conf.c'],
261 [], '', '', [], network_include_dir],
263 [['src/network/test-network.c'],
269 '', '', [], network_include_dir],
271 [['src/network/test-routing-policy-rule.c'],
275 [], '', '', [], network_include_dir],
277 [['src/network/test-network-tables.c',
285 [network_include_dir]],
287 [['src/network/generator/test-network-generator.c',
288 'src/network/generator/network-generator.c',
289 'src/network/generator/network-generator.h'],
290 [networkd_link_with],
291 [], '', '', [], network_include_dir],