From 5c843d16f0e5a0ba526620645711df14291ef758 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sun, 31 Mar 2019 02:38:57 +0200 Subject: meson: generate and install a pkg-config file. Signed-off-by: Gediminas Jakutis --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 0e9f476..9a7b459 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,12 @@ project('librin', 'c', license : 'LGPL2.1', + version : '0.0.3', default_options : ['c_std=gnu89', 'buildtype=release']) inc = include_directories('include') +pkg = import('pkgconfig') + if get_option('gpio') thread_dep = dependency('threads') else @@ -27,6 +30,7 @@ if get_option('shared') librin = shared_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps) endif +pkg.generate(librin) if get_option('tests') subdir('test') -- cgit v1.2.3