gst_video_dep = dependency('gstreamer-video-' + apiversion, version : gst_req,
fallback : ['gst-plugins-base', 'video_dep'])
if host_machine.system() != 'windows'
- gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
+ gst_check_dep = dependency('gstreamer-check-1.0', version : gst_req,
+ required : get_option('tests'),
fallback : ['gstreamer', 'gst_check_dep'])
endif
description : 'Build API documentation with gtk-doc')
option('introspection', type : 'feature', value : 'auto', yield : true,
description : 'Generate gobject-introspection bindings')
+option('tests', type : 'feature', value : 'auto', yield : true,
+ description : 'Build and enable unit tests')
endif
endif
subdir('pkgconfig')
-subdir('tests')
+if not get_option('tests').disabled()
+ subdir('tests')
+endif
subdir('plugins')
#subdir('po')
'validate/test-utils.c',
c_args : gst_c_args + test_defines,
include_directories : [inc_dirs],
- dependencies : [validate_dep, gstcheck_dep],
+ dependencies : [validate_dep, gst_check_dep],
)
env.set('GST_REGISTRY',
'@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
# FIXME: make check work on windows
-if host_machine.system() != 'windows'
-subdir('check')
+if host_machine.system() != 'windows' and gst_check_dep.found()
+ subdir('check')
endif
subdir('launcher_tests')