summaryrefslogtreecommitdiffstats
path: root/login-utils/meson.build
blob: 14d7b39efec00ce20aede7bb1b0d097b9c2ced09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
chfn_chsh_sources = files(
  'ch-common.c',
  'ch-common.h',
)
chfn_chsh_deps = [lib_readline]

if chfn_chsh_password
  chfn_chsh_sources += files(
    'auth.c',
    'auth.h',
  )
  chfn_chsh_deps += [
    lib_pam,
    lib_pam_misc,
  ]
endif

if lib_user.found()
  chfn_chsh_sources += files(
    'libuser.c',
    'libuser.h',
  )
  chfn_chsh_deps += lib_user
else
  chfn_chsh_sources += files(
    'islocal.c',
    'islocal.h',
    'setpwnam.c',
    'setpwnam.h',
  )
endif

if lib_selinux.found()
  chfn_chsh_sources += selinux_utils_c
  chfn_chsh_deps += [lib_selinux]
endif

chfn_sources = files(
  'chfn.c',
)

test_islocal_sources = files(
  'islocal.c',
)

test_consoles_sources = files(
  'sulogin-consoles.c',
)

last_sources = files(
  'last.c',
) + \
  monotonic_c

login_sources = files(
  'login.c',
)

sulogin_sources = files(
  'sulogin.c',
  'sulogin-consoles.c',
  'sulogin-consoles.h',
)