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