chiark / gitweb /
core: add dbus-util.[ch] to simplify creating transient units
[elogind.git] / src / core / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # Copyright 2017 Zbigniew JÄ™drzejewski-Szmek
4 #
5 # elogind is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9 #
10 # elogind is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with elogind; If not, see <http://www.gnu.org/licenses/>.
17
18 #if 0 /// elogind has only two of the parts here in it...
19 # libcore_la_sources = '''
20 #         audit-fd.c
21 #         audit-fd.h
22 #         automount.c
23 #         automount.h
24 #         bpf-firewall.c
25 #         bpf-firewall.h
26 #         cgroup.c
27 #         cgroup.h
28 #         chown-recursive.c
29 #         chown-recursive.h
30 #         dbus-automount.c
31 #         dbus-automount.h
32 #         dbus-cgroup.c
33 #         dbus-cgroup.h
34 #         dbus-device.c
35 #         dbus-device.h
36 #         dbus-execute.c
37 #         dbus-execute.h
38 #         dbus-job.c
39 #         dbus-job.h
40 #         dbus-kill.c
41 #         dbus-kill.h
42 #         dbus-manager.c
43 #         dbus-manager.h
44 #         dbus-mount.c
45 #         dbus-mount.h
46 #         dbus-path.c
47 #         dbus-path.h
48 #         dbus-scope.c
49 #         dbus-scope.h
50 #         dbus-service.c
51 #         dbus-service.h
52 #         dbus-slice.c
53 #         dbus-slice.h
54 #         dbus-socket.c
55 #         dbus-socket.h
56 #         dbus-swap.c
57 #         dbus-swap.h
58 #         dbus-target.c
59 #         dbus-target.h
60 #         dbus-timer.c
61 #         dbus-timer.h
62 #         dbus-unit.c
63 #         dbus-unit.h
64 #         dbus-util.c
65 #         dbus-util.h
66 #         dbus.c
67 #         dbus.h
68 #         device.c
69 #         device.h
70 #         dynamic-user.c
71 #         dynamic-user.h
72 #         emergency-action.c
73 #         emergency-action.h
74 #         execute.c
75 #         execute.h
76 #         hostname-setup.c
77 #         hostname-setup.h
78 #         ima-setup.c
79 #         ima-setup.h
80 #         ip-address-access.c
81 #         ip-address-access.h
82 #         job.c
83 #         job.h
84 #         kill.c
85 #         kill.h
86 #         killall.c
87 #         killall.h
88 #         kmod-setup.c
89 #         kmod-setup.h
90 #         load-dropin.c
91 #         load-dropin.h
92 #         load-fragment.c
93 #         load-fragment.h
94 #         locale-setup.c
95 #         locale-setup.h
96 #         loopback-setup.c
97 #         loopback-setup.h
98 #         machine-id-setup.c
99 #         machine-id-setup.h
100 #         manager.c
101 #         manager.h
102 #         mount-setup.c
103 #         mount-setup.h
104 #         mount.c
105 #         mount.h
106 #         namespace.c
107 #         namespace.h
108 #         path.c
109 #         path.h
110 #         scope.c
111 #         scope.h
112 #         selinux-access.c
113 #         selinux-access.h
114 #         selinux-setup.c
115 #         selinux-setup.h
116 #         service.c
117 #         service.h
118 #         show-status.c
119 #         show-status.h
120 #         slice.c
121 #         slice.h
122 #         smack-setup.c
123 #         smack-setup.h
124 #         socket.c
125 #         socket.h
126 #         swap.c
127 #         swap.h
128 #         target.c
129 #         target.h
130 #         timer.c
131 #         timer.h
132 #         transaction.c
133 #         transaction.h
134 #         unit-printf.c
135 #         unit-printf.h
136 #         unit.c
137 #         unit.h
138 # '''.split()
139 #else
140 libcore_la_sources = files('''
141         cgroup.c
142         cgroup.h
143         mount-setup.c
144         mount-setup.h
145 '''.split())
146 #endif // 0
147
148 #if 0 /// The rest is not needed by elogind, we use the sources directly in login
149 # load_fragment_gperf_gperf = custom_target(
150 #         'load-fragment-gperf.gperf',
151 #         input : 'load-fragment-gperf.gperf.m4',
152 #         output: 'load-fragment-gperf.gperf',
153 #         command : [m4, '-P'] + m4_defines + ['@INPUT@'],
154 #         capture : true)
155
156 # load_fragment_gperf_c = custom_target(
157 #         'load-fragment-gperf.c',
158 #         input : load_fragment_gperf_gperf,
159 #         output : 'load-fragment-gperf.c',
160 #         command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
161
162 # awkscript = 'load-fragment-gperf-nulstr.awk'
163 # load_fragment_gperf_nulstr_c = custom_target(
164 #         'load-fragment-gperf-nulstr.c',
165 #         input : [awkscript, load_fragment_gperf_gperf],
166 #         output : 'load-fragment-gperf-nulstr.c',
167 #         command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
168 #         capture : true)
169
170 # libcore = static_library(
171 #         'core',
172 #         libcore_la_sources,
173 #         load_fragment_gperf_c,
174 #         load_fragment_gperf_nulstr_c,
175 #         include_directories : includes,
176 #         link_with : [libshared_static],
177 #         dependencies : [threads,
178 #                         libseccomp,
179 #                         libpam,
180 #                         libaudit,
181 #                         libkmod,
182 #                         libapparmor,
183 #                         libmount])
184
185 # systemd_sources = files('main.c')
186
187 # systemd_shutdown_sources = files('''
188 #         shutdown.c
189 #         umount.c
190 #         umount.h
191 #         mount-setup.c
192 #         mount-setup.h
193 #         killall.c
194 #         killall.h
195 # '''.split())
196
197 # in_files = [['macros.systemd',   rpmmacrosdir],
198 #             ['triggers.systemd', ''],
199 #             ['systemd.pc',       pkgconfigdatadir]]
200
201 # foreach item : in_files
202 #         file = item[0]
203 #         dir = item[1]
204
205 #         # If 'no', disable generation completely.
206 #         # If '', generate, but do not install.
207 #         if dir != 'no'
208 #                 gen = configure_file(
209 #                         input : file + '.in',
210 #                         output : file,
211 #                         configuration : substs)
212 #                 if dir != ''
213 #                         install_data(gen,
214 #                                      install_dir : dir)
215 #                 endif
216 #         endif
217 # endforeach
218
219 # install_data('org.freedesktop.systemd1.conf',
220 #              install_dir : dbuspolicydir)
221 # install_data('org.freedesktop.systemd1.service',
222 #              install_dir : dbussystemservicedir)
223
224 # policy_in = configure_file(
225 #         input : 'org.freedesktop.systemd1.policy.in.in',
226 #         output : 'org.freedesktop.systemd1.policy.in',
227 #         configuration : substs)
228
229 # i18n.merge_file(
230 #         'org.freedesktop.systemd1.policy',
231 #         input : policy_in,
232 #         output : 'org.freedesktop.systemd1.policy',
233 #         po_dir : po_dir,
234 #         data_dirs : po_dir,
235 #         install : install_polkit,
236 #         install_dir : polkitpolicydir)
237 #endif // 0
238
239 #if 0 /// totally UNNEEDED in elogind
240 # install_data('system.conf',
241 #              'user.conf',
242 #              install_dir : pkgsysconfdir)
243
244 # meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
245 # meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
246 # meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
247 # meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
248
249 # meson.add_install_script('sh', '-c',
250 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
251 # meson.add_install_script('sh', '-c',
252 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
253 # meson.add_install_script('sh', '-c',
254 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
255 # meson.add_install_script('sh', '-c',
256 #                          mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))
257 #endif // 0