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.
pull/241/head
Dylan Baker 2021-11-11 18:35:54 -08:00 committed by Ariadne Conill
parent 8d9d3de6eb
commit 72c59b89c6
1 changed files with 6 additions and 0 deletions

View File

@ -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',