1 # SPDX-License-Identifier: LGPL-2.1-or-later
122 unit-dependency-atom.c
123 unit-dependency-atom.h
132 subdir('bpf/socket_bind')
133 if conf.get('BPF_FRAMEWORK') == 1
134 libcore_sources += [socket_bind_skel_h]
137 load_fragment_gperf_gperf = custom_target(
138 'load-fragment-gperf.gperf',
139 input : 'load-fragment-gperf.gperf.in',
140 output: 'load-fragment-gperf.gperf',
141 command : [meson_render_jinja2, config_h, '@INPUT@'],
144 load_fragment_gperf_c = custom_target(
145 'load-fragment-gperf.c',
146 input : load_fragment_gperf_gperf,
147 output : 'load-fragment-gperf.c',
148 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
150 awkscript = 'load-fragment-gperf-nulstr.awk'
151 load_fragment_gperf_nulstr_c = custom_target(
152 'load-fragment-gperf-nulstr.c',
153 input : [awkscript, load_fragment_gperf_gperf],
154 output : 'load-fragment-gperf-nulstr.c',
155 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
158 libcore = static_library(
161 load_fragment_gperf_c,
162 load_fragment_gperf_nulstr_c,
163 include_directories : includes,
164 dependencies : [versiondep,
177 core_includes = [includes, include_directories('.')]
179 systemd_sources = files('main.c')
181 in_files = [['system.conf', pkgsysconfdir],
182 ['user.conf', pkgsysconfdir],
183 ['systemd.pc', pkgconfigdatadir],
184 ['org.freedesktop.systemd1.policy', polkitpolicydir]]
186 foreach item : in_files
192 input : file + '.in',
194 command : [meson_render_jinja2, config_h, '@INPUT@'],
196 install : dir != 'no',
200 install_data('org.freedesktop.systemd1.conf',
201 install_dir : dbuspolicydir)
202 install_data('org.freedesktop.systemd1.service',
203 install_dir : dbussystemservicedir)
205 meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
206 meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
207 meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
208 meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
210 if install_sysconfdir
211 meson.add_install_script('sh', '-c', mkdir_p.format(join_paths(pkgsysconfdir, 'system')))
212 meson.add_install_script('sh', '-c', mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
213 meson.add_install_script('sh', '-c', mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))
216 ############################################################
219 [['src/core/fuzz-unit-file.c'],