1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

Add pkg-config files to allow deps to build against source tree

When testing language bindings it is useful to be able to build
them against an uninstalled libvirt source tree. Add a dummy
set of pkg-config files to allow for this. This can be used by
setting

  export PKG_CONFIG_PATH=/path/to/libvirt/git/src

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2014-06-20 17:48:12 +01:00
parent 65d8c92a75
commit 60c343f688
5 changed files with 63 additions and 0 deletions

1
.gitignore vendored
View File

@ -98,6 +98,7 @@
/run /run
/sc_* /sc_*
/src/.*.stamp /src/.*.stamp
/src/*.pc
/src/access/org.libvirt.api.policy /src/access/org.libvirt.api.policy
/src/access/viraccessapicheck.c /src/access/viraccessapicheck.c
/src/access/viraccessapicheck.h /src/access/viraccessapicheck.h

View File

@ -2730,6 +2730,9 @@ AC_CONFIG_FILES([\
libvirt.pc \ libvirt.pc \
libvirt-qemu.pc \ libvirt-qemu.pc \
libvirt-lxc.pc \ libvirt-lxc.pc \
src/libvirt.pc \
src/libvirt-qemu.pc \
src/libvirt-lxc.pc \
libvirt.spec mingw-libvirt.spec \ libvirt.spec mingw-libvirt.spec \
po/Makefile.in \ po/Makefile.in \
include/libvirt/Makefile include/libvirt/libvirt.h \ include/libvirt/Makefile include/libvirt/libvirt.h \

18
src/libvirt-lxc.pc.in Normal file
View File

@ -0,0 +1,18 @@
# 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
includedir=@abs_top_builddir@/include
datarootdir=@abs_top_builddir@
libvirt_lxc_api=@datadir@/docs/libvirt-lxc-api.xml
Name: libvirt
Version: @VERSION@
Description: libvirt LXC library
Requires:
Libs: -L${libdir} -lvirt-lxc
Cflags: -I${includedir}

18
src/libvirt-qemu.pc.in Normal file
View File

@ -0,0 +1,18 @@
# 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
includedir=@abs_top_builddir@/include
datarootdir=@abs_top_builddir@
libvirt_qemu_api=@datadir@/docs/libvirt-qemu-api.xml
Name: libvirt
Version: @VERSION@
Description: libvirt QEMU library
Requires:
Libs: -L${libdir} -lvirt-qemu
Cflags: -I${includedir}

23
src/libvirt.pc.in Normal file
View File

@ -0,0 +1,23 @@
# 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
includedir=@abs_top_builddir@/include
datarootdir=@abs_top_builddir@
libvirt_api=@datadir@/docs/libvirt-api.xml
# For compat with older versions - also present
# in libvirt-qemu.pc / libvirt-lxc.pc
libvirt_qemu_api=@datadir@/docs/libvirt-qemu-api.xml
libvirt_lxc_api=@datadir@/docs/libvirt-lxc-api.xml
Name: libvirt
Version: @VERSION@
Description: libvirt library
Requires:
Libs: -L${libdir} -lvirt
Cflags: -I${includedir}