1 # SPDX-License-Identifier: LGPL-2.1+
3 #if 0 /// elogind has only two of the parts here in it...
4 # libcore_la_sources = '''
125 libcore_la_sources = files('''
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@'],
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@'])
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@'],
155 # libcore = static_library(
157 # libcore_la_sources,
158 # load_fragment_gperf_c,
159 # load_fragment_gperf_nulstr_c,
160 # include_directories : includes,
161 # dependencies : [threads,
171 # systemd_sources = files('main.c')
173 # systemd_shutdown_sources = files('''
183 # in_files = [['macros.systemd', rpmmacrosdir],
184 # ['triggers.systemd', ''],
185 # ['systemd.pc', pkgconfigdatadir],
186 # ['system.conf', pkgsysconfdir]]
188 # foreach item : in_files
192 # # If 'no', disable generation completely.
193 # # If '', generate, but do not install.
195 # gen = configure_file(
196 # input : file + '.in',
198 # configuration : substs)
206 # install_data('org.freedesktop.systemd1.conf',
207 # install_dir : dbuspolicydir)
208 # install_data('org.freedesktop.systemd1.service',
209 # install_dir : dbussystemservicedir)
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)
218 # install_data('user.conf',
219 # install_dir : pkgsysconfdir)
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))
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')))