diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-29 00:42:44 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-29 02:45:48 +0000 |
commit | 69bfd21e20cfd136af99f98dea26b5c0b5d934d3 (patch) | |
tree | c469716405d2ed0864d3416e39c5329973a27b2b /src | |
parent | 86b954a7afb98a717c372962dacd311d1fcc284c (diff) |
meson: install pkg-config files for libraries
Change-Id: I14b9d81d09f188eacfb9c68bcfb84751c18e3779
Diffstat (limited to 'src')
-rw-r--r-- | src/libcmd/meson.build | 14 | ||||
-rw-r--r-- | src/libexpr/meson.build | 14 | ||||
-rw-r--r-- | src/libmain/meson.build | 14 | ||||
-rw-r--r-- | src/libstore/meson.build | 14 |
4 files changed, 56 insertions, 0 deletions
diff --git a/src/libcmd/meson.build b/src/libcmd/meson.build index e033bb1cd..c3782723b 100644 --- a/src/libcmd/meson.build +++ b/src/libcmd/meson.build @@ -56,3 +56,17 @@ liblixcmd = declare_dependency( include_directories : '.', link_with : libcmd, ) + +# 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-cmd.pc.in', + output : 'nix-cmd.pc', + install_dir : libdir / 'pkgconfig', + configuration : { + 'prefix' : prefix, + 'libdir' : libdir, + 'includedir' : includedir, + 'PACKAGE_VERSION' : meson.project_version(), + }, +) diff --git a/src/libexpr/meson.build b/src/libexpr/meson.build index 2e810f4c9..e0449ab4e 100644 --- a/src/libexpr/meson.build +++ b/src/libexpr/meson.build @@ -152,3 +152,17 @@ liblixexpr = declare_dependency( include_directories : include_directories('.'), link_with : libexpr, ) + +# 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-expr.pc.in', + output : 'nix-expr.pc', + install_dir : libdir / 'pkgconfig', + configuration : { + 'prefix' : prefix, + 'libdir' : libdir, + 'includedir' : includedir, + 'PACKAGE_VERSION' : meson.project_version(), + }, +) diff --git a/src/libmain/meson.build b/src/libmain/meson.build index 54326c305..3f50b158d 100644 --- a/src/libmain/meson.build +++ b/src/libmain/meson.build @@ -31,3 +31,17 @@ liblixmain = declare_dependency( include_directories : include_directories('.'), link_with : libmain, ) + +# 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-main.pc.in', + output : 'nix-main.pc', + install_dir : libdir / 'pkgconfig', + configuration : { + 'prefix' : prefix, + 'libdir' : libdir, + 'includedir' : includedir, + 'PACKAGE_VERSION' : meson.project_version(), + }, +) 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(), + }, +) |