1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # elogind is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
10 # elogind is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with elogind; If not, see <http://www.gnu.org/licenses/>.
18 #if 0 /// elogind has only two of the parts here in it...
19 # libcore_la_sources = '''
140 libcore_la_sources = files('''
148 #if 0 /// The rest is not needed by elogind, we use the sources directly in login
149 # load_fragment_gperf_gperf = custom_target(
150 # 'load-fragment-gperf.gperf',
151 # input : 'load-fragment-gperf.gperf.m4',
152 # output: 'load-fragment-gperf.gperf',
153 # command : [m4, '-P'] + m4_defines + ['@INPUT@'],
156 # load_fragment_gperf_c = custom_target(
157 # 'load-fragment-gperf.c',
158 # input : load_fragment_gperf_gperf,
159 # output : 'load-fragment-gperf.c',
160 # command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
162 # awkscript = 'load-fragment-gperf-nulstr.awk'
163 # load_fragment_gperf_nulstr_c = custom_target(
164 # 'load-fragment-gperf-nulstr.c',
165 # input : [awkscript, load_fragment_gperf_gperf],
166 # output : 'load-fragment-gperf-nulstr.c',
167 # command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
170 # libcore = static_library(
172 # libcore_la_sources,
173 # load_fragment_gperf_c,
174 # load_fragment_gperf_nulstr_c,
175 # include_directories : includes,
176 # link_with : [libshared_static],
177 # dependencies : [threads,
185 # systemd_sources = files('main.c')
187 # systemd_shutdown_sources = files('''
197 # in_files = [['macros.systemd', rpmmacrosdir],
198 # ['triggers.systemd', ''],
199 # ['systemd.pc', pkgconfigdatadir]]
201 # foreach item : in_files
205 # # If 'no', disable generation completely.
206 # # If '', generate, but do not install.
208 # gen = configure_file(
209 # input : file + '.in',
211 # configuration : substs)
219 # install_data('org.freedesktop.systemd1.conf',
220 # install_dir : dbuspolicydir)
221 # install_data('org.freedesktop.systemd1.service',
222 # install_dir : dbussystemservicedir)
224 # policy = configure_file(
225 # input : 'org.freedesktop.systemd1.policy.in.in',
226 # output : 'org.freedesktop.systemd1.policy',
228 configuration : substs)
230 install_dir : polkitpolicydir)
232 #if 0 /// totally UNNEEDED in elogind
233 # install_data('system.conf',
235 # install_dir : pkgsysconfdir)
237 # meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
238 # meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
239 # meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
240 # meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
242 # meson.add_install_script('sh', '-c',
243 # mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
244 # meson.add_install_script('sh', '-c',
245 # mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
246 # meson.add_install_script('sh', '-c',
247 # mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
248 # meson.add_install_script('sh', '-c',
249 # mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))