forked from bilelmoussaoui/Authenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
47 lines (36 loc) · 1.15 KB
/
meson.build
File metadata and controls
47 lines (36 loc) · 1.15 KB
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('com.github.bilelmoussaoui.Authenticator',
version: '0.2.1',
meson_version: '>= 0.40',
license: 'GPL+-3.0',
default_options: ['prefix=/usr']
)
python = import('python3')
gnome = import('gnome')
i18n = import('i18n')
message('Looking for dependencies')
dependency('glib-2.0')
dependency('gobject-2.0')
dependency('gobject-introspection-1.0')
dependency('gtk+-3.0', version : '>=3.16')
PYTHON_DIR = join_paths(get_option('prefix'), python.sysconfig_path('purelib'))
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
LOCALE_DIR = join_paths(get_option('prefix'), get_option('localedir'))
# Configuration params
conf = configuration_data()
conf.set('DATA_DIR', DATA_DIR)
conf.set('LOCALE_DIR', LOCALE_DIR)
conf.set('PYTHON_DIR', PYTHON_DIR)
conf.set('VERSION', meson.project_version())
subdir('data')
subdir('po')
install_subdir(
'Authenticator',
install_dir: PYTHON_DIR
)
configure_file(
input: 'authenticator.py.in',
output: 'authenticator',
configuration: conf,
install_dir: join_paths(get_option('prefix'), get_option('bindir'))
)
meson.add_install_script('tools/build/meson_post_install.py')