-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
59 lines (51 loc) · 1.45 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
# SPDX-FileCopyrightText: d-k-bo <[email protected]>
# SPDX-License-Identifier: CC0-1.0
project(
'televido',
'rust',
version: '0.4.0',
meson_version: '>= 0.61.0',
)
i18n = import('i18n')
gnome = import('gnome')
BASE_APP_ID = 'de.k_bo.Televido'
if get_option('profile') == 'development'
PROFILE = 'Devel'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
version_suffix = '-@0@'.format(vcs_tag)
endif
APP_ID = '@0@.@1@'.format(BASE_APP_ID, PROFILE)
else
PROFILE = ''
version_suffix = ''
APP_ID = BASE_APP_ID
endif
meson.add_dist_script(
'build-aux/dist-vendor.sh',
meson.project_build_root() / 'meson-dist' / meson.project_name() + '-' + meson.project_version(),
meson.project_source_root(),
)
CONFIG = {
'PROJECT_NAME': meson.project_name(),
'VERSION': meson.project_version() + version_suffix,
'PROFILE': PROFILE,
'APP_ID': APP_ID,
'BASE_APP_ID': BASE_APP_ID,
'APP_NAME': 'Televido',
'AUTHOR': 'David Cabot',
'PROJECT_URL': 'https://github.com/d-k-bo/televido',
'ISSUE_URL': 'https://github.com/d-k-bo/televido/issues',
'LOCALEDIR': get_option('prefix') / get_option('localedir'),
'PKGDATADIR': get_option('prefix') / get_option('datadir') / meson.project_name(),
}
subdir('data')
subdir('po')
subdir('src')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)