1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
38 networkd-address-label.c
39 networkd-address-label.h
40 networkd-address-pool.c
41 networkd-address-pool.h
53 networkd-ipv6-proxy-ndp.c
54 networkd-ipv6-proxy-ndp.h
60 networkd-manager-bus.c
67 networkd-network-bus.c
72 networkd-routing-policy-rule.c
73 networkd-routing-policy-rule.h
78 systemd_networkd_sources = files('networkd.c')
80 systemd_networkd_wait_online_sources = files('''
85 wait-online/wait-online.c
86 '''.split()) + network_internal_h
88 networkctl_sources = files('networkctl.c')
90 network_include_dir = include_directories('.')
92 if conf.get('ENABLE_NETWORKD') == 1
93 networkd_gperf_c = custom_target(
95 input : 'networkd-gperf.gperf',
96 output : 'networkd-gperf.c',
97 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
99 networkd_network_gperf_c = custom_target(
100 'networkd-network-gperf.c',
101 input : 'networkd-network-gperf.gperf',
102 output : 'networkd-network-gperf.c',
103 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
105 netdev_gperf_c = custom_target(
107 input : 'netdev/netdev-gperf.gperf',
108 output : 'netdev-gperf.c',
109 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
111 libnetworkd_core = static_library(
116 networkd_network_gperf_c,
118 include_directories : includes,
119 link_with : [libshared])
121 install_data('org.freedesktop.network1.conf',
122 install_dir : dbuspolicydir)
123 install_data('org.freedesktop.network1.service',
124 install_dir : dbussystemservicedir)
126 install_data('systemd-networkd.rules',
127 install_dir : polkitrulesdir)
129 if install_polkit_pkla
130 install_data('systemd-networkd.pkla',
131 install_dir : polkitpkladir)
135 [['src/network/test-networkd-conf.c'],
141 [['src/network/test-network.c'],
148 [['src/network/test-routing-policy-rule.c'],
154 [['src/network/test-network-tables.c',
155 'src/network/test-network-tables.c',
164 [network_include_dir] + libudev_core_includes],