mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
meson: Add an option for tests
This is needed because we don't always have gstreamer-check available, for instance inside Cerbero on iOS.
This commit is contained in:
parent
694d9dcde5
commit
5c462b9b12
3 changed files with 6 additions and 2 deletions
|
@ -374,6 +374,7 @@ gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
|
||||||
fallback : ['gst-plugins-base', 'video_dep'])
|
fallback : ['gst-plugins-base', 'video_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,
|
||||||
|
required : get_option('tests'),
|
||||||
fallback : ['gstreamer', 'gst_check_dep'])
|
fallback : ['gstreamer', 'gst_check_dep'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,7 @@ option('hls-crypto', type : 'combo', value : 'auto', choices : ['auto', 'nettle'
|
||||||
|
|
||||||
# Common feature options
|
# Common feature options
|
||||||
option('examples', type : 'feature', value : 'auto', yield : true)
|
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('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('nls', type : 'feature', value : 'auto', yield: true, description : 'Enable native language support (translations)')
|
||||||
option('orc', type : 'feature', value : 'auto', yield : true)
|
option('orc', type : 'feature', value : 'auto', yield : true)
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# FIXME: make check work on windows
|
# FIXME: make check work on windows
|
||||||
if host_machine.system() != 'windows'
|
if host_system != 'windows'
|
||||||
|
if not get_option('tests').disabled() and gstcheck_dep.found()
|
||||||
subdir('check')
|
subdir('check')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
if not get_option('examples').disabled()
|
if not get_option('examples').disabled()
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue