-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
meson.build
84 lines (72 loc) · 2.16 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
project(
'io.elementary.mail',
'vala', 'c',
version: '8.0.0',
meson_version: '>=0.58.0'
)
gnome = import('gnome')
i18n = import('i18n')
add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala')
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
granite_dep = dependency('granite', version: '>= 6.0.0')
gee_dep = dependency('gee-0.8')
handy_dep = dependency('libhandy-1', version: '>=1.1.90')
camel_dep = dependency('camel-1.2', version: '>= 3.28')
libedataserver_dep = dependency('libedataserver-1.2', version: '>= 3.28')
libedataserverui_dep = dependency('libedataserverui-1.2', version: '>=3.45.1')
webkit2_dep = dependency('webkit2gtk-4.1')
webkit2_web_extension_dep = dependency('webkit2gtk-web-extension-4.1')
libportal_dep = dependency('libportal')
libportal_gtk_dep = dependency('libportal-gtk3')
folks_dep = dependency('folks')
m_dep = meson.get_compiler('c').find_library('m')
webkit2_extension_path = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'webkit2')
dependencies = [
glib_dep,
gobject_dep,
granite_dep,
gee_dep,
handy_dep,
camel_dep,
libedataserver_dep,
libedataserverui_dep,
libportal_dep,
libportal_gtk_dep,
webkit2_dep,
folks_dep,
m_dep
]
asresources = gnome.compile_resources(
'as-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
extension_dependencies = [
glib_dep,
gobject_dep,
gee_dep,
webkit2_web_extension_dep
]
add_global_arguments([
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
'-DHANDY_USE_UNSTABLE_API'
],
language:'c'
)
gnome.post_install(glib_compile_schemas: true)
config_data = configuration_data()
config_data.set('GETTEXT_PACKAGE', meson.project_name())
config_data.set('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
config_file = configure_file(
input: 'Config.vala.in',
output: '@BASENAME@',
configuration: config_data
)
subdir('src')
subdir('webkit-extension')
subdir('data')
subdir('po')
if get_option('documentation')
subdir('docs')
endif