]> git.ipfire.org Git - thirdparty/util-linux.git/blame - lib/meson.build
Merge branch 'PR/dmesg-timestamps' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / lib / meson.build
CommitLineData
d4c880d5 1lib_common_sources = '''
308a0979
KZ
2 blkdev.c
3 buffer.c
4 canonicalize.c
5 color-names.c
6 crc32.c
7 crc32c.c
f3e36f12 8 crc64.c
670b10ae 9 c_strtod.c
308a0979
KZ
10 encode.c
11 env.c
12 fileutils.c
13 idcache.c
14 jsonwrt.c
15 mangle.c
16 match.c
17 mbsalign.c
18 mbsedit.c
19 md5.c
32c21c76 20 procfs.c
308a0979
KZ
21 pwdutils.c
22 randutils.c
23 sha1.c
f5b7f9e2 24 sha256.c
308a0979
KZ
25 signames.c
26 strutils.c
27 strv.c
28 timeutils.c
29 ttyutils.c
0ff57406 30 xxhash.c
d4c880d5
ZJS
31'''.split()
32
33idcache_c = files('idcache.c')
34randutils_c = files('randutils.c')
35md5_c = files('md5.c')
36sha1_c = files('sha1.c')
37strutils_c = files('strutils.c')
38strv_c = files('strv.c')
33e34783 39pager_c = files('pager.c')
d4c880d5
ZJS
40
41lib_common_sources += [idcache_c,
42 randutils_c,
43 md5_c,
44 sha1_c,
45 strutils_c,
46 strv_c]
47
48monotonic_c = files('monotonic.c')
49timer_c = files('timer.c')
50swapprober_c = files('swapprober.c')
51pty_session_c = files('pty-session.c')
308a0979
KZ
52ismounted_c = files('ismounted.c')
53exec_shell_c = files('exec_shell.c')
93fbe820 54fileeq_c = files('fileeq.c')
0333c40b
TW
55logindefs_c = static_library('logindefs',
56 sources : ['logindefs.c'],
57 include_directories : dir_include,
58 dependencies : lib_econf,
59)
c07f7b4e 60selinux_utils_c = files('selinux-utils.c')
d4c880d5
ZJS
61
62if LINUX
63 lib_common_sources += '''
64 caputils.c
65 linux_version.c
66 loopdev.c
67'''.split()
68endif
69
70if build_plymouth_support
71 lib_common_sources += '''
72 plymouth-ctrl.c
73'''.split()
74endif
75
7255b8dc 76if conf.get('HAVE_LANGINFO_H') not in [1]
d4c880d5
ZJS
77 lib_common_sources += 'langinfo.c'
78endif
79
80if conf.get('HAVE_CPU_SET_T') in [1]
81 lib_common_sources += 'cpuset.c'
82endif
83
84if conf.get('HAVE_OPENAT') in [1] and conf.get('HAVE_DIRFD') in [1]
85 lib_common_sources += '''
86 path.c
32c21c76 87 procfs.c
d4c880d5
ZJS
88 sysfs.c
89'''.split()
90endif
91
92lib_common = static_library(
93 'common',
94 lib_common_sources,
95 include_directories : dir_include)
96
97
98lib_color_sources = files('''
99 colors.c
100 color-names.c
101'''.split())
102# colors.h include/color-names.h
103
104lib_tcolors = static_library(
105 'tcolors',
106 lib_color_sources,
107 include_directories : dir_include,
108 dependencies : curses_libs)