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
parent
8d9d3de6eb
commit
72c59b89c6
|
@ -72,6 +72,12 @@ libpkgconf = library('pkgconf',
|
||||||
soversion : '3',
|
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 = import('pkgconfig')
|
||||||
pkg.generate(libpkgconf,
|
pkg.generate(libpkgconf,
|
||||||
name : 'libpkgconf',
|
name : 'libpkgconf',
|
||||||
|
|
Loading…
Reference in New Issue