mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
meson: Cleanup and avoid installing python bindings if python is not found
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3929>
This commit is contained in:
parent
da11e6610e
commit
90d3106192
2 changed files with 7 additions and 6 deletions
|
@ -112,7 +112,7 @@ libs_doc = [hotdoc.generate_doc('gst-editing-services',
|
||||||
)]
|
)]
|
||||||
|
|
||||||
plugins_doc = []
|
plugins_doc = []
|
||||||
list_plugin_res = run_command(python3, '-c',
|
list_plugin_res = run_command(python, '-c',
|
||||||
'''
|
'''
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -259,7 +259,6 @@ foreach extra_arg : warning_flags
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
python3 = import('python').find_installation()
|
|
||||||
pkgconfig = import('pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
pkgconfig_subdirs = ['gstreamer-1.0']
|
pkgconfig_subdirs = ['gstreamer-1.0']
|
||||||
|
|
||||||
|
@ -277,14 +276,16 @@ endif
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
||||||
pygi_override_dir = get_option('pygi-overrides-dir')
|
pygi_override_dir = get_option('pygi-overrides-dir')
|
||||||
if pygi_override_dir == ''
|
if pygi_override_dir == '' and python.found()
|
||||||
pygi_override_dir = python3.get_install_dir(
|
pygi_override_dir = python.get_install_dir(
|
||||||
subdir : join_paths('gi', 'overrides')
|
subdir : join_paths('gi', 'overrides')
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
message('pygobject overrides directory = @0@'.format(pygi_override_dir))
|
if python.found()
|
||||||
subdir('bindings/python')
|
message('pygobject overrides directory = @0@'.format(pygi_override_dir))
|
||||||
|
subdir('bindings/python')
|
||||||
|
endif
|
||||||
|
|
||||||
# Set release date
|
# Set release date
|
||||||
if gst_version_nano == 0
|
if gst_version_nano == 0
|
||||||
|
|
Loading…
Reference in a new issue