-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmeson.build
More file actions
60 lines (47 loc) · 1.45 KB
/
meson.build
File metadata and controls
60 lines (47 loc) · 1.45 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
project(
'cherrypick',
'c', 'vala',
version: '2.4.1',
license: 'GPL-3.0-or-later'
)
app_name = meson.project_name()
correct_app_id = 'io.github.elly_code.' + app_name
legacy_app_id = 'io.github.ellie_commons.' + app_name
if get_option('legacy-rdnn')
app_id = legacy_app_id
alternate_app_id = correct_app_id
app_path = '/io/github/ellie_commons/cherrypick'
else
app_id = correct_app_id
alternate_app_id = legacy_app_id
app_path = '/io/github/elly_code/cherrypick'
endif
app_version = meson.project_version()
#================================
# Include Gnome and the translations module
gnome = import('gnome')
i18n = import('i18n')
vala_flags = []
development_build = get_option('development')
if development_build
app_id += '.devel'
vala_flags += ['--define', 'DEVEL']
endif
# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (app_name), language:'c')
#================================
# config_data is reused accross all project to propagate variables we set once
config_data = configuration_data()
config_data.set('LOCALEDIR', get_option('prefix') / get_option('localedir'))
config_data.set('APP_NAME', app_name)
config_data.set('APP_ID', app_id)
config_data.set('APP_PATH', app_path)
config_data.set('APP_VERSION', app_version)
subdir('po')
subdir('data')
subdir('src')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)