]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/meson.build
Merge pull request #5420 from OpenDZ/tixxdz/namespace-fixes-v2
[thirdparty/systemd.git] / src / network / meson.build
1 sources = files('''
2 netdev/bond.c
3 netdev/bond.h
4 netdev/bridge.c
5 netdev/bridge.h
6 netdev/dummy.c
7 netdev/dummy.h
8 netdev/ipvlan.c
9 netdev/ipvlan.h
10 netdev/macvlan.c
11 netdev/macvlan.h
12 netdev/netdev.c
13 netdev/netdev.h
14 netdev/tunnel.c
15 netdev/tunnel.h
16 netdev/tuntap.c
17 netdev/tuntap.h
18 netdev/vcan.c
19 netdev/vcan.h
20 netdev/veth.c
21 netdev/veth.h
22 netdev/vlan.c
23 netdev/vlan.h
24 netdev/vrf.c
25 netdev/vrf.h
26 netdev/vxlan.c
27 netdev/vxlan.h
28 netdev/geneve.c
29 netdev/geneve.h
30 networkd-address-label.c
31 networkd-address-label.h
32 networkd-address-pool.c
33 networkd-address-pool.h
34 networkd-address.c
35 networkd-address.h
36 networkd-brvlan.c
37 networkd-brvlan.h
38 networkd-conf.c
39 networkd-conf.h
40 networkd-dhcp4.c
41 networkd-dhcp6.c
42 networkd-fdb.c
43 networkd-fdb.h
44 networkd-ipv4ll.c
45 networkd-ipv6-proxy-ndp.c
46 networkd-ipv6-proxy-ndp.h
47 networkd-link-bus.c
48 networkd-link.c
49 networkd-link.h
50 networkd-lldp-tx.c
51 networkd-lldp-tx.h
52 networkd-manager-bus.c
53 networkd-manager.c
54 networkd-manager.h
55 networkd-ndisc.c
56 networkd-ndisc.h
57 networkd-network-bus.c
58 networkd-network.c
59 networkd-network.h
60 networkd-route.c
61 networkd-route.h
62 networkd-util.c
63 networkd-util.h
64 '''.split())
65
66 systemd_networkd_sources = files('networkd.c')
67
68 systemd_networkd_wait_online_sources = files('''
69 wait-online/link.c
70 wait-online/link.h
71 wait-online/manager.c
72 wait-online/manager.h
73 wait-online/wait-online.c
74 '''.split()) + network_internal_h
75
76 networkctl_sources = files('networkctl.c')
77
78 network_include_dir = include_directories('.')
79
80 if conf.get('ENABLE_NETWORKD', false)
81 networkd_gperf_c = custom_target(
82 'networkd-gperf.c',
83 input : 'networkd-gperf.gperf',
84 output : 'networkd-gperf.c',
85 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
86
87 networkd_network_gperf_c = custom_target(
88 'networkd-network-gperf.c',
89 input : 'networkd-network-gperf.gperf',
90 output : 'networkd-network-gperf.c',
91 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
92
93 netdev_gperf_c = custom_target(
94 'netdev-gperf.c',
95 input : 'netdev/netdev-gperf.gperf',
96 output : 'netdev-gperf.c',
97 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
98
99 libnetworkd_core = static_library(
100 'networkd-core',
101 sources,
102 network_internal_h,
103 networkd_gperf_c,
104 networkd_network_gperf_c,
105 netdev_gperf_c,
106 include_directories : includes,
107 link_with : [libshared])
108
109 install_data('org.freedesktop.network1.conf',
110 install_dir : dbuspolicydir)
111 install_data('org.freedesktop.network1.service',
112 install_dir : dbussystemservicedir)
113 if install_polkit
114 install_data('systemd-networkd.rules',
115 install_dir : polkitrulesdir)
116 endif
117 if install_polkit_pkla
118 install_data('systemd-networkd.pkla',
119 install_dir : polkitpkladir)
120 endif
121
122 tests += [
123 [['src/network/test-networkd-conf.c'],
124 [libnetworkd_core,
125 libsystemd_network,
126 libudev],
127 []],
128
129 [['src/network/test-network.c'],
130 [libnetworkd_core,
131 libudev_internal,
132 libsystemd_network,
133 libshared],
134 []],
135
136 [['src/network/test-network-tables.c',
137 'src/network/test-network-tables.c',
138 test_tables_h],
139 [libnetworkd_core,
140 libudev_internal,
141 libudev_core,
142 libsystemd_network,
143 libshared],
144 [],
145 '', '', [],
146 [network_include_dir] + libudev_core_includes],
147 ]
148 endif