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
156 systemd_networkd_sources = files('networkd.c')
158 systemd_networkd_wait_online_sources = files('''
161 wait-online/manager.c
162 wait-online/manager.h
163 wait-online/wait-online.c
164 '''.split()) + network_internal_h
166 networkctl_sources = files('networkctl.c')
168 network_generator_sources = files('''
170 generator/network-generator.c
171 generator/network-generator.h
174 network_include_dir = [includes, include_directories(['.', 'netdev', 'tc'])]
176 if conf.get('ENABLE_NETWORKD') == 1
177 if get_option('link-networkd-shared')
178 networkd_link_with = [libshared]
180 networkd_link_with = [libsystemd_static,
186 networkd_gperf_c = custom_target(
188 input : 'networkd-gperf.gperf',
189 output : 'networkd-gperf.c',
190 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
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@'])
198 netdev_gperf_c = custom_target(
200 input : 'netdev/netdev-gperf.gperf',
201 output : 'netdev-gperf.c',
202 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
204 libnetworkd_core = static_library(
209 networkd_network_gperf_c,
211 include_directories : network_include_dir,
212 link_with : [networkd_link_with])
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)
221 install_data('systemd-networkd.rules',
222 install_dir : polkitrulesdir)
224 if install_polkit_pkla
225 install_data('systemd-networkd.pkla',
226 install_dir : polkitpkladir)
229 install_data('networkd.conf',
230 install_dir : pkgsysconfdir)
233 [['src/network/fuzz-netdev-parser.c',
241 network_include_dir],
243 [['src/network/fuzz-network-parser.c',
251 network_include_dir],
255 [['src/network/test-networkd-conf.c'],
259 [], '', '', [], network_include_dir],
261 [['src/network/test-network.c'],
267 '', '', [], network_include_dir],
269 [['src/network/test-routing-policy-rule.c'],
273 [], '', '', [], network_include_dir],
275 [['src/network/test-network-tables.c',
283 [network_include_dir]],
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],