]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
f1b98127 ZJS |
3 | systemd_logind_sources = files( |
4 | 'logind.c', | |
2f492a73 ZJS |
5 | 'logind.h', |
6 | ) | |
5c23128d ZJS |
7 | |
8 | logind_gperf_c = custom_target( | |
37efbbd8 ZJS |
9 | 'logind_gperf.c', |
10 | input : 'logind-gperf.gperf', | |
11 | output : 'logind-gperf.c', | |
12 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d | 13 | |
f1b98127 ZJS |
14 | liblogind_core_sources = files( |
15 | 'logind-action.c', | |
16 | 'logind-action.h', | |
17 | 'logind-brightness.c', | |
18 | 'logind-brightness.h', | |
19 | 'logind-button.c', | |
20 | 'logind-button.h', | |
21 | 'logind-core.c', | |
22 | 'logind-dbus.c', | |
23 | 'logind-dbus.h', | |
24 | 'logind-device.c', | |
25 | 'logind-device.h', | |
26 | 'logind-inhibit.c', | |
27 | 'logind-inhibit.h', | |
28 | 'logind-polkit.c', | |
29 | 'logind-polkit.h', | |
30 | 'logind-seat-dbus.c', | |
31 | 'logind-seat-dbus.h', | |
32 | 'logind-seat.c', | |
33 | 'logind-seat.h', | |
34 | 'logind-session-dbus.c', | |
35 | 'logind-session-dbus.h', | |
36 | 'logind-session-device.c', | |
37 | 'logind-session-device.h', | |
38 | 'logind-session.c', | |
39 | 'logind-session.h', | |
40 | 'logind-user-dbus.c', | |
41 | 'logind-user-dbus.h', | |
42 | 'logind-user.c', | |
43 | 'logind-user.h', | |
2f492a73 ZJS |
44 | 'logind-utmp.c', |
45 | ) | |
5c23128d | 46 | |
ae98d374 ZJS |
47 | liblogind_core_sources += [logind_gperf_c] |
48 | ||
5c23128d | 49 | liblogind_core = static_library( |
37efbbd8 ZJS |
50 | 'logind-core', |
51 | liblogind_core_sources, | |
52 | include_directories : includes, | |
03f7ddf0 ZJS |
53 | dependencies : libacl, |
54 | build_by_default : false) | |
5c23128d | 55 | |
f1b98127 ZJS |
56 | loginctl_sources = files( |
57 | 'loginctl.c', | |
58 | 'sysfs-show.h', | |
2f492a73 ZJS |
59 | 'sysfs-show.c', |
60 | ) | |
5c23128d | 61 | |
f1b98127 | 62 | user_runtime_dir_sources = files('user-runtime-dir.c') |
a9f0f5e5 | 63 | |
1ccbb359 LP |
64 | pam_systemd_sym = 'src/login/pam_systemd.sym' |
65 | pam_systemd_c = files('pam_systemd.c') | |
66 | ||
c900d89f | 67 | enable_logind = conf.get('ENABLE_LOGIND') == 1 |
155078c8 ZJS |
68 | |
69 | custom_target( | |
70 | 'logind.conf', | |
71 | input : 'logind.conf.in', | |
72 | output : 'logind.conf', | |
73 | command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], | |
74 | install : enable_logind and install_sysconfdir_samples and pkgsysconfdir != 'no', | |
75 | install_dir : pkgsysconfdir) | |
76 | ||
77 | custom_target( | |
78 | 'systemd-user', | |
79 | input : 'systemd-user.in', | |
80 | output : 'systemd-user', | |
81 | command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], | |
82 | install : enable_logind and pamconfdir != 'no', | |
83 | install_dir : pamconfdir) | |
5c23128d | 84 | |
c900d89f | 85 | if enable_logind |
37efbbd8 ZJS |
86 | install_data('org.freedesktop.login1.conf', |
87 | install_dir : dbuspolicydir) | |
88 | install_data('org.freedesktop.login1.service', | |
89 | install_dir : dbussystemservicedir) | |
9b3cff19 | 90 | install_data('org.freedesktop.login1.policy', |
264d8dcc | 91 | install_dir : polkitpolicydir) |
5c23128d | 92 | endif |
e025c9df YW |
93 | |
94 | ############################################################ | |
95 | ||
96 | tests += [ | |
e1eeebbb | 97 | [files('test-login-shared.c')], |
e025c9df | 98 | |
e1eeebbb | 99 | [files('test-inhibit.c'), |
e025c9df YW |
100 | [], [], [], '', 'manual'], |
101 | ||
e1eeebbb | 102 | [files('test-login-tables.c'), |
e025c9df YW |
103 | [liblogind_core, |
104 | libshared], | |
105 | [threads]], | |
106 | ] |