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