-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmeson.build
39 lines (32 loc) · 831 Bytes
/
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
project('com.github.ryonakano.konbucase',
'vala', 'c',
version: '4.3.1',
meson_version: '>=0.58.0'
)
app_name = 'KonbuCase'
app_id = meson.project_name()
app_version = meson.project_version()
if get_option('development')
app_name += ' (Development)'
app_id += '.Devel'
ret = run_command('git', 'rev-parse', '--short', 'HEAD', check: false)
if ret.returncode() != 0
version_suffix = '-devel'
else
version_suffix = '-@0@'.format(ret.stdout().strip())
endif
app_version += version_suffix
endif
i18n = import('i18n')
gnome = import('gnome')
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
language: 'c'
)
subdir('data')
subdir('po')
subdir('src')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true
)