mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
meson: Fix disabling of the python support
Cannot call python.dependency() if the python module was not found.
This commit is contained in:
parent
35d140ad92
commit
eb1345703d
1 changed files with 5 additions and 1 deletions
|
@ -129,7 +129,11 @@ has_python = false
|
|||
if build_gir
|
||||
pymod = import('python')
|
||||
python = pymod.find_installation(required: get_option('python'))
|
||||
python_dep = python.dependency(required : get_option('python'))
|
||||
if python.found()
|
||||
python_dep = python.dependency(required : get_option('python'))
|
||||
else
|
||||
python_dep = dependency('', required: false)
|
||||
endif
|
||||
if python_dep.found()
|
||||
python_abi_flags = python.get_variable('ABIFLAGS', '')
|
||||
pylib_loc = get_option('libpython-dir')
|
||||
|
|
Loading…
Reference in a new issue