libvirt/src/libvirt.pc.in
Cole Robinson 24cbacfe7a Fix src/ pkg-config API XML paths
The .pc files in src/ are intended for use with the ./run script,
to ease building bindings against an uninstalled libvirt build.
The pointer to the API XML files is incorrect though, it needs to
point into the build tree.

This fixes use of the run script for building libvirt-python, ex:

  /path/to/libvirt.git/run ./setup.py build

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2019-12-10 09:47:26 -05:00

25 lines
754 B
PkgConfig

# Dummy pkg-config file to allow lang bindings
# to build against a libvirt source tree eg
# export PKG_CONFIG_PATH=/path/to/libvirt/git/src
prefix=@abs_top_builddir@
exec_prefix=@abs_top_builddir@
libdir=@abs_top_builddir@/src/.libs
includedir=@abs_top_builddir@/include
source_includedir=@abs_top_srcdir@/include
datarootdir=@abs_top_builddir@
libvirt_api=@abs_top_builddir@/docs/libvirt-api.xml
# For compat with older versions - also present
# in libvirt-qemu.pc / libvirt-lxc.pc
libvirt_qemu_api=@abs_top_builddir@/docs/libvirt-qemu-api.xml
libvirt_lxc_api=@abs_top_builddir@/docs/libvirt-lxc-api.xml
Name: libvirt
Version: @VERSION@
Description: libvirt library
Requires:
Libs: -L${libdir} -lvirt
Cflags: -I${includedir} -I${source_includedir}