-
Notifications
You must be signed in to change notification settings - Fork 9
/
meson.build
executable file
·49 lines (38 loc) · 1.47 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
48
49
project('forecast',
version: '1.0.0',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2', 'werror=false', 'prefix=/app'],
)
APPLICATION_ID = 'dev.salaniLeo.forecast@0@'.format('')
PKGDATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), APPLICATION_ID)
PKGLIB_DIR = join_paths(get_option('prefix'), get_option('libdir'), APPLICATION_ID)
i18n = import('i18n')
gnome = import('gnome')
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'forecast')
subdir('data')
subdir('po')
subdir('share/icons')
python = import('python')
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').full_path())
conf.set('VERSION', meson.project_version())
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
bindir = join_paths(get_option('prefix'), 'bin')
py3 = python.find_installation('python3')
app_install_dir = py3.get_install_dir()
configure_file(
input: 'forecast.in',
output: 'forecast',
configuration: conf,
install: true,
install_dir: bindir
)
install_subdir('data/status', install_dir: join_paths(get_option('prefix'), 'share/icons/hicolor/scalable'))
install_subdir('Forecast', install_dir: app_install_dir)
install_subdir('data/status', install_dir: join_paths(app_install_dir, 'Forecast/data'))
gnome.post_install(
glib_compile_schemas: true,
update_desktop_database: true,
)