From 69bfd21e20cfd136af99f98dea26b5c0b5d934d3 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Fri, 29 Mar 2024 00:42:44 +0100 Subject: meson: install pkg-config files for libraries Change-Id: I14b9d81d09f188eacfb9c68bcfb84751c18e3779 --- src/libstore/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/libstore') diff --git a/src/libstore/meson.build b/src/libstore/meson.build index 33e475f70..c4b12f61e 100644 --- a/src/libstore/meson.build +++ b/src/libstore/meson.build @@ -186,3 +186,17 @@ liblixstore = declare_dependency( include_directories : include_directories('.'), link_with : libstore, ) + +# FIXME: not using the pkg-config module because it creates way too many deps +# while meson migration is in progress, and we want to not include boost here +configure_file( + input : 'nix-store.pc.in', + output : 'nix-store.pc', + install_dir : libdir / 'pkgconfig', + configuration : { + 'prefix' : prefix, + 'libdir' : libdir, + 'includedir' : includedir, + 'PACKAGE_VERSION' : meson.project_version(), + }, +) -- cgit v1.2.3