diff options
author | 2019-03-31 02:38:57 +0200 | |
---|---|---|
committer | 2019-03-31 02:38:57 +0200 | |
commit | 5c843d16f0e5a0ba526620645711df14291ef758 (patch) | |
tree | a825a7f3adeca846af99931b1745f1f99e5b1040 | |
parent | a959944192db73328a5238de77aac730c04d4713 (diff) | |
download | librin-5c843d16f0e5a0ba526620645711df14291ef758.tar.gz librin-5c843d16f0e5a0ba526620645711df14291ef758.tar.bz2 librin-5c843d16f0e5a0ba526620645711df14291ef758.zip |
meson: generate and install a pkg-config file.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
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') |