mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +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,11 +97,13 @@ if get_option('default_library') == 'shared'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('gi')
|
subdir('gi')
|
||||||
|
if not get_option('plugin').disabled()
|
||||||
if get_option('default_library') != 'static'
|
if get_option('default_library') != 'static'
|
||||||
subdir('plugin')
|
subdir('plugin')
|
||||||
else
|
else
|
||||||
warning('Python plugin not supported with `static` builds yet.')
|
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')
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -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