1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright © 2017 Zbigniew Jędrzejewski-Szmek
5 #if 0 /// elogind has a much shorter list
6 # shared_sources = files('''
82 # spawn-ask-password-agent.c
83 # spawn-ask-password-agent.h
84 # spawn-polkit-agent.c
85 # spawn-polkit-agent.h
107 # wireguard-netlink.h
134 test_tables_h = files('test-tables.h')
135 shared_sources += [test_tables_h]
137 if conf.get('HAVE_ACL') == 1
138 shared_sources += files('acl-util.c')
141 if conf.get('ENABLE_UTMP') == 1
142 shared_sources += files('utmp-wtmp.c')
145 #if 0 /// UNNEEDED by elogind
146 # if conf.get('HAVE_SECCOMP') == 1
147 # shared_sources += files('seccomp-util.c')
150 # if conf.get('HAVE_LIBIPTC') == 1
151 # shared_sources += files('firewall-util.c')
155 libshared_name = 'elogind-shared-@0@'.format(meson.project_version())
157 #if 0 /// elogind doesn't need all this
158 # libshared_deps = [threads,
172 libshared_deps = [threads,
178 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
180 libshared_static = static_library(
183 include_directories : includes,
184 dependencies : libshared_deps,
185 c_args : ['-fvisibility=default'])
187 libshared = shared_library(
189 #if 0 /// UNNEEDED by elogind
192 include_directories : includes,
193 link_args : ['-shared',
194 '-Wl,--version-script=' + libshared_sym_path],
195 link_whole : [libshared_static,
197 #if 0 /// UNNEEDED by elogind
200 # libjournal_client],
204 c_args : ['-fvisibility=default'],
205 dependencies : libshared_deps,
207 install_dir : rootlibexecdir)