]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/home/meson.build
tree-wide: never link directly against p11kit
[thirdparty/systemd.git] / src / home / meson.build
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
70a5db58 2
f1b98127
ZJS
3systemd_homework_sources = files(
4 'home-util.c',
f1b98127 5 'homework-cifs.c',
f1b98127 6 'homework-directory.c',
f1b98127 7 'homework-fscrypt.c',
f1b98127 8 'homework-luks.c',
f1b98127 9 'homework-mount.c',
f1b98127 10 'homework-password-cache.c',
f1b98127 11 'homework-quota.c',
f1b98127 12 'homework.c',
f1b98127 13 'user-record-util.c',
2f492a73 14)
70a5db58
LP
15
16if conf.get('HAVE_P11KIT') == 1
17 systemd_homework_sources += files('homework-pkcs11.c')
18endif
7b78db28
LP
19if conf.get('HAVE_LIBFIDO2') == 1
20 systemd_homework_sources += files('homework-fido2.c')
21endif
70a5db58 22
f1b98127
ZJS
23systemd_homed_sources = files(
24 'home-util.c',
f1b98127 25 'homed-bus.c',
f1b98127 26 'homed-conf.c',
f1b98127 27 'homed-home-bus.c',
f1b98127 28 'homed-home.c',
f1b98127 29 'homed-manager-bus.c',
f1b98127 30 'homed-manager.c',
f1b98127 31 'homed-operation.c',
f1b98127 32 'homed-varlink.c',
f1b98127 33 'homed.c',
d34b1823 34 'user-record-password-quality.c',
f1b98127 35 'user-record-sign.c',
f1b98127 36 'user-record-util.c',
2f492a73 37)
70a5db58 38
c76dd733
LP
39homed_gperf_c = custom_target(
40 'homed_gperf.c',
41 input : 'homed-gperf.gperf',
42 output : 'homed-gperf.c',
43 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
44
45systemd_homed_sources += [homed_gperf_c]
46
f1b98127
ZJS
47homectl_sources = files(
48 'home-util.c',
f1b98127 49 'homectl-fido2.c',
f1b98127 50 'homectl-pkcs11.c',
f1b98127 51 'homectl-recovery-key.c',
f1b98127 52 'homectl.c',
d34b1823 53 'user-record-password-quality.c',
f1b98127 54 'user-record-util.c',
2f492a73 55)
4aa0a8ac 56
bab54d1f 57pam_systemd_home_sources = files(
f1b98127 58 'home-util.c',
f1b98127
ZJS
59 'pam_systemd_home.c',
60 'user-record-util.c',
2f492a73 61)
26cf9fb7 62
bab54d1f
YW
63executables += [
64 libexec_template + {
65 'name' : 'systemd-homework',
66 'conditions' : ['ENABLE_HOMED'],
67 'sources' : systemd_homework_sources,
68 'link_with' : [
69 libshared,
70 libshared_fdisk
71 ],
72 'dependencies' : [
73 libblkid,
74 libcrypt,
75 libfdisk,
76 libopenssl,
707de94c 77 libp11kit_cflags,
bab54d1f
YW
78 threads,
79 ],
80 },
81 libexec_template + {
82 'name' : 'systemd-homed',
83 'dbus' : true,
84 'conditions' : ['ENABLE_HOMED'],
85 'sources' : systemd_homed_sources,
86 'include_directories' : includes +
87 include_directories('.'),
88 'dependencies' : [
89 libcrypt,
90 libm,
91 libopenssl,
92 threads,
93 ],
94 },
95 executable_template + {
96 'name' : 'homectl',
97 'public' : true,
98 'conditions' : ['ENABLE_HOMED'],
99 'sources' : homectl_sources,
100 'dependencies' : [
101 libcrypt,
102 libdl,
103 libopenssl,
707de94c 104 libp11kit_cflags,
bab54d1f
YW
105 threads,
106 ],
107 },
108]
109
110modules += [
111 pam_template + {
112 'name' : 'pam_systemd_home',
113 'conditions' : [
114 'ENABLE_HOMED',
115 'HAVE_PAM',
116 ],
117 'sources' : pam_systemd_home_sources,
118 'dependencies' : [
119 libcrypt,
120 libpam_misc,
121 libpam,
122 threads,
123 ],
90461ef5 124 'version-script' : meson.current_source_dir() / 'pam_systemd_home.sym',
bab54d1f
YW
125 },
126]
127
70a5db58
LP
128if 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)
c76dd733 135
225d08b8 136 if install_sysconfdir_samples
d7aa78c3 137 install_data('homed.conf',
6495361c 138 install_dir : pkgconfigfiledir)
d7aa78c3 139 endif
70a5db58 140endif