From 3875f0c705290fca31a1e83586a25a17645c6713 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 26 Oct 2016 17:03:18 -0300 Subject: [PATCH] Add options to disable some modules --- meson.build | 24 ++++++++++++++++++++---- meson_options.txt | 5 +++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index a5bf87834b..f8bc506bd5 100644 --- a/meson.build +++ b/meson.build @@ -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 diff --git a/meson_options.txt b/meson_options.txt index a3a3ebc0c6..63d41bf708 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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)