]>
Commit | Line | Data |
---|---|---|
3a726fcd ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
3 | # Copyright 2017 Zbigniew Jędrzejewski-Szmek | |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU Lesser General Public License as published by | |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # systemd is distributed in the hope that it will be useful, but | |
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | # Lesser General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU Lesser General Public License | |
16 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
17 | ||
5c23128d | 18 | systemd_logind_sources = files(''' |
37efbbd8 ZJS |
19 | logind.c |
20 | logind.h | |
5c23128d ZJS |
21 | '''.split()) |
22 | ||
23 | logind_gperf_c = custom_target( | |
37efbbd8 ZJS |
24 | 'logind_gperf.c', |
25 | input : 'logind-gperf.gperf', | |
26 | output : 'logind-gperf.c', | |
27 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d ZJS |
28 | |
29 | systemd_logind_sources += [logind_gperf_c] | |
30 | ||
31 | ||
32 | liblogind_core_sources = files(''' | |
37efbbd8 ZJS |
33 | logind-core.c |
34 | logind-device.c | |
35 | logind-device.h | |
36 | logind-button.c | |
37 | logind-button.h | |
38 | logind-action.c | |
39 | logind-action.h | |
40 | logind-seat.c | |
41 | logind-seat.h | |
42 | logind-session.c | |
43 | logind-session.h | |
44 | logind-session-device.c | |
45 | logind-session-device.h | |
46 | logind-user.c | |
47 | logind-user.h | |
48 | logind-inhibit.c | |
49 | logind-inhibit.h | |
50 | logind-dbus.c | |
51 | logind-session-dbus.c | |
52 | logind-seat-dbus.c | |
53 | logind-user-dbus.c | |
54 | logind-utmp.c | |
55 | logind-acl.h | |
5c23128d ZJS |
56 | '''.split()) |
57 | ||
58 | logind_acl_c = files('logind-acl.c') | |
349cc4a5 | 59 | if conf.get('HAVE_ACL') == 1 |
37efbbd8 | 60 | liblogind_core_sources += logind_acl_c |
5c23128d ZJS |
61 | endif |
62 | ||
63 | liblogind_core = static_library( | |
37efbbd8 ZJS |
64 | 'logind-core', |
65 | liblogind_core_sources, | |
66 | include_directories : includes, | |
67 | dependencies : [libacl]) | |
5c23128d ZJS |
68 | |
69 | loginctl_sources = files(''' | |
37efbbd8 ZJS |
70 | loginctl.c |
71 | sysfs-show.h | |
72 | sysfs-show.c | |
5c23128d ZJS |
73 | '''.split()) |
74 | ||
349cc4a5 | 75 | if conf.get('ENABLE_LOGIND') == 1 |
37efbbd8 ZJS |
76 | logind_conf = configure_file( |
77 | input : 'logind.conf.in', | |
78 | output : 'logind.conf', | |
79 | configuration : substs) | |
80 | install_data(logind_conf, | |
81 | install_dir : pkgsysconfdir) | |
5c23128d | 82 | |
37efbbd8 ZJS |
83 | pam_systemd_sym = 'src/login/pam_systemd.sym' |
84 | pam_systemd_c = files('pam_systemd.c') | |
5c23128d | 85 | |
37efbbd8 ZJS |
86 | install_data('org.freedesktop.login1.conf', |
87 | install_dir : dbuspolicydir) | |
88 | install_data('org.freedesktop.login1.service', | |
89 | install_dir : dbussystemservicedir) | |
5c23128d | 90 | |
264d8dcc | 91 | policy = configure_file( |
37efbbd8 ZJS |
92 | input : 'org.freedesktop.login1.policy.in', |
93 | output : 'org.freedesktop.login1.policy', | |
264d8dcc GH |
94 | configuration : substs) |
95 | install_data(policy, | |
96 | install_dir : polkitpolicydir) | |
5c23128d | 97 | |
633b8afd AJ |
98 | install_data('70-power-switch.rules', install_dir : udevrulesdir) |
99 | ||
100 | if conf.get('HAVE_ACL') == 1 | |
101 | install_data('70-uaccess.rules', install_dir : udevrulesdir) | |
102 | endif | |
103 | ||
104 | seat_rules = configure_file( | |
105 | input : '71-seat.rules.in', | |
106 | output : '71-seat.rules', | |
107 | configuration : substs) | |
108 | install_data(seat_rules, | |
37efbbd8 | 109 | install_dir : udevrulesdir) |
5c23128d | 110 | |
633b8afd AJ |
111 | custom_target( |
112 | '73-seat-late.rules', | |
113 | input : '73-seat-late.rules.m4', | |
114 | output: '73-seat-late.rules', | |
115 | command : [m4, '-P'] + m4_defines + ['@INPUT@'], | |
116 | capture : true, | |
117 | install : true, | |
118 | install_dir : udevrulesdir) | |
5c23128d | 119 | |
37efbbd8 ZJS |
120 | custom_target( |
121 | 'systemd-user', | |
122 | input : 'systemd-user.m4', | |
123 | output: 'systemd-user', | |
124 | command : [m4, '-P'] + m4_defines + ['@INPUT@'], | |
125 | capture : true, | |
126 | install : pamconfdir != 'no', | |
127 | install_dir : pamconfdir) | |
5c23128d | 128 | endif |