From abac726998fcf76f9bd8cd330f192e23173c8762 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 12 Oct 2019 15:23:46 +0000 Subject: [PATCH] meson: Declare dependency for subproject --- meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 7db7cee..35d4762 100644 --- a/meson.build +++ b/meson.build @@ -40,7 +40,7 @@ dependencies = [ libuv, ] -lib = shared_library( +neatvnc = shared_library( 'neatvnc', sources, version: '0.0.0', @@ -49,11 +49,16 @@ lib = shared_library( install: true, ) +neatvnc_dep = declare_dependency( + include_directories: inc, + link_with: neatvnc, +) + install_headers('include/neatvnc.h') pkgconfig = import('pkgconfig') pkgconfig.generate( - libraries: lib, + libraries: neatvnc, version: meson.project_version(), filebase: meson.project_name(), name: meson.project_name(),