mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +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
bfcddb7125
commit
ebcf3f5f63
3 changed files with 10 additions and 6 deletions
|
@ -211,12 +211,13 @@ gstbase_dep = dependency('gstreamer-base-1.0', version : gst_req,
|
|||
fallback : ['gstreamer', 'gst_base_dep'])
|
||||
gstnet_dep = dependency('gstreamer-net-1.0', version : gst_req,
|
||||
fallback : ['gstreamer', 'gst_net_dep'])
|
||||
if host_system != 'windows'
|
||||
gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
|
||||
fallback : ['gstreamer', 'gst_check_dep'])
|
||||
endif
|
||||
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
|
||||
fallback : ['gstreamer', 'gst_controller_dep'])
|
||||
if host_system != 'windows'
|
||||
gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
|
||||
required : get_option('tests'),
|
||||
fallback : ['gstreamer', 'gst_check_dep'])
|
||||
endif
|
||||
|
||||
gstpbutils_dep = dependency('gstreamer-pbutils-1.0', version : gst_req,
|
||||
fallback : ['gst-plugins-base', 'pbutils_dep'])
|
||||
|
|
|
@ -80,6 +80,7 @@ option('v4l2-gudev', type : 'feature', value : 'auto', description : 'Use libgud
|
|||
|
||||
# Common feature options
|
||||
option('examples', type : 'feature', value : 'auto', yield : true)
|
||||
option('tests', type : 'feature', value : 'auto', yield : true)
|
||||
option('nls', type : 'feature', value : 'auto', yield: true, description : 'Enable native language support (translations)')
|
||||
option('orc', type : 'feature', value : 'auto', yield : true)
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# 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
|
||||
|
||||
subdir('icles')
|
||||
|
|
Loading…
Reference in a new issue