]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
5c23128d | 3 | systemd_logind_sources = files(''' |
37efbbd8 ZJS |
4 | logind.c |
5 | logind.h | |
5c23128d ZJS |
6 | '''.split()) |
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 | |
5c23128d | 14 | liblogind_core_sources = files(''' |
2a66c2a1 LP |
15 | logind-acl.h |
16 | logind-action.c | |
17 | logind-action.h | |
18 | logind-brightness.c | |
19 | logind-brightness.h | |
20 | logind-button.c | |
21 | logind-button.h | |
37efbbd8 | 22 | logind-core.c |
2a66c2a1 | 23 | logind-dbus.c |
6ecda0fb | 24 | logind-dbus.h |
37efbbd8 ZJS |
25 | logind-device.c |
26 | logind-device.h | |
2a66c2a1 LP |
27 | logind-inhibit.c |
28 | logind-inhibit.h | |
29 | logind-seat-dbus.c | |
6ecda0fb | 30 | logind-seat-dbus.h |
37efbbd8 ZJS |
31 | logind-seat.c |
32 | logind-seat.h | |
2a66c2a1 | 33 | logind-session-dbus.c |
6ecda0fb | 34 | logind-session-dbus.h |
37efbbd8 ZJS |
35 | logind-session-device.c |
36 | logind-session-device.h | |
2a66c2a1 LP |
37 | logind-session.c |
38 | logind-session.h | |
39 | logind-user-dbus.c | |
6ecda0fb | 40 | logind-user-dbus.h |
37efbbd8 ZJS |
41 | logind-user.c |
42 | logind-user.h | |
37efbbd8 | 43 | logind-utmp.c |
5c23128d ZJS |
44 | '''.split()) |
45 | ||
ae98d374 ZJS |
46 | liblogind_core_sources += [logind_gperf_c] |
47 | ||
5c23128d | 48 | logind_acl_c = files('logind-acl.c') |
349cc4a5 | 49 | if conf.get('HAVE_ACL') == 1 |
37efbbd8 | 50 | liblogind_core_sources += logind_acl_c |
5c23128d ZJS |
51 | endif |
52 | ||
53 | liblogind_core = static_library( | |
37efbbd8 ZJS |
54 | 'logind-core', |
55 | liblogind_core_sources, | |
56 | include_directories : includes, | |
57 | dependencies : [libacl]) | |
5c23128d ZJS |
58 | |
59 | loginctl_sources = files(''' | |
37efbbd8 ZJS |
60 | loginctl.c |
61 | sysfs-show.h | |
62 | sysfs-show.c | |
5c23128d ZJS |
63 | '''.split()) |
64 | ||
a9f0f5e5 ZJS |
65 | user_runtime_dir_sources = files(''' |
66 | user-runtime-dir.c | |
a9f0f5e5 ZJS |
67 | '''.split()) |
68 | ||
1ccbb359 LP |
69 | pam_systemd_sym = 'src/login/pam_systemd.sym' |
70 | pam_systemd_c = files('pam_systemd.c') | |
71 | ||
349cc4a5 | 72 | if conf.get('ENABLE_LOGIND') == 1 |
37efbbd8 ZJS |
73 | logind_conf = configure_file( |
74 | input : 'logind.conf.in', | |
75 | output : 'logind.conf', | |
76 | configuration : substs) | |
77 | install_data(logind_conf, | |
78 | install_dir : pkgsysconfdir) | |
5c23128d | 79 | |
37efbbd8 ZJS |
80 | install_data('org.freedesktop.login1.conf', |
81 | install_dir : dbuspolicydir) | |
82 | install_data('org.freedesktop.login1.service', | |
83 | install_dir : dbussystemservicedir) | |
9b3cff19 | 84 | install_data('org.freedesktop.login1.policy', |
264d8dcc | 85 | install_dir : polkitpolicydir) |
5c23128d | 86 | |
633b8afd AJ |
87 | install_data('70-power-switch.rules', install_dir : udevrulesdir) |
88 | ||
633b8afd AJ |
89 | seat_rules = configure_file( |
90 | input : '71-seat.rules.in', | |
91 | output : '71-seat.rules', | |
92 | configuration : substs) | |
93 | install_data(seat_rules, | |
37efbbd8 | 94 | install_dir : udevrulesdir) |
5c23128d | 95 | |
ace5e311 MB |
96 | custom_target( |
97 | '70-uaccess.rules', | |
98 | input : '70-uaccess.rules.m4', | |
99 | output: '70-uaccess.rules', | |
100 | command : [meson_apply_m4, config_h, '@INPUT@'], | |
101 | capture : true, | |
102 | install : conf.get('HAVE_ACL') == 1, | |
103 | install_dir : udevrulesdir) | |
104 | ||
633b8afd AJ |
105 | custom_target( |
106 | '73-seat-late.rules', | |
107 | input : '73-seat-late.rules.m4', | |
108 | output: '73-seat-late.rules', | |
348b4437 | 109 | command : [meson_apply_m4, config_h, '@INPUT@'], |
633b8afd AJ |
110 | capture : true, |
111 | install : true, | |
112 | install_dir : udevrulesdir) | |
5c23128d | 113 | |
37efbbd8 ZJS |
114 | custom_target( |
115 | 'systemd-user', | |
116 | input : 'systemd-user.m4', | |
117 | output: 'systemd-user', | |
348b4437 | 118 | command : [meson_apply_m4, config_h, '@INPUT@'], |
37efbbd8 ZJS |
119 | capture : true, |
120 | install : pamconfdir != 'no', | |
121 | install_dir : pamconfdir) | |
5c23128d | 122 | endif |