-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
29 lines (24 loc) · 773 Bytes
/
meson.build
File metadata and controls
29 lines (24 loc) · 773 Bytes
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
project('liburiparser-gobject', 'c',
version: '1.0.0-beta.5',
meson_version: '>= 0.50.0',
)
gnome = import('gnome')
deps = [
dependency('liburiparser', version: '>= 0.9'),
dependency('glib-2.0', version: '>= 2.60'),
dependency('gobject-2.0', version: '>= 2'),
dependency('gio-2.0', version: '>= 2'),
]
add_global_arguments('-DLIBURIPARSER_GOBJECT_COMPILATION',
language: 'c',
)
version_conf = configuration_data()
version_split = meson.project_version().split('-')[0].split('.')
version_conf.set('VERSION', meson.project_version())
version_conf.set('MAJOR_VERSION', version_split[0])
version_conf.set('MINOR_VERSION', version_split[1])
version_conf.set('PATCH_VERSION', version_split[2])
subdir('src')
subdir('docs')
subdir('tests')
subdir('demo')