mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
gst-python: Add option to disable python plugin
It is not always needed, at least Ubuntu package it separately and don't install it by default. Also when doing a static build there is an unavoidable warning otherwise. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1337>
This commit is contained in:
parent
8e7ce64a6e
commit
ffcf697c2d
2 changed files with 7 additions and 4 deletions
|
@ -97,10 +97,12 @@ if get_option('default_library') == 'shared'
|
|||
endif
|
||||
|
||||
subdir('gi')
|
||||
if get_option('default_library') != 'static'
|
||||
if not get_option('plugin').disabled()
|
||||
if get_option('default_library') != 'static'
|
||||
subdir('plugin')
|
||||
else
|
||||
else
|
||||
warning('Python plugin not supported with `static` builds yet.')
|
||||
endif
|
||||
endif
|
||||
if not get_option('tests').disabled()
|
||||
subdir('testsuite')
|
||||
|
|
|
@ -4,3 +4,4 @@ option('libpython-dir', type : 'string', value : '',
|
|||
description: 'Path to find libpythonXX.so')
|
||||
option('python', type : 'string', value : 'python3')
|
||||
option('tests', type : 'feature', value : 'auto', yield : true)
|
||||
option('plugin', type : 'feature', value : 'auto')
|
||||
|
|
Loading…
Reference in a new issue