chiark / gitweb /
Add firewall eBPF compiler
[elogind.git] / src / core / meson.build
1 #if 0 /// elogind has only two of the parts here in it...
2 # libcore_la_sources = '''
3 #         audit-fd.c
4 #         audit-fd.h
5 #         automount.c
6 #         automount.h
7 #         bpf-firewall.c
8 #         bpf-firewall.h
9 #         cgroup.c
10 #         cgroup.h
11 #         dbus-automount.c
12 #         dbus-automount.h
13 #         dbus-cgroup.c
14 #         dbus-cgroup.h
15 #         dbus-device.c
16 #         dbus-device.h
17 #         dbus-execute.c
18 #         dbus-execute.h
19 #         dbus-job.c
20 #         dbus-job.h
21 #         dbus-kill.c
22 #         dbus-kill.h
23 #         dbus-manager.c
24 #         dbus-manager.h
25 #         dbus-mount.c
26 #         dbus-mount.h
27 #         dbus-path.c
28 #         dbus-path.h
29 #         dbus-scope.c
30 #         dbus-scope.h
31 #         dbus-service.c
32 #         dbus-service.h
33 #         dbus-slice.c
34 #         dbus-slice.h
35 #         dbus-socket.c
36 #         dbus-socket.h
37 #         dbus-swap.c
38 #         dbus-swap.h
39 #         dbus-target.c
40 #         dbus-target.h
41 #         dbus-timer.c
42 #         dbus-timer.h
43 #         dbus-unit.c
44 #         dbus-unit.h
45 #         dbus.c
46 #         dbus.h
47 #         device.c
48 #         device.h
49 #         dynamic-user.c
50 #         dynamic-user.h
51 #         emergency-action.c
52 #         emergency-action.h
53 #         execute.c
54 #         execute.h
55 #         hostname-setup.c
56 #         hostname-setup.h
57 #         ima-setup.c
58 #         ima-setup.h
59 #         ip-address-access.c
60 #         ip-address-access.h
61 #         job.c
62 #         job.h
63 #         kill.c
64 #         kill.h
65 #         killall.c
66 #         killall.h
67 #         kmod-setup.c
68 #         kmod-setup.h
69 #         load-dropin.c
70 #         load-dropin.h
71 #         load-fragment.c
72 #         load-fragment.h
73 #         locale-setup.c
74 #         locale-setup.h
75 #         loopback-setup.c
76 #         loopback-setup.h
77 #         machine-id-setup.c
78 #         machine-id-setup.h
79 #         manager.c
80 #         manager.h
81 #         mount-setup.c
82 #         mount-setup.h
83 #         mount.c
84 #         mount.h
85 #         namespace.c
86 #         namespace.h
87 #         path.c
88 #         path.h
89 #         scope.c
90 #         scope.h
91 #         selinux-access.c
92 #         selinux-access.h
93 #         selinux-setup.c
94 #         selinux-setup.h
95 #         service.c
96 #         service.h
97 #         show-status.c
98 #         show-status.h
99 #         slice.c
100 #         slice.h
101 #         smack-setup.c
102 #         smack-setup.h
103 #         socket.c
104 #         socket.h
105 #         swap.c
106 #         swap.h
107 #         target.c
108 #         target.h
109 #         timer.c
110 #         timer.h
111 #         transaction.c
112 #         transaction.h
113 #         unit-printf.c
114 #         unit-printf.h
115 #         unit.c
116 #         unit.h
117 # '''.split()
118 #else
119 libcore_la_sources = files('''
120         cgroup.c
121         cgroup.h
122         mount-setup.c
123         mount-setup.h
124 '''.split())
125 #endif // 0
126
127 #if 0 /// The rest is not needed by elogind, we use the sources directly in login
128 # load_fragment_gperf_gperf = custom_target(
129 #         'load-fragment-gperf.gperf',
130 #         input : 'load-fragment-gperf.gperf.m4',
131 #         output: 'load-fragment-gperf.gperf',
132 #         command : [m4, '-P'] + m4_defines + ['@INPUT@'],
133 #         capture : true)
134
135 # load_fragment_gperf_c = custom_target(
136 #         'load-fragment-gperf.c',
137 #         input : load_fragment_gperf_gperf,
138 #         output : 'load-fragment-gperf.c',
139 #         command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
140
141 # awkscript = 'load-fragment-gperf-nulstr.awk'
142 # load_fragment_gperf_nulstr_c = custom_target(
143 #         'load-fragment-gperf-nulstr.c',
144 #         input : [awkscript, load_fragment_gperf_gperf],
145 #         output : 'load-fragment-gperf-nulstr.c',
146 #         command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
147 #         capture : true)
148 #
149 # libcore = static_library(
150 #         'core',
151 #         libcore_la_sources,
152 #         load_fragment_gperf_c,
153 #         load_fragment_gperf_nulstr_c,
154 #         include_directories : includes,
155 #         link_with : [libshared_static],
156 #         dependencies : [threads,
157 #                         libseccomp,
158 #                         libpam,
159 #                         libaudit,
160 #                         libkmod,
161 #                         libapparmor,
162 #                         libmount])
163 #
164 # systemd_sources = files('main.c')
165
166 # systemd_shutdown_sources = files('''
167 #         shutdown.c
168 #         umount.c
169 #         umount.h
170 #         mount-setup.c
171 #         mount-setup.h
172 #         killall.c
173 #         killall.h
174 # '''.split())
175
176 # in_files = [['macros.systemd',   rpmmacrosdir],
177 #             ['triggers.systemd', ''],
178 #             ['systemd.pc',       pkgconfigdatadir]]
179
180 # foreach item : in_files
181 #         file = item[0]
182 #         dir = item[1]
183
184 #         # If 'no', disable generation completely.
185 #         # If '', generate, but do not install.
186 #         if dir != 'no'
187 #                 gen = configure_file(
188 #                         input : file + '.in',
189 #                         output : file,
190 #                         configuration : substs)
191 #                 if dir != ''
192 #                         install_data(gen,
193 #                                      install_dir : dir)
194 #                 endif
195 #         endif
196 # endforeach
197
198 # install_data('org.freedesktop.systemd1.conf',
199 #              install_dir : dbuspolicydir)
200 # install_data('org.freedesktop.systemd1.service',
201 #              install_dir : dbussystemservicedir)
202
203 # policy_in = configure_file(
204 #         input : 'org.freedesktop.systemd1.policy.in.in',
205 #         output : 'org.freedesktop.systemd1.policy.in',
206 #         configuration : substs)
207
208 # custom_target(
209 #         'org.freedesktop.systemd1.policy',
210 #         input : policy_in,
211 #         output : 'org.freedesktop.systemd1.policy',
212 #         command : intltool_command,
213 #         install : install_polkit,
214 #         install_dir : polkitpolicydir)
215 #endif // 0
216
217 # TODO: this might work with meson from git, see
218 # https://github.com/mesonbuild/meson/issues/1441#issuecomment-283585493
219 #
220 # i18n.merge_file(
221 #   'org.freedesktop.systemd1.policy',
222 #   po_dir : po_dir,
223 #   input : policy_in,
224 #   output : 'org.freedesktop.systemd1.policy',
225 #   install : install_polkit,
226 #   install_dir : polkitpolicydir)
227
228 #if 0 /// totally UNNEEDED in elogind
229 # install_data('system.conf',
230 #              'user.conf',
231 #              install_dir : pkgsysconfdir)
232
233 # meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
234 # meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
235 # meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
236 # meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
237
238 # meson.add_install_script('sh', '-c',
239 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
240 # meson.add_install_script('sh', '-c',
241 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
242 # meson.add_install_script('sh', '-c',
243 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
244 # meson.add_install_script('sh', '-c',
245 #                          mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))
246 #endif // 0