-
Notifications
You must be signed in to change notification settings - Fork 23
/
meson.build
38 lines (31 loc) · 993 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
project('Valum', 'vala', 'c',
version: '0.3.0',
license: 'LGPL',
meson_version: '>=0.36')
api_version = '0.3'
if not meson.is_subproject()
add_global_arguments(['--enable-experimental',
'--enable-deprecated'],
language: 'vala')
endif
glib = dependency('glib-2.0', version: '>=2.40')
gobject = dependency('gobject-2.0', version: '>=2.40')
gio = dependency('gio-2.0', version: '>=2.40')
gio_unix = dependency('gio-unix-2.0', version: '>=2.40')
gmodule = dependency('gmodule-2.0', version: '>=2.40')
soup = dependency('libsoup-2.4', version: '>=2.44')
vala_defines = []
# provide 'OutputStream.write_all_async'
if gio.version().version_compare('>=2.44')
vala_defines += '--define=GIO_2_44'
endif
# new 'Soup.Server' API
if soup.version().version_compare('>=2.48')
vala_defines += '--define=SOUP_2_48'
endif
subdir('src')
subdir('tests')
subdir('docs')
if get_option('enable_examples')
subdir('examples')
endif