1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 systemd_homework_sources = files(
7 'homework-directory.c',
11 'homework-password-cache.c',
17 if conf.get('HAVE_P11KIT') == 1
18 systemd_homework_sources += files('homework-pkcs11.c')
20 if conf.get('HAVE_LIBFIDO2') == 1
21 systemd_homework_sources += files('homework-fido2.c')
24 systemd_homed_sources = files(
30 'homed-manager-bus.c',
35 'user-record-password-quality.c',
40 homed_gperf_c = custom_target(
42 input : 'homed-gperf.gperf',
43 output : 'homed-gperf.c',
44 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
46 systemd_homed_sources += [homed_gperf_c]
48 homectl_sources = files(
52 'homectl-recovery-key.c',
54 'user-record-password-quality.c',
58 pam_systemd_home_sources = files(
66 'name' : 'systemd-homework',
67 'conditions' : ['ENABLE_HOMED'],
68 'sources' : systemd_homework_sources,
83 'name' : 'systemd-homed',
85 'conditions' : ['ENABLE_HOMED'],
86 'sources' : systemd_homed_sources,
87 'include_directories' : includes +
88 include_directories('.'),
96 executable_template + {
99 'conditions' : ['ENABLE_HOMED'],
100 'sources' : homectl_sources,
113 'name' : 'pam_systemd_home',
118 'sources' : pam_systemd_home_sources,
125 'version-script' : meson.current_source_dir() / 'pam_systemd_home.sym',
129 if conf.get('ENABLE_HOMED') == 1
130 install_data('org.freedesktop.home1.conf',
131 install_dir : dbuspolicydir)
132 install_data('org.freedesktop.home1.service',
133 install_dir : dbussystemservicedir)
134 install_data('org.freedesktop.home1.policy',
135 install_dir : polkitpolicydir)
137 if install_sysconfdir_samples
138 install_data('homed.conf',
139 install_dir : pkgconfigfiledir)
142 meson.add_install_script(sh, '-c',
143 ln_s.format(bindir / 'homectl',
144 bindir / 'systemd-home-fallback-shell'))