1 # SPDX-License-Identifier: LGPL-2.1+
3 shared_sources = files('''
81 spawn-ask-password-agent.c
82 spawn-ask-password-agent.h
109 test_tables_h = files('test-tables.h')
110 shared_sources += [test_tables_h]
112 if conf.get('HAVE_ACL') == 1
113 shared_sources += files('acl-util.c')
116 if conf.get('ENABLE_UTMP') == 1
117 shared_sources += files('utmp-wtmp.c')
120 if conf.get('HAVE_SECCOMP') == 1
121 shared_sources += files('seccomp-util.c')
124 if conf.get('HAVE_LIBIPTC') == 1
125 shared_sources += files('firewall-util.c')
128 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
130 libshared_deps = [threads,
145 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
147 libshared_static = static_library(
150 include_directories : includes,
151 dependencies : libshared_deps,
152 c_args : ['-fvisibility=default'])
154 libshared = shared_library(
157 include_directories : includes,
158 link_args : ['-shared',
159 '-Wl,--version-script=' + libshared_sym_path],
160 link_whole : [libshared_static,
165 c_args : ['-fvisibility=default'],
166 dependencies : libshared_deps,
168 install_dir : rootlibexecdir)