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,11 +97,13 @@ if get_option('default_library') == 'shared'
|
|||
endif
|
||||
|
||||
subdir('gi')
|
||||
if not get_option('plugin').disabled()
|
||||
if get_option('default_library') != 'static'
|
||||
subdir('plugin')
|
||||
else
|
||||
warning('Python plugin not supported with `static` builds yet.')
|
||||
endif
|
||||
endif
|
||||
if not get_option('tests').disabled()
|
||||
subdir('testsuite')
|
||||
endif
|
||||
|
|
|
@ -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