meson: Add an option to enable/disable validate integration

This commit is contained in:
Thibault Saunier 2020-02-24 12:21:11 -03:00
parent 9cf986c71c
commit 9ec1ebfbdf
2 changed files with 3 additions and 1 deletions

View file

@ -92,7 +92,7 @@ if host_machine.system() != 'windows'
endif
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
fallback : ['gstreamer', 'gst_controller_dep'])
gstvalidate_dep = dependency('gst-validate-1.0', version : gst_req, required : false,
gstvalidate_dep = dependency('gst-validate-1.0', version : gst_req, required : get_option('validate'),
fallback : ['gst-devtools', 'validate_dep'])
gio_dep = dependency('gio-2.0', fallback: ['glib', 'libgio_dep'])

View file

@ -12,3 +12,5 @@ option('python', type : 'feature', value : 'auto', yield: true,
description: 'Enable python formatters.')
option('libpython-dir', type : 'string', value : '',
description: 'Path to find libpythonXX.so')
option('validate', type : 'feature', value : 'auto', yield: true,
description: 'Enable GstValidate integration.')