-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
meson.build
38 lines (32 loc) · 1.2 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
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2020 igo95862
project('bubblejail',
version : '0.9.3',
meson_version : '>=1.3.0',
# Patch out these lines to install bubblejail's packages to site-packages
default_options : {
'python.purelibdir' : 'lib/bubblejail/python-packages',
'python.platlibdir' : 'lib/bubblejail/python-packages',
},
)
fs = import('fs')
pymod = import('python')
py_installation = pymod.find_installation('python3')
python_purelib_option = get_option('python.purelibdir')
if python_purelib_option == py_installation.get_path('purelib') or python_purelib_option == ''
extra_python_packages_dir = ''
else
extra_python_packages_dir = get_option('prefix') / python_purelib_option
message('Using non site-packages directory', extra_python_packages_dir)
endif
if get_option('use-vendored-python-lxns').enabled()
subproject('python-lxns', default_options : {'use_limited_api': true})
endif
python_package_env = environment()
python_package_env.set('MESON_SOURCE_ROOT', meson.project_source_root())
templates_dir = meson.current_source_dir() / 'templates'
subdir('src')
subdir('data')
subdir('docs')
subdir('tools')
subdir('test')