1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
project('libjson', 'c',
license: 'GPLv3',
version: '1.0',
default_options: [
'prefix=/usr',
'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'
)
|