]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/meson.build
meson: add TAGS target
[thirdparty/systemd.git] / src / network / meson.build
CommitLineData
5c23128d
ZJS
1# -*- mode: meson -*-
2
3sources = 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
64systemd_networkd_sources = files('networkd.c')
65
66systemd_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
74networkctl_sources = files('networkctl.c')
75
76if conf.get('ENABLE_NETWORKD', 0) == 1
77 networkd_gperf_c = custom_target(
78 'networkd-gperf.c',
79 input : 'networkd-gperf.gperf',
80 output : 'networkd-gperf.c',
81 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
82
83 networkd_network_gperf_c = custom_target(
84 'networkd-network-gperf.c',
85 input : 'networkd-network-gperf.gperf',
86 output : 'networkd-network-gperf.c',
87 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
88
89 netdev_gperf_c = custom_target(
90 'netdev-gperf.c',
91 input : 'netdev/netdev-gperf.gperf',
92 output : 'netdev-gperf.c',
93 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
94
95 libnetworkd_core = static_library(
96 'networkd-core',
97 sources,
98 network_internal_h,
99 networkd_gperf_c,
100 networkd_network_gperf_c,
101 netdev_gperf_c,
102 include_directories : includes,
103 link_with : [libshared])
104
105 install_data('org.freedesktop.network1.conf',
106 install_dir : dbuspolicydir)
107 install_data('org.freedesktop.network1.service',
108 install_dir : dbussystemservicedir)
109 install_data('systemd-networkd.rules',
110 install_dir : polkitrulesdir)
111endif