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>
endif
subdir('gi')
-if get_option('default_library') != 'static'
- subdir('plugin')
-else
- warning('Python plugin not supported with `static` builds yet.')
+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')
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')