1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 systemd_homework_sources = files(
6 'homework-directory.c',
10 'homework-password-cache.c',
16 if conf.get('HAVE_P11KIT') == 1
17 systemd_homework_sources += files('homework-pkcs11.c')
19 if conf.get('HAVE_LIBFIDO2') == 1
20 systemd_homework_sources += files('homework-fido2.c')
23 systemd_homed_sources = files(
29 'homed-manager-bus.c',
34 'user-record-password-quality.c',
39 homed_gperf_c = custom_target(
41 input : 'homed-gperf.gperf',
42 output : 'homed-gperf.c',
43 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
45 systemd_homed_sources += [homed_gperf_c]
47 homectl_sources = files(
51 'homectl-recovery-key.c',
53 'user-record-password-quality.c',
57 pam_systemd_home_sources = files(
65 'name' : 'systemd-homework',
66 'conditions' : ['ENABLE_HOMED'],
67 'sources' : systemd_homework_sources,
82 'name' : 'systemd-homed',
84 'conditions' : ['ENABLE_HOMED'],
85 'sources' : systemd_homed_sources,
86 'include_directories' : includes +
87 include_directories('.'),
95 executable_template + {
98 'conditions' : ['ENABLE_HOMED'],
99 'sources' : homectl_sources,
112 'name' : 'pam_systemd_home',
117 'sources' : pam_systemd_home_sources,
124 'version-script' : meson.current_source_dir() / 'pam_systemd_home.sym',
128 if conf.get('ENABLE_HOMED') == 1
129 install_data('org.freedesktop.home1.conf',
130 install_dir : dbuspolicydir)
131 install_data('org.freedesktop.home1.service',
132 install_dir : dbussystemservicedir)
133 install_data('org.freedesktop.home1.policy',
134 install_dir : polkitpolicydir)
136 if install_sysconfdir_samples
137 install_data('homed.conf',
138 install_dir : pkgconfigfiledir)