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