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
130 test_tables_h = files('test-tables.h')
131 shared_sources += [test_tables_h]
133 if conf.get('HAVE_ACL') == 1
134 shared_sources += files('acl-util.c')
137 if conf.get('ENABLE_UTMP') == 1
138 shared_sources += files('utmp-wtmp.c')
141 #if 0 /// UNNEEDED by elogind
142 # if conf.get('HAVE_SECCOMP') == 1
143 # shared_sources += files('seccomp-util.c')
146 # if conf.get('HAVE_LIBIPTC') == 1
147 # shared_sources += files('firewall-util.c')
151 libshared_name = 'elogind-shared-@0@'.format(meson.project_version())
153 #if 0 /// elogind doesn't need all this
154 # libshared_deps = [threads,
168 libshared_deps = [threads,
174 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
176 libshared_static = static_library(
179 include_directories : includes,
180 dependencies : libshared_deps,
181 c_args : ['-fvisibility=default'])
183 libshared = shared_library(
185 #if 0 /// UNNEEDED by elogind
188 include_directories : includes,
189 link_args : ['-shared',
190 '-Wl,--version-script=' + libshared_sym_path],
191 link_whole : [libshared_static,
193 #if 0 /// UNNEEDED by elogind
196 # libjournal_client],
200 c_args : ['-fvisibility=default'],
201 dependencies : libshared_deps,
203 install_dir : rootlibexecdir)