1 # SPDX-License-Identifier: LGPL-2.1+
3 shared_sources = files('''
82 spawn-ask-password-agent.c
83 spawn-ask-password-agent.h
108 if get_option('tests') != 'false'
109 shared_sources += files('tests.c', 'tests.h')
112 test_tables_h = files('test-tables.h')
113 shared_sources += test_tables_h
115 if conf.get('HAVE_ACL') == 1
116 shared_sources += files('acl-util.c')
119 if conf.get('ENABLE_UTMP') == 1
120 shared_sources += files('utmp-wtmp.c')
123 if conf.get('HAVE_SECCOMP') == 1
124 shared_sources += files('seccomp-util.c')
127 if conf.get('HAVE_LIBIPTC') == 1
128 shared_sources += files('firewall-util.c')
131 if conf.get('HAVE_KMOD') == 1
132 shared_sources += files('module-util.c')
135 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
137 libshared_deps = [threads,
152 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
154 libshared_static = static_library(
157 include_directories : includes,
158 dependencies : libshared_deps,
159 c_args : ['-fvisibility=default'])
161 libshared = shared_library(
164 include_directories : includes,
165 link_args : ['-shared',
166 '-Wl,--version-script=' + libshared_sym_path],
167 link_whole : [libshared_static,
172 c_args : ['-fvisibility=default'],
173 dependencies : libshared_deps,
175 install_dir : rootlibexecdir)