-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
39 lines (31 loc) · 940 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
38
39
project('envoye',
version: '0.1.0',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2',
],
)
i18n = import('i18n')
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'envoye')
gnome = import('gnome')
python = import('python')
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').path())
conf.set('VERSION', meson.project_version())
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
configure_file(
input: 'envoye.in',
output: 'envoye',
configuration: conf,
install: true,
install_dir: get_option('bindir')
)
install_subdir('envoye', install_dir: pkgdatadir)
subdir('data')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)