forked from bilelmoussaoui/Hardcode-Tray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
51 lines (42 loc) · 1.17 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
50
51
project('hardcode-tray',
version: '4.3',
meson_version: '>= 0.40.0',
license: 'GPL-3.0',
default_options: ['prefix=/usr']
)
dependency('gobject-introspection-1.0')
dependency('gtk+-3.0')
i18n = import('i18n')
python = import('python3')
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('PACKAGE', meson.project_name())
conf.set('VERSION', meson.project_version())
subdir('data')
subdir('po')
install_subdir(
'HardcodeTray',
install_dir: PYTHON_DIR
)
configure_file(
input: 'const.py.in',
output: 'const.py',
configuration: conf,
install_dir: join_paths(PYTHON_DIR, 'HardcodeTray')
)
install_subdir(
'license',
install_dir: DATA_DIR
)
configure_file(
input: meson.project_name() + '.py.in',
output: meson.project_name(),
configuration: conf,
install_dir: join_paths(get_option('prefix'), get_option('bindir'))
)