1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
51 networkd-address-label.c
52 networkd-address-label.h
53 networkd-address-pool.c
54 networkd-address-pool.h
66 networkd-ipv6-proxy-ndp.c
67 networkd-ipv6-proxy-ndp.h
73 networkd-manager-bus.c
80 networkd-network-bus.c
85 networkd-routing-policy-rule.c
86 networkd-routing-policy-rule.h
91 systemd_networkd_sources = files('networkd.c')
93 systemd_networkd_wait_online_sources = files('''
98 wait-online/wait-online.c
99 '''.split()) + network_internal_h
101 networkctl_sources = files('networkctl.c')
103 network_include_dir = include_directories('.')
105 if conf.get('ENABLE_NETWORKD') == 1
106 networkd_gperf_c = custom_target(
108 input : 'networkd-gperf.gperf',
109 output : 'networkd-gperf.c',
110 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
112 networkd_network_gperf_c = custom_target(
113 'networkd-network-gperf.c',
114 input : 'networkd-network-gperf.gperf',
115 output : 'networkd-network-gperf.c',
116 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
118 netdev_gperf_c = custom_target(
120 input : 'netdev/netdev-gperf.gperf',
121 output : 'netdev-gperf.c',
122 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
124 libnetworkd_core = static_library(
129 networkd_network_gperf_c,
131 include_directories : includes,
132 link_with : [libshared])
134 install_data('org.freedesktop.network1.conf',
135 install_dir : dbuspolicydir)
136 install_data('org.freedesktop.network1.service',
137 install_dir : dbussystemservicedir)
139 install_data('systemd-networkd.rules',
140 install_dir : polkitrulesdir)
142 if install_polkit_pkla
143 install_data('systemd-networkd.pkla',
144 install_dir : polkitpkladir)
148 [['src/network/test-networkd-conf.c'],
154 [['src/network/test-network.c'],
161 [['src/network/test-routing-policy-rule.c'],
167 [['src/network/test-network-tables.c',
168 'src/network/test-network-tables.c',
177 [network_include_dir] + libudev_core_includes],