1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
96 spawn-ask-password-agent.c
97 spawn-ask-password-agent.h
124 test_tables_h = files('test-tables.h')
125 shared_sources += [test_tables_h]
127 if conf.get('HAVE_ACL') == 1
128 shared_sources += ['acl-util.c']
131 if conf.get('ENABLE_UTMP') == 1
132 shared_sources += ['utmp-wtmp.c']
135 if conf.get('HAVE_SECCOMP') == 1
136 shared_sources += ['seccomp-util.c']
139 if conf.get('HAVE_LIBIPTC') == 1
140 shared_sources += ['firewall-util.c']
143 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
145 libshared_deps = [threads,
159 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
161 libshared_static = static_library(
164 include_directories : includes,
165 dependencies : libshared_deps,
166 c_args : ['-fvisibility=default'])
168 libshared = shared_library(
171 include_directories : includes,
172 link_args : ['-shared',
173 '-Wl,--version-script=' + libshared_sym_path],
174 link_whole : [libshared_static,
179 c_args : ['-fvisibility=default'],
180 dependencies : libshared_deps,
182 install_dir : rootlibexecdir)