]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/home/meson.build
homed: make it easier to run multiple instances of homed
[thirdparty/systemd.git] / src / home / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 systemd_homework_sources = files('''
4 home-util.c
5 home-util.h
6 homework-cifs.c
7 homework-cifs.h
8 homework-directory.c
9 homework-directory.h
10 homework-fido2.h
11 homework-fscrypt.c
12 homework-fscrypt.h
13 homework-luks.c
14 homework-luks.h
15 homework-mount.c
16 homework-mount.h
17 homework-pkcs11.h
18 homework-quota.c
19 homework-quota.h
20 homework.c
21 homework.h
22 modhex.c
23 modhex.h
24 user-record-util.c
25 user-record-util.h
26 '''.split())
27
28 if conf.get('HAVE_P11KIT') == 1
29 systemd_homework_sources += files('homework-pkcs11.c')
30 endif
31 if conf.get('HAVE_LIBFIDO2') == 1
32 systemd_homework_sources += files('homework-fido2.c')
33 endif
34
35 systemd_homed_sources = files('''
36 home-util.c
37 home-util.h
38 homed-bus.c
39 homed-bus.h
40 homed-conf.c
41 homed-conf.h
42 homed-home-bus.c
43 homed-home-bus.h
44 homed-home.c
45 homed-home.h
46 homed-manager-bus.c
47 homed-manager-bus.h
48 homed-manager.c
49 homed-manager.h
50 homed-operation.c
51 homed-operation.h
52 homed-varlink.c
53 homed-varlink.h
54 homed.c
55 modhex.c
56 modhex.h
57 user-record-pwquality.c
58 user-record-pwquality.h
59 user-record-sign.c
60 user-record-sign.h
61 user-record-util.c
62 user-record-util.h
63 '''.split())
64
65 homed_gperf_c = custom_target(
66 'homed_gperf.c',
67 input : 'homed-gperf.gperf',
68 output : 'homed-gperf.c',
69 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
70
71 systemd_homed_sources += [homed_gperf_c]
72
73 homectl_sources = files('''
74 home-util.c
75 home-util.h
76 homectl-fido2.c
77 homectl-fido2.h
78 homectl-pkcs11.c
79 homectl-pkcs11.h
80 homectl-recovery-key.c
81 homectl-recovery-key.h
82 homectl.c
83 modhex.c
84 modhex.h
85 user-record-pwquality.c
86 user-record-pwquality.h
87 user-record-util.c
88 user-record-util.h
89 '''.split())
90
91 pam_systemd_home_sym = 'src/home/pam_systemd_home.sym'
92 pam_systemd_home_c = files('''
93 home-util.c
94 home-util.h
95 modhex.c
96 modhex.h
97 pam_systemd_home.c
98 user-record-util.c
99 user-record-util.h
100 '''.split())
101
102 if conf.get('ENABLE_HOMED') == 1
103 install_data('org.freedesktop.home1.conf',
104 install_dir : dbuspolicydir)
105 install_data('org.freedesktop.home1.service',
106 install_dir : dbussystemservicedir)
107 install_data('org.freedesktop.home1.policy',
108 install_dir : polkitpolicydir)
109
110 install_data('homed.conf',
111 install_dir : pkgsysconfdir)
112 endif
113
114 tests += [
115 [['src/home/test-modhex.c',
116 'src/home/modhex.c',
117 'src/home/modhex.h'],
118 [],
119 []],
120 ]