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