1 # SPDX-License-Identifier: LGPL-2.1+
48 networkd-address-label.c
49 networkd-address-label.h
50 networkd-address-pool.c
51 networkd-address-pool.h
60 networkd-dhcp-common.c
61 networkd-dhcp-common.h
62 networkd-dhcp-server.c
63 networkd-dhcp-server.h
72 networkd-ipv6-proxy-ndp.c
73 networkd-ipv6-proxy-ndp.h
82 networkd-manager-bus.c
91 networkd-network-bus.c
92 networkd-network-bus.h
97 networkd-routing-policy-rule.c
98 networkd-routing-policy-rule.h
99 networkd-speed-meter.c
100 networkd-speed-meter.h
105 systemd_networkd_sources = files('networkd.c')
107 systemd_networkd_wait_online_sources = files('''
110 wait-online/manager.c
111 wait-online/manager.h
112 wait-online/wait-online.c
113 '''.split()) + network_internal_h
115 networkctl_sources = files('networkctl.c')
117 network_generator_sources = files('''
119 generator/network-generator.c
120 generator/network-generator.h
123 network_include_dir = include_directories('.')
125 if conf.get('ENABLE_NETWORKD') == 1
126 networkd_gperf_c = custom_target(
128 input : 'networkd-gperf.gperf',
129 output : 'networkd-gperf.c',
130 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
132 networkd_network_gperf_c = custom_target(
133 'networkd-network-gperf.c',
134 input : 'networkd-network-gperf.gperf',
135 output : 'networkd-network-gperf.c',
136 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
138 netdev_gperf_c = custom_target(
140 input : 'netdev/netdev-gperf.gperf',
141 output : 'netdev-gperf.c',
142 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
144 libnetworkd_core = static_library(
149 networkd_network_gperf_c,
151 include_directories : includes,
152 link_with : [libshared])
154 install_data('org.freedesktop.network1.conf',
155 install_dir : dbuspolicydir)
156 install_data('org.freedesktop.network1.service',
157 install_dir : dbussystemservicedir)
159 install_data('systemd-networkd.rules',
160 install_dir : polkitrulesdir)
162 if install_polkit_pkla
163 install_data('systemd-networkd.pkla',
164 install_dir : polkitpkladir)
167 install_data('networkd.conf',
168 install_dir : pkgsysconfdir)
171 [['src/network/fuzz-netdev-parser.c',
179 [['src/network/fuzz-network-parser.c',
189 [['src/network/test-networkd-conf.c'],
195 [['src/network/test-network.c'],
202 [['src/network/test-routing-policy-rule.c'],
208 [['src/network/test-network-tables.c',
217 [network_include_dir] + libudev_core_includes],