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