python:meson: Do not build plugin when statically built
authorThibault Saunier <tsaunier@igalia.com>
Wed, 22 Sep 2021 16:12:07 +0000 (13:12 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 15 Oct 2021 23:27:35 +0000 (20:27 -0300)
It is not supported yet

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1093>

subprojects/gst-python/meson.build

index f6e2491..7ae77b1 100644 (file)
@@ -97,7 +97,11 @@ if get_option('default_library') == 'shared'
 endif
 
 subdir('gi')
-subdir('plugin')
+if get_option('default_library') != 'static'
+  subdir('plugin')
+else
+  warning('Python plugin not supported with `static` builds yet.')
+endif
 if not get_option('tests').disabled()
   subdir('testsuite')
 endif