-
Notifications
You must be signed in to change notification settings - Fork 11
/
meson.build
44 lines (37 loc) · 1.24 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
project('hyperplane',
version: '0.5.1-beta',
meson_version: '>= 0.62.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
gnome = import('gnome')
python = import('python')
py_installation = python.find_installation('python3')
python_dir = join_paths(get_option('prefix'), py_installation.get_install_dir())
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
profile = get_option('profile')
if profile == 'development'
app_id = 'page.kramo.Hyperplane.Devel'
prefix = '/page/kramo/Hyperplane/Devel'
elif profile == 'release'
app_id = 'page.kramo.Hyperplane'
prefix = '/page/kramo/Hyperplane'
endif
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').full_path())
conf.set('VERSION', meson.project_version())
conf.set('APP_ID', app_id)
conf.set('PREFIX', prefix)
conf.set('PROFILE', profile)
conf.set('localedir', get_option('prefix') / get_option('localedir'))
conf.set('pkgdatadir', pkgdatadir)
conf.set('bindir', get_option('bindir'))
conf.set('prefix', get_option('prefix'))
subdir('data')
subdir('hyperplane')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)