1 # SPDX-License-Identifier: LGPL-2.1-or-later
126 unit-dependency-atom.c
127 unit-dependency-atom.h
138 subdir('bpf/socket_bind')
139 if conf.get('BPF_FRAMEWORK') == 1
140 libcore_sources += [socket_bind_skel_h]
141 subdir('bpf/restrict_fs')
142 libcore_sources += [restrict_fs_skel_h]
145 subdir('bpf/restrict_ifaces')
146 if conf.get('BPF_FRAMEWORK') == 1
147 libcore_sources += [restrict_ifaces_skel_h]
150 load_fragment_gperf_gperf = custom_target(
151 'load-fragment-gperf.gperf',
152 input : 'load-fragment-gperf.gperf.in',
153 output: 'load-fragment-gperf.gperf',
154 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'])
156 load_fragment_gperf_c = custom_target(
157 'load-fragment-gperf.c',
158 input : load_fragment_gperf_gperf,
159 output : 'load-fragment-gperf.c',
160 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
162 awkscript = 'load-fragment-gperf-nulstr.awk'
163 load_fragment_gperf_nulstr_c = custom_target(
164 'load-fragment-gperf-nulstr.c',
165 input : [awkscript, load_fragment_gperf_gperf],
166 output : 'load-fragment-gperf-nulstr.c',
167 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
170 libcore_name = 'systemd-core-@0@'.format(shared_lib_tag)
172 libcore = shared_library(
175 load_fragment_gperf_c,
176 load_fragment_gperf_nulstr_c,
177 include_directories : includes,
178 c_args : ['-fvisibility=default'],
179 link_args : ['-shared',
180 '-Wl,--version-script=' + libshared_sym_path],
181 link_with : libshared,
182 dependencies : [versiondep,
196 install_dir : rootlibexecdir)
198 core_includes = [includes, include_directories('.')]
200 systemd_sources = files(
207 in_files = [['system.conf', pkgsysconfdir],
208 ['user.conf', pkgsysconfdir],
209 ['systemd.pc', pkgconfigdatadir],
210 ['org.freedesktop.systemd1.policy', polkitpolicydir]]
212 foreach item : in_files
218 input : file + '.in',
220 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
221 install : (dir == pkgsysconfdir) ? install_sysconfdir_samples : (dir != 'no'),
225 install_data('org.freedesktop.systemd1.conf',
226 install_dir : dbuspolicydir)
227 install_data('org.freedesktop.systemd1.service',
228 install_dir : dbussystemservicedir)
230 meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
231 meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
232 meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
233 meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
235 if install_sysconfdir
236 meson.add_install_script('sh', '-c', mkdir_p.format(pkgsysconfdir / 'system'))
237 meson.add_install_script('sh', '-c', mkdir_p.format(pkgsysconfdir / 'user'))
238 meson.add_install_script('sh', '-c', mkdir_p.format(sysconfdir / 'xdg/systemd'))
241 ############################################################
244 [files('fuzz-unit-file.c'),