1 # SPDX-License-Identifier: LGPL-2.1+
3 shared_sources = files('''
79 spawn-ask-password-agent.c
80 spawn-ask-password-agent.h
107 test_tables_h = files('test-tables.h')
108 shared_sources += [test_tables_h]
110 if conf.get('HAVE_ACL') == 1
111 shared_sources += files('acl-util.c')
114 if conf.get('ENABLE_UTMP') == 1
115 shared_sources += files('utmp-wtmp.c')
118 if conf.get('HAVE_SECCOMP') == 1
119 shared_sources += files('seccomp-util.c')
122 if conf.get('HAVE_LIBIPTC') == 1
123 shared_sources += files('firewall-util.c')
126 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
128 libshared_deps = [threads,
142 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
144 libshared_static = static_library(
147 include_directories : includes,
148 dependencies : libshared_deps,
149 c_args : ['-fvisibility=default'])
151 libshared = shared_library(
154 include_directories : includes,
155 link_args : ['-shared',
156 '-Wl,--version-script=' + libshared_sym_path],
157 link_whole : [libshared_static,
162 c_args : ['-fvisibility=default'],
163 dependencies : libshared_deps,
165 install_dir : rootlibexecdir)