mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
meson: add build options to disable tools and tests
This commit is contained in:
parent
4b68e3e658
commit
7be5b7b99e
3 changed files with 9 additions and 2 deletions
|
@ -283,6 +283,7 @@ gst_net_dep = dependency('gstreamer-net-1.0', version : gst_req,
|
||||||
fallback : ['gstreamer', 'gst_net_dep'])
|
fallback : ['gstreamer', 'gst_net_dep'])
|
||||||
if host_system != 'windows'
|
if host_system != 'windows'
|
||||||
gst_check_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'])
|
fallback : ['gstreamer', 'gst_check_dep'])
|
||||||
endif
|
endif
|
||||||
gst_controller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
|
gst_controller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
|
||||||
|
@ -356,7 +357,9 @@ subdir('gst-libs')
|
||||||
subdir('gst')
|
subdir('gst')
|
||||||
subdir('ext')
|
subdir('ext')
|
||||||
subdir('sys')
|
subdir('sys')
|
||||||
subdir('tools')
|
if not get_option('tools').disabled()
|
||||||
|
subdir('tools')
|
||||||
|
endif
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
subdir('pkgconfig')
|
subdir('pkgconfig')
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,8 @@ option('xvideo', type : 'feature', value : 'auto', description : 'X11 XVideo xvi
|
||||||
|
|
||||||
# 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('tools', type : 'feature', value : 'auto', yield : true)
|
||||||
option('gtk_doc', type : 'feature', value : 'auto', yield : true, description : 'Build API documentation with gtk-doc')
|
option('gtk_doc', type : 'feature', value : 'auto', yield : true, description : 'Build API documentation with gtk-doc')
|
||||||
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)')
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# FIXME: make check work on windows
|
# FIXME: make check work on windows
|
||||||
if host_machine.system() != 'windows'
|
if host_machine.system() != 'windows'
|
||||||
subdir('check')
|
if not get_option('tests').disabled() and gst_check_dep.found()
|
||||||
|
subdir('check')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
if not get_option('examples').disabled()
|
if not get_option('examples').disabled()
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
|
|
Loading…
Reference in a new issue