1 # SPDX-License-Identifier: LGPL-2.1+
40 networkd-address-label.c
41 networkd-address-label.h
42 networkd-address-pool.c
43 networkd-address-pool.h
55 networkd-ipv6-proxy-ndp.c
56 networkd-ipv6-proxy-ndp.h
62 networkd-manager-bus.c
71 networkd-network-bus.c
76 networkd-routing-policy-rule.c
77 networkd-routing-policy-rule.h
82 systemd_networkd_sources = files('networkd.c')
84 systemd_networkd_wait_online_sources = files('''
89 wait-online/wait-online.c
90 '''.split()) + network_internal_h
92 networkctl_sources = files('networkctl.c')
94 network_include_dir = include_directories('.')
96 if conf.get('ENABLE_NETWORKD') == 1
97 networkd_gperf_c = custom_target(
99 input : 'networkd-gperf.gperf',
100 output : 'networkd-gperf.c',
101 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
103 networkd_network_gperf_c = custom_target(
104 'networkd-network-gperf.c',
105 input : 'networkd-network-gperf.gperf',
106 output : 'networkd-network-gperf.c',
107 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
109 netdev_gperf_c = custom_target(
111 input : 'netdev/netdev-gperf.gperf',
112 output : 'netdev-gperf.c',
113 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
115 libnetworkd_core = static_library(
120 networkd_network_gperf_c,
122 include_directories : includes,
123 link_with : [libshared])
125 install_data('org.freedesktop.network1.conf',
126 install_dir : dbuspolicydir)
127 install_data('org.freedesktop.network1.service',
128 install_dir : dbussystemservicedir)
130 install_data('systemd-networkd.rules',
131 install_dir : polkitrulesdir)
133 if install_polkit_pkla
134 install_data('systemd-networkd.pkla',
135 install_dir : polkitpkladir)
138 install_data('networkd.conf',
139 install_dir : pkgsysconfdir)
142 [['src/network/fuzz-netdev-parser.c',
150 [['src/network/fuzz-network-parser.c',
160 [['src/network/test-networkd-conf.c'],
166 [['src/network/test-network.c'],
173 [['src/network/test-routing-policy-rule.c'],
179 [['src/network/test-network-tables.c',
180 'src/network/test-network-tables.c',
189 [network_include_dir] + libudev_core_includes],