gst-python: Add option to disable python plugin
[platform/upstream/gstreamer.git] / subprojects / gst-python / meson.build
index 682a0e8..56b4834 100644 (file)
@@ -97,10 +97,12 @@ if get_option('default_library') == 'shared'
 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')