chiark / gitweb /
Prep v236: Apply missing upstream updates to the build system
[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.c
65 #         dbus.h
66 #         device.c
67 #         device.h
68 #         dynamic-user.c
69 #         dynamic-user.h
70 #         emergency-action.c
71 #         emergency-action.h
72 #         execute.c
73 #         execute.h
74 #         hostname-setup.c
75 #         hostname-setup.h
76 #         ima-setup.c
77 #         ima-setup.h
78 #         ip-address-access.c
79 #         ip-address-access.h
80 #         job.c
81 #         job.h
82 #         kill.c
83 #         kill.h
84 #         killall.c
85 #         killall.h
86 #         kmod-setup.c
87 #         kmod-setup.h
88 #         load-dropin.c
89 #         load-dropin.h
90 #         load-fragment.c
91 #         load-fragment.h
92 #         locale-setup.c
93 #         locale-setup.h
94 #         loopback-setup.c
95 #         loopback-setup.h
96 #         machine-id-setup.c
97 #         machine-id-setup.h
98 #         manager.c
99 #         manager.h
100 #         mount-setup.c
101 #         mount-setup.h
102 #         mount.c
103 #         mount.h
104 #         namespace.c
105 #         namespace.h
106 #         path.c
107 #         path.h
108 #         scope.c
109 #         scope.h
110 #         selinux-access.c
111 #         selinux-access.h
112 #         selinux-setup.c
113 #         selinux-setup.h
114 #         service.c
115 #         service.h
116 #         show-status.c
117 #         show-status.h
118 #         slice.c
119 #         slice.h
120 #         smack-setup.c
121 #         smack-setup.h
122 #         socket.c
123 #         socket.h
124 #         swap.c
125 #         swap.h
126 #         target.c
127 #         target.h
128 #         timer.c
129 #         timer.h
130 #         transaction.c
131 #         transaction.h
132 #         unit-printf.c
133 #         unit-printf.h
134 #         unit.c
135 #         unit.h
136 # '''.split()
137 #else
138 libcore_la_sources = files('''
139         cgroup.c
140         cgroup.h
141         mount-setup.c
142         mount-setup.h
143 '''.split())
144 #endif // 0
145
146 #if 0 /// The rest is not needed by elogind, we use the sources directly in login
147 # load_fragment_gperf_gperf = custom_target(
148 #         'load-fragment-gperf.gperf',
149 #         input : 'load-fragment-gperf.gperf.m4',
150 #         output: 'load-fragment-gperf.gperf',
151 #         command : [m4, '-P'] + m4_defines + ['@INPUT@'],
152 #         capture : true)
153
154 # load_fragment_gperf_c = custom_target(
155 #         'load-fragment-gperf.c',
156 #         input : load_fragment_gperf_gperf,
157 #         output : 'load-fragment-gperf.c',
158 #         command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
159
160 # awkscript = 'load-fragment-gperf-nulstr.awk'
161 # load_fragment_gperf_nulstr_c = custom_target(
162 #         'load-fragment-gperf-nulstr.c',
163 #         input : [awkscript, load_fragment_gperf_gperf],
164 #         output : 'load-fragment-gperf-nulstr.c',
165 #         command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
166 #         capture : true)
167
168 # libcore = static_library(
169 #         'core',
170 #         libcore_la_sources,
171 #         load_fragment_gperf_c,
172 #         load_fragment_gperf_nulstr_c,
173 #         include_directories : includes,
174 #         link_with : [libshared_static],
175 #         dependencies : [threads,
176 #                         libseccomp,
177 #                         libpam,
178 #                         libaudit,
179 #                         libkmod,
180 #                         libapparmor,
181 #                         libmount])
182
183 # systemd_sources = files('main.c')
184
185 # systemd_shutdown_sources = files('''
186 #         shutdown.c
187 #         umount.c
188 #         umount.h
189 #         mount-setup.c
190 #         mount-setup.h
191 #         killall.c
192 #         killall.h
193 # '''.split())
194
195 # in_files = [['macros.systemd',   rpmmacrosdir],
196 #             ['triggers.systemd', ''],
197 #             ['systemd.pc',       pkgconfigdatadir]]
198
199 # foreach item : in_files
200 #         file = item[0]
201 #         dir = item[1]
202
203 #         # If 'no', disable generation completely.
204 #         # If '', generate, but do not install.
205 #         if dir != 'no'
206 #                 gen = configure_file(
207 #                         input : file + '.in',
208 #                         output : file,
209 #                         configuration : substs)
210 #                 if dir != ''
211 #                         install_data(gen,
212 #                                      install_dir : dir)
213 #                 endif
214 #         endif
215 # endforeach
216
217 # install_data('org.freedesktop.systemd1.conf',
218 #              install_dir : dbuspolicydir)
219 # install_data('org.freedesktop.systemd1.service',
220 #              install_dir : dbussystemservicedir)
221
222 # policy_in = configure_file(
223 #         input : 'org.freedesktop.systemd1.policy.in.in',
224 #         output : 'org.freedesktop.systemd1.policy.in',
225 #         configuration : substs)
226
227 # i18n.merge_file(
228 #         'org.freedesktop.systemd1.policy',
229 #         input : policy_in,
230 #         output : 'org.freedesktop.systemd1.policy',
231 #         po_dir : po_dir,
232 #         data_dirs : po_dir,
233 #         install : install_polkit,
234 #         install_dir : polkitpolicydir)
235 #endif // 0
236
237 #if 0 /// totally UNNEEDED in elogind
238 # install_data('system.conf',
239 #              'user.conf',
240 #              install_dir : pkgsysconfdir)
241
242 # meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
243 # meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
244 # meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
245 # meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
246
247 # meson.add_install_script('sh', '-c',
248 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
249 # meson.add_install_script('sh', '-c',
250 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
251 # meson.add_install_script('sh', '-c',
252 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
253 # meson.add_install_script('sh', '-c',
254 #                          mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))
255 #endif // 0