-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
43 lines (35 loc) · 861 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
project('chcase',
'vala', 'c',
version: '2.3.0',
meson_version: '>=0.56.0'
)
pkgconfig = import('pkgconfig')
add_project_arguments(['-W'], language: 'c')
libchcase_deps = [
dependency('gio-2.0'),
dependency('glib-2.0')
]
subdir('lib')
if get_option('demo')
subdir('examples')
endif
if get_option('doc')
doc_outdir = 'docs'
valadoc = find_program('valadoc')
custom_target(
'valadoc',
command: [
valadoc,
sources,
'--package-name=' + meson.project_name(),
'--package-version=' + meson.project_version(),
'--verbose',
'--force',
'--use-svg-images',
'-o', meson.project_source_root() / doc_outdir,
],
build_by_default: true,
output: doc_outdir,
depends: chcase_lib
)
endif