forked from workbenchdev/Workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
36 lines (31 loc) · 811 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
project('Workbench', ['vala', 'c'],
version: '45.0',
meson_version: '>= 0.59.0',
license: 'GPL-3.0-only'
)
gnome = import('gnome')
i18n = import('i18n')
if get_option('profile') == 'development'
app_id = 're.sonny.Workbench.Devel'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
version_suffix = '-@0@'.format(vcs_tag)
endif
else
app_id = 're.sonny.Workbench'
version_suffix = ''
endif
prefix = get_option('prefix')
bindir = join_paths(prefix, 'bin')
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, app_id)
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)