Add options to disable some modules
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 26 Oct 2016 20:03:18 +0000 (17:03 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 26 Oct 2016 20:03:18 +0000 (17:03 -0300)
meson.build
meson_options.txt

index a5bf878..f8bc506 100644 (file)
@@ -9,10 +9,6 @@ subprojects = [
     'gstreamer',
     'gst-plugins-base',
     'gst-plugins-good',
-    'gst-plugins-ugly',
-    'gst-plugins-bad',
-    'gst-devtools',
-    'gst-editing-services'
 ]
 
 # FIXME Remove that check once we have ffmpeg as a gst-libav subproject
@@ -41,6 +37,26 @@ if get_option('enable_python')
     subprojects += ['gst-python']
 endif
 
+if not get_option('disable_gst_plugins_ugly')
+    subprojects += ['gst-plugins-ugly']
+endif
+
+if not get_option('disable_gst_plugins_bad')
+    subprojects += ['gst-plugins-bad']
+endif
+
+if not get_option('disable_gst_libav')
+    subprojects += ['gst-libav']
+endif
+
+if not get_option('disable_gst_devtools')
+    subprojects += ['gst-devtools']
+endif
+
+if not get_option('disable_gst_editing_services')
+    subprojects += ['gst-editing-services']
+endif
+
 python3 = find_program('python3')
 symlink = '''
 import os
index a3a3ebc..63d41bf 100644 (file)
@@ -1 +1,6 @@
 option('enable_python', type : 'boolean', value : false)
+option('disable_gst_libav', type : 'boolean', value : false)
+option('disable_gst_plugins_ugly', type : 'boolean', value : false)
+option('disable_gst_plugins_bad', type : 'boolean', value : false)
+option('disable_gst_devtools', type : 'boolean', value : false)
+option('disable_gst_editing_services', type : 'boolean', value : false)