Add options to disable some modules

This commit is contained in:
Thibault Saunier 2016-10-26 17:03:18 -03:00
parent aca3e8c96e
commit 3875f0c705
2 changed files with 25 additions and 4 deletions

View file

@ -9,10 +9,6 @@ subprojects = [
'gstreamer', 'gstreamer',
'gst-plugins-base', 'gst-plugins-base',
'gst-plugins-good', '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 # 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'] subprojects += ['gst-python']
endif 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') python3 = find_program('python3')
symlink = ''' symlink = '''
import os import os

View file

@ -1 +1,6 @@
option('enable_python', type : 'boolean', value : false) 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)