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