diff --git a/src/meson.build b/src/meson.build
index ccba7d495f902c38ddc7da3f2dd8fa262da29d86..e7cd8a0c71b19532cb6533eaa8ac7b2fc8b74fee 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -282,7 +282,10 @@ libjami = library('jami',
 libjami_dep = declare_dependency(
     include_directories: 'dring',
     link_with: libjami,
-    variables: {'video': conf.get('ENABLE_VIDEO')? 'true' : 'false'}
+    variables: {
+        'video': conf.get('ENABLE_VIDEO')? 'true' : 'false',
+        'plugins': conf.get('ENABLE_PLUGIN')? 'true' : 'false'
+    }
 )
 
 if get_option('interfaces').contains('library')
@@ -321,6 +324,9 @@ if get_option('interfaces').contains('library')
         url: 'https://jami.net/',
         subdirs: 'dring',
         filebase: 'jami',
-        variables: 'video=' + (conf.get('ENABLE_VIDEO')? 'true' : 'false')
+        variables: [
+            'video=' + (conf.get('ENABLE_VIDEO')? 'true' : 'false'),
+            'plugins=' + (conf.get('ENABLE_PLUGIN')? 'true' : 'false')
+        ]
     )
 endif