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