-
Notifications
You must be signed in to change notification settings - Fork 15
/
meson.build
48 lines (40 loc) · 928 Bytes
/
meson.build
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
36
37
38
39
40
41
42
43
44
45
46
47
48
project('live-chart', ['vala', 'c'], version: '1.10.0')
cc = meson.get_compiler('c')
libm = cc.find_library('m', required: true)
gtk = dependency('gtk4', version: '>= 4.0')
gee = dependency('gee-0.8')
vala_args = ['--target-glib=2.50']
if meson.version().version_compare('>= 0.47')
if get_option('debug') == true
vala_args += ['--ccode', '--debug']
endif
endif
deps = [
gtk,
gee,
libm
]
subdir('src')
subdir('tests')
subdir('examples')
if get_option('docs')
outdir = 'docs'
custom_target(
'valadoc',
command: [
find_program('valadoc'),
sources,
'--package-name=Livechart',
'--package-version=' + meson.project_version(),
'--verbose',
'--force',
'--pkg=gtk4',
'--pkg=gee-0.8',
'--target-glib=2.50',
'-o', meson.project_source_root() / outdir
],
build_by_default: true,
output: outdir,
depends: livechart_lib
)
endif