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