fallback : ['gst-plugins-base', 'video_dep'])
if host_machine.system() != 'windows'
gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
+ required : get_option('tests'),
fallback : ['gstreamer', 'gst_check_dep'])
endif
# Common feature options
option('examples', type : 'feature', value : 'auto', yield : true)
+option('tests', type : 'feature', value : 'auto', yield : true)
option('introspection', type : 'feature', value : 'auto', yield : true, description : 'Generate gobject-introspection bindings')
option('nls', type : 'feature', value : 'auto', yield: true, description : 'Enable native language support (translations)')
option('orc', type : 'feature', value : 'auto', yield : true)
# FIXME: make check work on windows
-if host_machine.system() != 'windows'
- subdir('check')
+if host_system != 'windows'
+ if not get_option('tests').disabled() and gstcheck_dep.found()
+ subdir('check')
+ endif
endif
if not get_option('examples').disabled()
subdir('examples')