mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +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
|
endif
|
||||||
|
|
||||||
subdir('gi')
|
subdir('gi')
|
||||||
if get_option('default_library') != 'static'
|
if not get_option('plugin').disabled()
|
||||||
subdir('plugin')
|
if get_option('default_library') != 'static'
|
||||||
else
|
subdir('plugin')
|
||||||
warning('Python plugin not supported with `static` builds yet.')
|
else
|
||||||
|
warning('Python plugin not supported with `static` builds yet.')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
if not get_option('tests').disabled()
|
if not get_option('tests').disabled()
|
||||||
subdir('testsuite')
|
subdir('testsuite')
|
||||||
|
|
|
@ -4,3 +4,4 @@ option('libpython-dir', type : 'string', value : '',
|
||||||
description: 'Path to find libpythonXX.so')
|
description: 'Path to find libpythonXX.so')
|
||||||
option('python', type : 'string', value : 'python3')
|
option('python', type : 'string', value : 'python3')
|
||||||
option('tests', type : 'feature', value : 'auto', yield : true)
|
option('tests', type : 'feature', value : 'auto', yield : true)
|
||||||
|
option('plugin', type : 'feature', value : 'auto')
|
||||||
|
|
Loading…
Reference in a new issue