1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 #if 0 /// elogind has a much shorter list
84 # spawn-ask-password-agent.c
85 # spawn-ask-password-agent.h
86 # spawn-polkit-agent.c
87 # spawn-polkit-agent.h
109 # wireguard-netlink.h
136 test_tables_h = files('test-tables.h')
137 shared_sources += [test_tables_h]
139 if conf.get('HAVE_ACL') == 1
140 shared_sources += ['acl-util.c']
143 if conf.get('ENABLE_UTMP') == 1
144 shared_sources += ['utmp-wtmp.c']
147 #if 0 /// UNNEEDED by elogind
148 # if conf.get('HAVE_SECCOMP') == 1
149 # shared_sources += ['seccomp-util.c']
152 # if conf.get('HAVE_LIBIPTC') == 1
153 # shared_sources += ['firewall-util.c']
157 libshared_name = 'elogind-shared-@0@'.format(meson.project_version())
159 #if 0 /// elogind doesn't need all this
160 # libshared_deps = [threads,
174 libshared_deps = [threads,
180 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
182 libshared_static = static_library(
185 include_directories : includes,
186 dependencies : libshared_deps,
187 c_args : ['-fvisibility=default'])
189 libshared = shared_library(
191 #if 0 /// UNNEEDED by elogind
194 include_directories : includes,
195 link_args : ['-shared',
196 '-Wl,--version-script=' + libshared_sym_path],
197 link_whole : [libshared_static,
199 #if 0 /// UNNEEDED by elogind
202 # libjournal_client],
206 c_args : ['-fvisibility=default'],
207 dependencies : libshared_deps,
209 install_dir : rootlibexecdir)