-
Notifications
You must be signed in to change notification settings - Fork 10
/
meson.build
40 lines (33 loc) · 830 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
40
project(
'com.github.ryonakano.pinit',
'vala', 'c',
version: '2.1.1',
meson_version: '>=0.58.0'
)
app_name = 'Pin It!'
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
gnome = import('gnome')
i18n = import('i18n')
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
)