-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
36 lines (30 loc) · 917 Bytes
/
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
project('gst',
version: run_command(
'grep',
'APP_VERSION',
files('gst/conf.py')
).stdout().split(' = ')[1].strip().strip('"'),
meson_version: '>= 0.45.1'
)
# project version is defined in gst/conf.py
# Importing modules
# i18n = import('i18n')
python3 = import('python3')
python = import('python3')
prefix = get_option('prefix')
PKGDATA_DIR = join_paths(prefix, get_option('datadir'), meson.project_name())
DATA_DIR = PKGDATA_DIR
PYTHON_DIR = join_paths(prefix, python.sysconfig_path('purelib'))
message('Looking for dependencies')
python_bin = python.find_python()
if not python_bin.found()
error('No valid python3 binary found')
else
message('Found python3 binary')
endif
# Dependencies
dependency('gobject-introspection-1.0', version: '>= 1.56.0')
install_subdir('gst', install_dir: PYTHON_DIR)
subdir('data')
subdir('bin')
meson.add_install_script('scripts/meson_post_install.py')