From 33ed543160abc221196465933baa0b574da6f1c5 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 29 Jun 2020 21:54:35 +0200 Subject: [PATCH] meson: src: configure pkg-config files used by run script Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: Neal Gompa --- configure.ac | 3 --- src/meson.build | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index dd96f271fb..64bde37364 100644 --- a/configure.ac +++ b/configure.ac @@ -118,9 +118,6 @@ AC_CONFIG_FILES([\ libvirt-qemu.pc \ libvirt-lxc.pc \ libvirt-admin.pc \ - src/libvirt.pc \ - src/libvirt-qemu.pc \ - src/libvirt-lxc.pc \ libvirt.spec mingw-libvirt.spec \ po/Makefile \ examples/Makefile \ diff --git a/src/meson.build b/src/meson.build index 9f1578d0f5..d23f46b689 100644 --- a/src/meson.build +++ b/src/meson.build @@ -977,3 +977,23 @@ if pdwtags_prog.found() and cc.get_id() != 'clang' ) endforeach endif + +# configure pkg-config files for run script +run_pkg_config_files = [ + 'libvirt-lxc.pc.in', + 'libvirt-qemu.pc.in', + 'libvirt.pc.in', +] + +run_pkg_config_conf = configuration_data() +run_pkg_config_conf.set('VERSION', meson.project_version()) +run_pkg_config_conf.set('abs_top_builddir', meson.build_root()) +run_pkg_config_conf.set('abs_top_srcdir', meson.source_root()) + +foreach file : run_pkg_config_files + configure_file( + input: file, + output: '@BASENAME@', + configuration: run_pkg_config_conf, + ) +endforeach