1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright © 2017 Zbigniew Jędrzejewski-Szmek
5 #if 0 /// elogind has only two of the parts here in it...
6 # libcore_la_sources = '''
127 libcore_la_sources = files('''
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@'],
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@'])
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@'],
157 # libcore = static_library(
159 # libcore_la_sources,
160 # load_fragment_gperf_c,
161 # load_fragment_gperf_nulstr_c,
162 # include_directories : includes,
163 # dependencies : [threads,
173 # systemd_sources = files('main.c')
175 # systemd_shutdown_sources = files('''
185 # in_files = [['macros.systemd', rpmmacrosdir],
186 # ['triggers.systemd', ''],
187 # ['systemd.pc', pkgconfigdatadir],
188 # ['system.conf', pkgsysconfdir]]
190 # foreach item : in_files
194 # # If 'no', disable generation completely.
195 # # If '', generate, but do not install.
197 # gen = configure_file(
198 # input : file + '.in',
200 # configuration : substs)
208 # install_data('org.freedesktop.systemd1.conf',
209 # install_dir : dbuspolicydir)
210 # install_data('org.freedesktop.systemd1.service',
211 # install_dir : dbussystemservicedir)
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)
220 # install_data('user.conf',
221 # install_dir : pkgsysconfdir)
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))
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')))