1 # SPDX-License-Identifier: LGPL-2.1+
3 shared_sources = files('''
85 spawn-ask-password-agent.c
86 spawn-ask-password-agent.h
111 if get_option('tests') != 'false'
112 shared_sources += files('tests.c', 'tests.h')
115 test_tables_h = files('test-tables.h')
116 shared_sources += test_tables_h
118 if conf.get('HAVE_ACL') == 1
119 shared_sources += files('acl-util.c')
122 if conf.get('ENABLE_UTMP') == 1
123 shared_sources += files('utmp-wtmp.c')
126 if conf.get('HAVE_SECCOMP') == 1
127 shared_sources += files('seccomp-util.c')
130 if conf.get('HAVE_LIBIPTC') == 1
131 shared_sources += files('firewall-util.c')
134 if conf.get('HAVE_KMOD') == 1
135 shared_sources += files('module-util.c')
138 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
140 libshared_deps = [threads,
155 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
157 libshared_static = static_library(
160 include_directories : includes,
161 dependencies : libshared_deps,
162 c_args : ['-fvisibility=default'])
164 libshared = shared_library(
167 include_directories : includes,
168 link_args : ['-shared',
169 '-Wl,--version-script=' + libshared_sym_path],
170 link_whole : [libshared_static,
175 c_args : ['-fvisibility=default'],
176 dependencies : libshared_deps,
178 install_dir : rootlibexecdir)