1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # elogind 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 # elogind 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 elogind; If not, see <http://www.gnu.org/licenses/>.
18 #if 0 /// elogind has a much shorter list
19 # shared_sources = '''
97 # spawn-ask-password-agent.c
98 # spawn-ask-password-agent.h
99 # spawn-polkit-agent.c
100 # spawn-polkit-agent.h
148 test_tables_h = files('test-tables.h')
149 shared_sources += [test_tables_h]
151 if conf.get('HAVE_ACL') == 1
152 shared_sources += ['acl-util.c']
155 if conf.get('ENABLE_UTMP') == 1
156 shared_sources += ['utmp-wtmp.c']
159 #if 0 /// UNNEEDED by elogind
160 # if conf.get('HAVE_SECCOMP') == 1
161 # shared_sources += ['seccomp-util.c']
164 # if conf.get('HAVE_LIBIPTC') == 1
165 # shared_sources += ['firewall-util.c']
169 libshared_name = 'elogind-shared-@0@'.format(meson.project_version())
171 #if 0 /// elogind doesn't need all this
172 # libshared_deps = [threads,
186 libshared_deps = [threads,
192 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
194 libshared_static = static_library(
197 include_directories : includes,
198 dependencies : libshared_deps,
199 c_args : ['-fvisibility=default'])
201 libshared = shared_library(
203 #if 0 /// UNNEEDED by elogind
205 # include_directories : includes,
206 # link_args : ['-shared',
207 # '-Wl,--version-script=' + libshared_sym_path],
208 # link_whole : [libshared_static,
212 # libjournal_client],
214 libelogind_internal_sources,
216 c_args : ['-fvisibility=default'],
217 dependencies : libshared_deps,
219 install_dir : rootlibexecdir)
220 #if 1 /// need elogind internal library sources
221 libelogind_internal_sources,