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