From 23dcc368497e09e4d894d7fbe6926f805e0f432c Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 12 Oct 2019 14:47:07 +0000 Subject: [PATCH] meson: Generate pkgconfig --- meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6bee2eb..7db7cee 100644 --- a/meson.build +++ b/meson.build @@ -40,12 +40,22 @@ dependencies = [ libuv, ] -shared_library( +lib = shared_library( 'neatvnc', sources, + version: '0.0.0', dependencies: dependencies, include_directories: inc, install: true, ) install_headers('include/neatvnc.h') + +pkgconfig = import('pkgconfig') +pkgconfig.generate( + libraries: lib, + version: meson.project_version(), + filebase: meson.project_name(), + name: meson.project_name(), + description: 'A Neat VNC server library' +)