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/>.
49 networkd-address-label.c
50 networkd-address-label.h
51 networkd-address-pool.c
52 networkd-address-pool.h
64 networkd-ipv6-proxy-ndp.c
65 networkd-ipv6-proxy-ndp.h
71 networkd-manager-bus.c
78 networkd-network-bus.c
83 networkd-routing-policy-rule.c
84 networkd-routing-policy-rule.h
89 systemd_networkd_sources = files('networkd.c')
91 systemd_networkd_wait_online_sources = files('''
96 wait-online/wait-online.c
97 '''.split()) + network_internal_h
99 networkctl_sources = files('networkctl.c')
101 network_include_dir = include_directories('.')
103 if conf.get('ENABLE_NETWORKD') == 1
104 networkd_gperf_c = custom_target(
106 input : 'networkd-gperf.gperf',
107 output : 'networkd-gperf.c',
108 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
110 networkd_network_gperf_c = custom_target(
111 'networkd-network-gperf.c',
112 input : 'networkd-network-gperf.gperf',
113 output : 'networkd-network-gperf.c',
114 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
116 netdev_gperf_c = custom_target(
118 input : 'netdev/netdev-gperf.gperf',
119 output : 'netdev-gperf.c',
120 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
122 libnetworkd_core = static_library(
127 networkd_network_gperf_c,
129 include_directories : includes,
130 link_with : [libshared])
132 install_data('org.freedesktop.network1.conf',
133 install_dir : dbuspolicydir)
134 install_data('org.freedesktop.network1.service',
135 install_dir : dbussystemservicedir)
137 install_data('systemd-networkd.rules',
138 install_dir : polkitrulesdir)
140 if install_polkit_pkla
141 install_data('systemd-networkd.pkla',
142 install_dir : polkitpkladir)
146 [['src/network/test-networkd-conf.c'],
152 [['src/network/test-network.c'],
159 [['src/network/test-routing-policy-rule.c'],
165 [['src/network/test-network-tables.c',
166 'src/network/test-network-tables.c',
175 [network_include_dir] + libudev_core_includes],