-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
39 lines (32 loc) · 1.11 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
project('MiAZ',
version: '0.1.0-rc1+build.1',
meson_version: '>= 0.61.2',
default_options: [ 'warning_level=2',
],
)
python = import('python')
i18n = import('i18n')
profile = get_option('profile')
if profile == 'development'
app_id = 'io.github.t00m.MiAZ.Devel'
prefix = '/io/github/t00m/MiAZ/Devel'
elif profile == 'release'
app_id = 'io.github.t00m.MiAZ'
prefix = '/io/github/t00m/MiAZ'
endif
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'MiAZ')
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('REVISION', revision)
conf.set('PROFILE', profile)
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
subdir('data')
subdir('MiAZ')
subdir('po')
meson.add_install_script('build-aux/meson/postinstall.py')