1 # SPDX-License-Identifier: LGPL-2.1+
3 #if 0 /// elogind has a much shorter list
4 # shared_sources = files('''
80 # spawn-ask-password-agent.c
81 # spawn-ask-password-agent.h
82 # spawn-polkit-agent.c
83 # spawn-polkit-agent.h
105 # wireguard-netlink.h
132 test_tables_h = files('test-tables.h')
133 shared_sources += [test_tables_h]
135 if conf.get('HAVE_ACL') == 1
136 shared_sources += files('acl-util.c')
139 if conf.get('ENABLE_UTMP') == 1
140 shared_sources += files('utmp-wtmp.c')
143 #if 0 /// UNNEEDED by elogind
144 # if conf.get('HAVE_SECCOMP') == 1
145 # shared_sources += files('seccomp-util.c')
148 # if conf.get('HAVE_LIBIPTC') == 1
149 # shared_sources += files('firewall-util.c')
153 libshared_name = 'elogind-shared-@0@'.format(meson.project_version())
155 #if 0 /// elogind doesn't need all this
156 # libshared_deps = [threads,
170 libshared_deps = [threads,
176 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
178 libshared_static = static_library(
181 include_directories : includes,
182 dependencies : libshared_deps,
183 c_args : ['-fvisibility=default'])
185 libshared = shared_library(
187 #if 0 /// UNNEEDED by elogind
190 include_directories : includes,
191 link_args : ['-shared',
192 '-Wl,--version-script=' + libshared_sym_path],
193 link_whole : [libshared_static,
195 #if 0 /// UNNEEDED by elogind
198 # libjournal_client],
202 c_args : ['-fvisibility=default'],
203 dependencies : libshared_deps,
205 install_dir : rootlibexecdir)