meson: make -uninstalled.pc correct

This pkg-config file is automatically created in the meson-uninstalled/
directory of the build tree, and points to the built artifacts there. If
this directory is added to PKG_CONFIG_PATH, it will be preferred over an
installed copy.

Making this work properly means it becomes trivially possible to build a
private copy of libalpm, and then compile other projects using it rather
than the system copy.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2021-04-18 23:25:13 -04:00 committed by Allan McRae
parent 288cd1c74a
commit 0699321b3c

View file

@ -321,6 +321,7 @@ libalpm = library(
'alpm', 'alpm',
version : libalpm_version, version : libalpm_version,
objects: libalpm_a.extract_all_objects(recursive: true), objects: libalpm_a.extract_all_objects(recursive: true),
include_directories : includes,
dependencies : alpm_deps, dependencies : alpm_deps,
install : true) install : true)