tools: generate pkg-config files from make variables
authorJuergen Gross <jgross@suse.com>
Fri, 28 Aug 2020 15:07:17 +0000 (17:07 +0200)
committerWei Liu <wl@xen.org>
Wed, 9 Sep 2020 10:57:16 +0000 (10:57 +0000)
commit52dbd6f07cea7a776ba1fcc76f111c311c8a1412
treecfde4ac333f968bec4fb15d5dde9e0bffc80bbd2
parent1e2d3be2e516e6f415ca6029f651b76a8563a27c
tools: generate pkg-config files from make variables

For each library built two variants of pkg-config files are created
from a per-library template: an "official" one for installation on
the user's system, and one used for building internal tools, like e.g.
qemu.

Instead of the template which is looking very similar for all libraries
generate the pkg-config files directly from make variables.

This will reduce the need to specify some pkg-config file entries in
the templates, as the contents can easily be generated from available
data (e.g. "Version:" and "Requires.private:" entries).

Especially the variant used for building internal tools needs to gain
additional runtime link parameters for the internally used libraries,
as otherwise those won't be found by the users (e.g. qemu).

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
24 files changed:
stubdom/Makefile
tools/Rules.mk
tools/libs/call/xencall.pc.in [deleted file]
tools/libs/devicemodel/xendevicemodel.pc.in [deleted file]
tools/libs/evtchn/xenevtchn.pc.in [deleted file]
tools/libs/foreignmemory/xenforeignmemory.pc.in [deleted file]
tools/libs/gnttab/xengnttab.pc.in [deleted file]
tools/libs/hypfs/xenhypfs.pc.in [deleted file]
tools/libs/libs.mk
tools/libs/toolcore/Makefile
tools/libs/toolcore/xentoolcore.pc.in [deleted file]
tools/libs/toollog/xentoollog.pc.in [deleted file]
tools/libvchan/Makefile
tools/libvchan/xenvchan.pc.in [deleted file]
tools/libxc/Makefile
tools/libxc/xencontrol.pc.in [deleted file]
tools/libxc/xenguest.pc.in [deleted file]
tools/libxl/Makefile
tools/libxl/xenlight.pc.in [deleted file]
tools/libxl/xlutil.pc.in [deleted file]
tools/xenstat/libxenstat/Makefile
tools/xenstat/libxenstat/xenstat.pc.in [deleted file]
tools/xenstore/Makefile
tools/xenstore/xenstore.pc.in [deleted file]