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 = '''
138 libcore_la_sources = files('''
146 #if 0 /// The rest is not needed by elogind, we use the sources directly in login
147 # load_fragment_gperf_gperf = custom_target(
148 # 'load-fragment-gperf.gperf',
149 # input : 'load-fragment-gperf.gperf.m4',
150 # output: 'load-fragment-gperf.gperf',
151 # command : [m4, '-P'] + m4_defines + ['@INPUT@'],
154 # load_fragment_gperf_c = custom_target(
155 # 'load-fragment-gperf.c',
156 # input : load_fragment_gperf_gperf,
157 # output : 'load-fragment-gperf.c',
158 # command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
160 # awkscript = 'load-fragment-gperf-nulstr.awk'
161 # load_fragment_gperf_nulstr_c = custom_target(
162 # 'load-fragment-gperf-nulstr.c',
163 # input : [awkscript, load_fragment_gperf_gperf],
164 # output : 'load-fragment-gperf-nulstr.c',
165 # command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
168 # libcore = static_library(
170 # libcore_la_sources,
171 # load_fragment_gperf_c,
172 # load_fragment_gperf_nulstr_c,
173 # include_directories : includes,
174 # link_with : [libshared_static],
175 # dependencies : [threads,
183 # systemd_sources = files('main.c')
185 # systemd_shutdown_sources = files('''
195 # in_files = [['macros.systemd', rpmmacrosdir],
196 # ['triggers.systemd', ''],
197 # ['systemd.pc', pkgconfigdatadir]]
199 # foreach item : in_files
203 # # If 'no', disable generation completely.
204 # # If '', generate, but do not install.
206 # gen = configure_file(
207 # input : file + '.in',
209 # configuration : substs)
217 # install_data('org.freedesktop.systemd1.conf',
218 # install_dir : dbuspolicydir)
219 # install_data('org.freedesktop.systemd1.service',
220 # install_dir : dbussystemservicedir)
222 # policy_in = configure_file(
223 # input : 'org.freedesktop.systemd1.policy.in.in',
224 # output : 'org.freedesktop.systemd1.policy.in',
225 # configuration : substs)
228 # 'org.freedesktop.systemd1.policy',
230 # output : 'org.freedesktop.systemd1.policy',
232 # data_dirs : po_dir,
233 # install : install_polkit,
234 # install_dir : polkitpolicydir)
237 #if 0 /// totally UNNEEDED in elogind
238 # install_data('system.conf',
240 # install_dir : pkgsysconfdir)
242 # meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
243 # meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
244 # meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
245 # meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
247 # meson.add_install_script('sh', '-c',
248 # mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
249 # meson.add_install_script('sh', '-c',
250 # mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
251 # meson.add_install_script('sh', '-c',
252 # mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
253 # meson.add_install_script('sh', '-c',
254 # mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))