From 72c59b89c604281741374b1cfd1321c853231cde Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 11 Nov 2021 18:35:54 -0800 Subject: [PATCH] meson: Add dependency for for libpkgconf This allows others using libpkgconf as a dependency to do use this as a subproject. They can write something like: ```meson dependency('libpkgconf', fallback : ['libpkgconf', 'dep_libpkgconf']) ``` Then install a wrap file for libpkgconf and build it as part of their project. --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 918d40b..248eaeb 100644 --- a/meson.build +++ b/meson.build @@ -72,6 +72,12 @@ libpkgconf = library('pkgconf', soversion : '3', ) +# For other projects using libpkgconfig as a subproject +dep_libpkgconf = declare_dependency( + link_with : libpkgconf, + include_directories : include_directories('.'), +) + pkg = import('pkgconfig') pkg.generate(libpkgconf, name : 'libpkgconf',