-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
66 lines (56 loc) · 1.76 KB
/
meson.build
File metadata and controls
66 lines (56 loc) · 1.76 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
54
55
56
57
58
59
60
61
62
63
64
65
66
project(
'gxml',
['c', 'vala'],
version: '0.22.0',
meson_version: '>=1.2.0',
default_options: [
'buildtype=debugoptimized',
'warning_level=2',
'b_ndebug=if-release',
],
)
pkgconfig = import('pkgconfig')
PROJECT_NAME = meson.project_name ()
API_VERSION = '0.22'
PROJECT_VERSION = meson.project_version ()
VERSIONED_PROJECT_NAME = PROJECT_NAME+'-'+API_VERSION
CAMEL_CASE_NAME = 'GXml'
VERSIONED_CAMEL_CASE_NAME = CAMEL_CASE_NAME +'-'+ API_VERSION
gee = dependency('gee-0.8', version:'>=0.20.5')
gee_girdir = gee.get_variable('datadir') / 'gir-1.0'
gee_vapidir = gee.get_variable('datadir') / 'vala' / 'vapi'
add_project_arguments(['--vapidir', gee_vapidir], language: 'vala')
c_compiler = meson.get_compiler('c')
intl_dep = declare_dependency()
if not c_compiler.has_function('bindtextdomain', prefix : '#include <libintl.h>')
intl_dep = c_compiler.find_library('intl', required: true)
endif
libgxml_deps = [
dependency('libxml-2.0', version: '>=2.9.14'),
dependency('gio-2.0', version: '>=2.80'),
intl_dep,
gee
]
VALADEPS = 'gee-0.8\ngio-2.0\nlibxml-2.0'
PCDEPS = 'gee-0.8 gio-2.0 libxml-2.0'
inc_rooth = include_directories ('.')
inc_rooth_dep = declare_dependency (include_directories : inc_rooth)
docs_requested = not get_option('docs').disabled()
docs_enabled = false
introspection_requested = not get_option('introspection').disabled()
introspection_enabled = false
subdir('po')
subdir('vapi')
subdir('gxml')
if docs_requested
subdir('docs')
endif
subdir('test')
subdir('examples')
summary({
'API docs requested': docs_requested,
'API docs available': docs_enabled,
'Introspection requested': introspection_requested,
'Introspection available': introspection_enabled,
'Experimental classes': get_option('experimental'),
}, section: 'gxml build')