forked from workbenchdev/Workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
37 lines (32 loc) · 798 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
project('Workbench', ['vala', 'c', 'rust'],
version: '47.0',
meson_version: '>= 0.64.0',
license: 'GPL-3.0-only',
default_options : [
'libdir=lib',
],
)
gnome = import('gnome')
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 = prefix / 'bin'
datadir = prefix / get_option('datadir')
pkgdatadir = datadir / app_id
subdir('data')
subdir('src')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)