project('libjson', 'c', license: 'GPLv3', version: '1.0', default_options: [ 'warning_level=3' ]) include_dir = include_directories('include/') libjson_sources = [ 'src/json.c', 'src/array.c', 'src/object.c', 'src/string.c', 'src/print.c', 'src/literal.c', ] install_headers('include/json.h') libjson = library('json', libjson_sources, include_directories: include_dir, soversion: 1, install: true ) json = declare_dependency(link_with: libjson, include_directories: include_dir) meson.override_dependency('libjson', json) import('pkgconfig').generate( libjson, description: 'json parsing library', url: 'https://git.vlhl.dev/navi/json.git' )