forked from mrvladus/Errands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
47 lines (40 loc) · 1.27 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
47
project(
'errands',
version: '45.1.9',
meson_version: '>= 0.62.0',
)
dependency('libadwaita-1', version: '>= 1.4')
dependency('libsecret-1')
dependency('gtksourceview-5')
dependency('pygobject-3.0')
dependency('goa-1.0', required: false)
i18n = import('i18n')
gnome = import('gnome')
python = import('python')
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'errands')
profile = get_option('profile')
if profile == 'development'
app_id = 'io.github.mrvladus.List.Devel'
prefix = '/io/github/mrvladus/List/Devel'
elif profile == 'release'
app_id = 'io.github.mrvladus.List'
prefix = '/io/github/mrvladus/List'
endif
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').full_path())
conf.set('PYTHON_VERSION', python.find_installation('python3').language_version())
conf.set('APP_ID', app_id)
conf.set('PREFIX', prefix)
conf.set('VERSION', meson.project_version())
conf.set('PROFILE', profile)
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
subdir('data')
subdir('errands')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)