libvirt/include/libvirt/meson.build
Andrea Bolognani 88c3490aa1 meson: Use @BASENAME@ more
This patch takes care of just the obvious cases: there are
many more situations where the data we pass to configure_file()
could likely be obtained in a more effective way, but we can
address the low-hanging fruits as a first approximation.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2020-09-01 13:22:24 +02:00

37 lines
748 B
Meson

libvirt_common_h_in = files('libvirt-common.h.in')
libvirt_include = files(
'libvirt-admin.h',
'libvirt-domain-checkpoint.h',
'libvirt-domain.h',
'libvirt-domain-snapshot.h',
'libvirt-event.h',
'libvirt.h',
'libvirt-host.h',
'libvirt-interface.h',
'libvirt-lxc.h',
'libvirt-network.h',
'libvirt-nodedev.h',
'libvirt-nwfilter.h',
'libvirt-qemu.h',
'libvirt-secret.h',
'libvirt-storage.h',
'libvirt-stream.h',
'virterror.h',
)
include_conf = configuration_data()
include_conf.merge_from(conf)
libvirt_common_h = configure_file(
input: libvirt_common_h_in,
output: '@BASENAME@',
configuration: include_conf,
)
install_headers(
libvirt_include,
libvirt_common_h,
install_dir: includedir / 'libvirt',
)