forked from htkhiem/euphonica
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
38 lines (33 loc) · 833 Bytes
/
meson.build
File metadata and controls
38 lines (33 loc) · 833 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
30
31
32
33
34
35
36
37
38
project('euphonica', 'rust',
version: '0.96.1',
meson_version: '>= 0.62.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
gnome = import('gnome')
fs = import('fs')
if get_option('profile') == 'dev'
profile = '.Devel'
if fs.is_dir('.git')
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
version_suffix = '-@0@'.format(vcs_tag)
endif
else
version_suffix = '-devel'
endif
else
profile = ''
version_suffix = ''
endif
application_id = 'io.github.htkhiem.Euphonica@0@'.format(profile)
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)