mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
meson: Add a feature option for tests
This autodetection is needed on iOS inside Cerbero where gstreamer-check-1.0 is not available.
This commit is contained in:
parent
67f2be1987
commit
efa220a615
3 changed files with 6 additions and 4 deletions
|
@ -77,7 +77,8 @@ gstbase_dep = dependency('gstreamer-base-1.0', version : gst_req,
|
||||||
fallback : ['gstreamer', 'gst_base_dep'])
|
fallback : ['gstreamer', 'gst_base_dep'])
|
||||||
if host_machine.system() != 'windows'
|
if host_machine.system() != 'windows'
|
||||||
gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
|
gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
|
||||||
fallback : ['gstreamer', 'gst_check_dep'], required: false)
|
required : get_option('tests'),
|
||||||
|
fallback : ['gstreamer', 'gst_check_dep'])
|
||||||
endif
|
endif
|
||||||
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
|
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
|
||||||
fallback : ['gstreamer', 'gst_controller_dep'])
|
fallback : ['gstreamer', 'gst_controller_dep'])
|
||||||
|
|
|
@ -2,5 +2,7 @@ option('gtk_doc', type : 'feature', value : 'auto', yield : true,
|
||||||
description : 'Build API documentation with gtk-doc')
|
description : 'Build API documentation with gtk-doc')
|
||||||
option('introspection', type : 'feature', value : 'auto', yield : true,
|
option('introspection', type : 'feature', value : 'auto', yield : true,
|
||||||
description : 'Generate gobject-introspection bindings')
|
description : 'Generate gobject-introspection bindings')
|
||||||
|
option('tests', type : 'feature', value : 'auto', yield : true,
|
||||||
|
description : 'Build and enable unit tests')
|
||||||
option('pygi-overrides-dir', type : 'string', value : '',
|
option('pygi-overrides-dir', type : 'string', value : '',
|
||||||
description: 'Path to pygobject overrides directory')
|
description: 'Path to pygobject overrides directory')
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# FIXME: make check work on windows
|
# FIXME: make check work on windows
|
||||||
if host_machine.system() != 'windows'
|
if host_machine.system() != 'windows' and gstcheck_dep.found()
|
||||||
subdir('check')
|
subdir('check')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('validate')
|
subdir('validate')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue