-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmeson.build
46 lines (39 loc) · 1.01 KB
/
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
41
42
43
44
45
46
project('forge-sparks',
version: '0.4.0',
meson_version: '>= 0.63.0',
license: 'GPL-3.0'
)
if get_option('profile') == 'development'
profile = 'Devel'
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
profile = ''
version_suffix = ''
endif
application_id = 'com.mardojai.ForgeSparks@0@'.format(profile)
version = meson.project_version() + version_suffix
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
libdir = prefix / get_option('libdir')
datadir = prefix / get_option('datadir')
pkgdatadir = datadir / application_id
gnome = import('gnome')
i18n = import('i18n')
subdir('data')
subdir('src')
subdir('po')
install_symlink(
meson.project_name(),
pointing_to: pkgdatadir / application_id,
install_dir: bindir
)
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)