libvirt/scripts/meson.build
Andrea Bolognani e86390c9b4 systemd: Introduce common templates
We already use templating to generate sockets, which are all
based off libvirtd's. Push the idea further, and extend it to
cover services as well.

This is more challenging, as the various modular daemons each have
their own needs in terms of what system services needs to be
available before they can be started, which other components of
libvirt they depend on, and so on.

In order to make this sort of per-service tweaks possible, we
introduce a Python script that can merge two systemd units
together. The script is aware of the semantics of systemd's unit
definition format, so it can intelligently merge sections
together.

This generic systemd unit merging mechanism will also supersede
the extremely ad-hoc @deps@ variable, which is currently used in
a single scenario.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2023-10-02 10:41:07 +02:00

40 lines
926 B
Meson

scripts = [
'apibuild.py',
'augeas-gentest.py',
'check-aclperms.py',
'check-aclrules.py',
'check-driverimpls.py',
'check-drivername.py',
'check-file-access.py',
'check-html-references.py',
'check-remote-protocol.py',
'check-symfile.py',
'check-symsorting.py',
'dtrace2systemtap.py',
'esx_vi_generator.py',
'genaclperms.py',
'genpolkit.py',
'gensystemtap.py',
'group-qemu-caps.py',
'header-ifdef.py',
'hvsupport.py',
'hyperv_wmi_generator.py',
'merge-systemd-units.py',
'meson-dist.py',
'meson-gen-authors.py',
'meson-gen-def.py',
'meson-gen-sym.py',
'meson-install-dirs.py',
'meson-install-symlink.py',
'meson-install-web.py',
'meson-python.sh',
'meson-timestamp.py',
'mock-noinline.py',
'prohibit-duplicate-header.py',
]
foreach name : scripts
sname = name.split('.')[0].underscorify()
set_variable('@0@_prog'.format(sname), find_program(name))
endforeach