mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
meson: add option to disable tests
This commit is contained in:
parent
0f86a27df9
commit
71a35e7c8b
3 changed files with 5 additions and 1 deletions
|
@ -142,6 +142,7 @@ gstrtsp_dep = dependency('gstreamer-rtsp-1.0', version : gst_req,
|
|||
fallback : ['gst-plugins-base', 'rtsp_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
|
||||
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
|
||||
|
|
|
@ -22,6 +22,7 @@ option('x264', type : 'feature', value : 'auto', description : 'H.264 video enco
|
|||
option('nls', type : 'feature', value : 'auto', yield: true,
|
||||
description : 'Enable native language support (translations)')
|
||||
option('orc', type : 'feature', value : 'auto', yield : true)
|
||||
option('tests', type : 'feature', value : 'auto', yield : true)
|
||||
option('gobject-cast-checks', type : 'feature', value : 'auto', yield : true,
|
||||
description: 'Enable run-time GObject cast checks (auto = enabled for development, disabled for stable releases')
|
||||
option('glib-asserts', type : 'feature', value : 'enabled', yield : true,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if host_machine.system() != 'windows'
|
||||
subdir('check')
|
||||
if not get_option('tests').disabled() and gstcheck_dep.found()
|
||||
subdir('check')
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue