forked from valum-framework/vsgi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
53 lines (43 loc) · 1.67 KB
/
meson.build
File metadata and controls
53 lines (43 loc) · 1.67 KB
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
49
50
51
52
53
project('vsgi', 'vala', 'c',
version: '0.4.0-dev',
license: 'LGPL',
meson_version: '>=0.46.0')
api_version = '0.4'
add_project_arguments(['--enable-experimental',
'--enable-deprecated',
'--vapidir', join_paths(meson.current_source_dir(), 'vapi')],
language: 'vala')
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')
libsystemd = dependency('libsystemd', required: false)
openssl = dependency('openssl')
posix = meson.get_compiler('vala').find_library('posix')
# provide structured logging
if glib.version().version_compare('>=2.50')
add_project_arguments('--define=GLIB_2_50', language: 'vala')
endif
# provide 'OutputStream.write_all_async' and 'SimpleIOStream'
if gio.version().version_compare('>=2.44')
add_project_arguments('--define=GIO_2_44', language: 'vala')
endif
# new 'Soup.Server' API
if soup.version().version_compare('>=2.48')
add_project_arguments('--define=SOUP_2_48', language: 'vala')
endif
# 'Soup.ClientContext.steal_connection'
if soup.version().version_compare('>=2.50')
add_project_arguments('--define=SOUP_2_50', language: 'vala')
endif
if libsystemd.found()
add_project_arguments('--define=LIBSYSTEMD', language: 'vala')
endif
if meson.get_compiler('c').has_function('memmem')
add_project_arguments('--define=HAVE_MEMMEM', language: 'vala')
endif
subdir('src')
subdir('bin')
subdir('tests')