meson: Declare dependency for subproject

tight-png
Andri Yngvason 2019-10-12 15:23:46 +00:00
parent 23dcc36849
commit abac726998
1 changed files with 7 additions and 2 deletions

View File

@ -40,7 +40,7 @@ dependencies = [
libuv, libuv,
] ]
lib = shared_library( neatvnc = shared_library(
'neatvnc', 'neatvnc',
sources, sources,
version: '0.0.0', version: '0.0.0',
@ -49,11 +49,16 @@ lib = shared_library(
install: true, install: true,
) )
neatvnc_dep = declare_dependency(
include_directories: inc,
link_with: neatvnc,
)
install_headers('include/neatvnc.h') install_headers('include/neatvnc.h')
pkgconfig = import('pkgconfig') pkgconfig = import('pkgconfig')
pkgconfig.generate( pkgconfig.generate(
libraries: lib, libraries: neatvnc,
version: meson.project_version(), version: meson.project_version(),
filebase: meson.project_name(), filebase: meson.project_name(),
name: meson.project_name(), name: meson.project_name(),