1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 home_includes = [includes, include_directories('.')]
5 systemd_homework_sources = files(
8 'homework-directory.c',
12 'homework-password-cache.c',
18 if conf.get('HAVE_P11KIT') == 1
19 systemd_homework_sources += files('homework-pkcs11.c')
21 if conf.get('HAVE_LIBFIDO2') == 1
22 systemd_homework_sources += files('homework-fido2.c')
25 systemd_homed_sources = files(
31 'homed-manager-bus.c',
36 'user-record-password-quality.c',
41 homed_gperf_c = custom_target(
43 input : 'homed-gperf.gperf',
44 output : 'homed-gperf.c',
45 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
47 systemd_homed_sources += [homed_gperf_c]
49 homectl_sources = files(
53 'homectl-recovery-key.c',
55 'user-record-password-quality.c',
59 pam_systemd_home_sources = files(
67 'name' : 'systemd-homework',
68 'conditions' : ['ENABLE_HOMED'],
69 'sources' : systemd_homework_sources,
84 'name' : 'systemd-homed',
86 'conditions' : ['ENABLE_HOMED'],
87 'sources' : systemd_homed_sources,
88 'include_directories' : includes +
89 include_directories('.'),
97 executable_template + {
100 'conditions' : ['ENABLE_HOMED'],
101 'sources' : homectl_sources,
114 'name' : 'pam_systemd_home',
119 'sources' : pam_systemd_home_sources,
126 'version-script' : meson.current_source_dir() / 'pam_systemd_home.sym',
130 if conf.get('ENABLE_HOMED') == 1
131 install_data('org.freedesktop.home1.conf',
132 install_dir : dbuspolicydir)
133 install_data('org.freedesktop.home1.service',
134 install_dir : dbussystemservicedir)
135 install_data('org.freedesktop.home1.policy',
136 install_dir : polkitpolicydir)
138 if install_sysconfdir_samples
139 install_data('homed.conf',
140 install_dir : pkgsysconfdir)