Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
configure.ac | 3 ---
src/meson.build | 20 ++++++++++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index c26076fd79b..dc1a27ae94b 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 08892b536e2..946c124079a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -937,3 +937,23 @@ if pdwtags_prog.found()
)
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
--
2.26.2