1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
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
69 networkd-network-bus.c
74 networkd-routing-policy-rule.c
75 networkd-routing-policy-rule.h
80 systemd_networkd_sources = files('networkd.c')
82 systemd_networkd_wait_online_sources = files('''
87 wait-online/wait-online.c
88 '''.split()) + network_internal_h
90 networkctl_sources = files('networkctl.c')
92 network_include_dir = include_directories('.')
94 if conf.get('ENABLE_NETWORKD') == 1
95 networkd_gperf_c = custom_target(
97 input : 'networkd-gperf.gperf',
98 output : 'networkd-gperf.c',
99 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
101 networkd_network_gperf_c = custom_target(
102 'networkd-network-gperf.c',
103 input : 'networkd-network-gperf.gperf',
104 output : 'networkd-network-gperf.c',
105 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
107 netdev_gperf_c = custom_target(
109 input : 'netdev/netdev-gperf.gperf',
110 output : 'netdev-gperf.c',
111 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
113 libnetworkd_core = static_library(
118 networkd_network_gperf_c,
120 include_directories : includes,
121 link_with : [libshared])
123 install_data('org.freedesktop.network1.conf',
124 install_dir : dbuspolicydir)
125 install_data('org.freedesktop.network1.service',
126 install_dir : dbussystemservicedir)
128 install_data('systemd-networkd.rules',
129 install_dir : polkitrulesdir)
131 if install_polkit_pkla
132 install_data('systemd-networkd.pkla',
133 install_dir : polkitpkladir)
137 [['src/network/test-networkd-conf.c'],
143 [['src/network/test-network.c'],
150 [['src/network/test-routing-policy-rule.c'],
156 [['src/network/test-network-tables.c',
157 'src/network/test-network-tables.c',
166 [network_include_dir] + libudev_core_includes],