-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
52 lines (43 loc) · 1.39 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
project(
'com.fyralabs.Catalogue', ['c', 'vala'],
version: '1.0.0',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2', ],
)
application_id = 'com.fyralabs.Catalogue'
if get_option('development')
app_id = 'com.fyralabs.Catalogue'
name_suffix = ' (Development)'
else
app_id = 'com.fyralabs.Catalogue'
name_suffix = ''
endif
conf = configuration_data()
conf.set_quoted('APP_ID', app_id)
conf.set_quoted('NAME_SUFFIX', name_suffix)
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('APP_SETTINGS', application_id + '.Settings')
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
conf.set_quoted('API_URL', get_option('api_url'))
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
vapi_dir = join_paths(meson.project_source_root(), 'vapi')
add_project_arguments(
['--vapidir', vapi_dir],
language: 'vala'
)
asresources = gnome.compile_resources(
'as-resources', join_paths(meson.project_source_root(), 'data', application_id + '.gresource.xml'),
source_dir: join_paths(meson.project_source_root(), 'data'),
c_name: 'as'
)
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)