1 # SPDX-License-Identifier: LGPL-2.1+
3 shared_sources = files('''
83 spawn-ask-password-agent.c
84 spawn-ask-password-agent.h
109 if get_option('tests') != 'false'
110 shared_sources += files('tests.c', 'tests.h')
113 test_tables_h = files('test-tables.h')
114 shared_sources += test_tables_h
116 if conf.get('HAVE_ACL') == 1
117 shared_sources += files('acl-util.c')
120 if conf.get('ENABLE_UTMP') == 1
121 shared_sources += files('utmp-wtmp.c')
124 if conf.get('HAVE_SECCOMP') == 1
125 shared_sources += files('seccomp-util.c')
128 if conf.get('HAVE_LIBIPTC') == 1
129 shared_sources += files('firewall-util.c')
132 if conf.get('HAVE_KMOD') == 1
133 shared_sources += files('module-util.c')
136 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
138 libshared_deps = [threads,
153 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
155 libshared_static = static_library(
158 include_directories : includes,
159 dependencies : libshared_deps,
160 c_args : ['-fvisibility=default'])
162 libshared = shared_library(
165 include_directories : includes,
166 link_args : ['-shared',
167 '-Wl,--version-script=' + libshared_sym_path],
168 link_whole : [libshared_static,
173 c_args : ['-fvisibility=default'],
174 dependencies : libshared_deps,
176 install_dir : rootlibexecdir)