# SPDX-License-Identifier: LGPL-2.1+
#
-# Copyright 2017 Zbigniew Jędrzejewski-Szmek
-#
-# elogind is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-# elogind is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with elogind; If not, see <http://www.gnu.org/licenses/>.
-
+# Copyright © 2017 Zbigniew Jędrzejewski-Szmek
#if 0 /// rename to elogind
#
# systemd_logind_sources = files('''
command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
#if 0 /// rename to elogind
-# systemd_logind_sources += [logind_gperf_c]
#else
elogind_sources += [logind_gperf_c]
#endif // 0
-
-
liblogind_core_sources = files('''
logind-core.c
logind-device.c
sleep_files,
update_utmp_files]
#endif // 1
+liblogind_core_sources += [logind_gperf_c]
+
logind_acl_c = files('logind-acl.c')
if conf.get('HAVE_ACL') == 1
liblogind_core_sources += logind_acl_c
loginctl_sources += files('''
eloginctl.c
eloginctl.h
+user_runtime_dir_sources = files('''
+ user-runtime-dir.c
+ logind.h
'''.split())
#endif // 1
+
#if 0 /// elogind builds itself unconditionally and with some adaptations
# if conf.get('ENABLE_LOGIND') == 1
# logind_conf = configure_file(
# install_dir : dbuspolicydir)
# install_data('org.freedesktop.login1.service',
# install_dir : dbussystemservicedir)
+# install_data('org.freedesktop.login1.policy',
+# install_dir : polkitpolicydir)
+#
+# install_data('70-power-switch.rules', install_dir : udevrulesdir)
#
-# i18n.merge_file(
-# 'org.freedesktop.login1.policy',
-# input : 'org.freedesktop.login1.policy.in',
-# output : 'org.freedesktop.login1.policy',
-# po_dir : po_dir,
-# data_dirs : po_dir,
-# install : install_polkit,
-# install_dir : polkitpolicydir)
+# if conf.get('HAVE_ACL') == 1
+# install_data('70-uaccess.rules', install_dir : udevrulesdir)
+# endif
#
-# install_data('70-power-switch.rules',
-# '70-uaccess.rules',
+# seat_rules = configure_file(
+# input : '71-seat.rules.in',
+# output : '71-seat.rules',
+# configuration : substs)
+# install_data(seat_rules,
# install_dir : udevrulesdir)
#
-# foreach file : ['71-seat.rules',
-# '73-seat-late.rules']
-# gen = configure_file(
-# input : file + '.in',
-# output : file,
-# configuration : substs)
-# install_data(gen,
-# install_dir : udevrulesdir)
-# endforeach
+# custom_target(
+# '73-seat-late.rules',
+# input : '73-seat-late.rules.m4',
+# output: '73-seat-late.rules',
+# command : [meson_apply_m4, config_h, '@INPUT@'],
+# capture : true,
+# install : true,
+# install_dir : udevrulesdir)
#
# custom_target(
# 'systemd-user',
# input : 'systemd-user.m4',
# output: 'systemd-user',
-# command : [m4, '-P'] + m4_defines + ['@INPUT@'],
+# command : [meson_apply_m4, config_h, '@INPUT@'],
# capture : true,
# install : pamconfdir != 'no',
# install_dir : pamconfdir)