-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
66 lines (56 loc) · 1.83 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
project('lollypop',
version: '1.3.6',
meson_version: '>= 0.46.0'
)
revision = run_command('bin/revision.sh').stdout().strip()
if revision == ''
revision=meson.project_version()
endif
i18n = import('i18n')
py_mod = import('python')
project_id = 'org.gnome.Lollypop'
message('Looking for dependencies')
py_installation = py_mod.find_installation('python3')
if not py_installation.found()
error('No valid python3 binary found')
else
message('Found python3 binary')
endif
# Dependencies
dependency('gobject-introspection-1.0', version: '>= 1.35.0')
dependency('gtk+-3.0', version: '>= 3.22')
dependency('libsoup-2.4')
dependency('glib-2.0')
dependency('pygobject-3.0', version: '>= 3.29.1')
python_dir = join_paths(get_option('prefix'), py_installation.get_install_dir())
LIBEXEC_DIR = join_paths(get_option('prefix'), get_option('libexecdir'))
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
bindir = join_paths(get_option('prefix'), get_option('bindir'))
conf = configuration_data()
conf.set('PACKAGE_URL', 'https://wiki.gnome.org/Apps/Lollypop')
conf.set('DATA_DIR', DATA_DIR)
conf.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
conf.set('PYTHON_DIR', python_dir)
#conf.set('PYTHON_EXEC_DIR', join_paths(get_option('prefix'), py_installation.get_path('stdlib')))
conf.set('libexecdir', LIBEXEC_DIR)
conf.set('VERSION', meson.project_version())
conf.set('REVISION', revision)
subdir('data')
subproject('po')
subdir('search-provider')
install_subdir(
'lollypop',
install_dir: python_dir
)
#install_subdir(
# 'thirdparty',
# install_dir: join_paths(python_dir, 'lollypop')
#)
message('Preparing init file')
configure_file(
input: 'lollypop.in',
output: 'lollypop',
configuration: conf,
install_dir: bindir
)
meson.add_install_script('meson_post_install.py')