1 lib_common_sources = '''
33 idcache_c = files('idcache.c')
34 randutils_c = files('randutils.c')
35 md5_c = files('md5.c')
36 sha1_c = files('sha1.c')
37 strutils_c = files('strutils.c')
38 strv_c = files('strv.c')
39 pager_c = files('pager.c')
41 lib_common_sources += [idcache_c,
48 monotonic_c = files('monotonic.c')
49 timer_c = files('timer.c')
50 swapprober_c = files('swapprober.c')
51 pty_session_c = files('pty-session.c')
52 ismounted_c = files('ismounted.c')
53 exec_shell_c = files('exec_shell.c')
54 fileeq_c = files('fileeq.c')
55 logindefs_c = static_library('logindefs',
56 sources : ['logindefs.c'],
57 include_directories : dir_include,
58 dependencies : lib_econf,
60 selinux_utils_c = files('selinux-utils.c')
63 lib_common_sources += '''
70 if build_plymouth_support
71 lib_common_sources += '''
76 if conf.get('HAVE_LANGINFO_H') not in [1]
77 lib_common_sources += 'langinfo.c'
80 if conf.get('HAVE_CPU_SET_T') in [1]
81 lib_common_sources += 'cpuset.c'
84 if conf.get('HAVE_OPENAT') in [1] and conf.get('HAVE_DIRFD') in [1]
85 lib_common_sources += '''
92 lib_common = static_library(
95 include_directories : dir_include)
98 lib_color_sources = files('''
102 # colors.h include/color-names.h
104 lib_tcolors = static_library(
107 include_directories : dir_include,
108 dependencies : curses_libs)