mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
meson: add options to disable tests, examples, benchmarks and tools
And remove duplicate option 'poisoning' and unused 'build_tools' one.
This commit is contained in:
parent
7ef5b28e40
commit
e5ad55d649
3 changed files with 15 additions and 6 deletions
|
@ -460,7 +460,9 @@ endif
|
||||||
subdir('gst')
|
subdir('gst')
|
||||||
subdir('libs')
|
subdir('libs')
|
||||||
subdir('plugins')
|
subdir('plugins')
|
||||||
subdir('tools')
|
if not get_option('tools').disabled()
|
||||||
|
subdir('tools')
|
||||||
|
endif
|
||||||
subdir('pkgconfig')
|
subdir('pkgconfig')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
subdir('data')
|
subdir('data')
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
option('build_tools', type : 'boolean', value : true)
|
|
||||||
option('poisoning', type : 'boolean', value : false)
|
|
||||||
option('gst_debug', type : 'boolean', value : true)
|
option('gst_debug', type : 'boolean', value : true)
|
||||||
option('registry', type : 'boolean', value : true)
|
option('registry', type : 'boolean', value : true)
|
||||||
option('tracer_hooks', type : 'boolean', value : true)
|
option('tracer_hooks', type : 'boolean', value : true)
|
||||||
|
@ -18,6 +16,9 @@ option('bash-completion', type : 'feature', value : 'auto', description : 'Insta
|
||||||
|
|
||||||
# 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('benchmarks', type : 'feature', value : 'auto', yield : true)
|
||||||
|
option('tools', type : 'feature', value : 'auto', yield : true)
|
||||||
option('gtk_doc', type : 'feature', value : 'auto', yield : true, description : 'Generate API documentation with gtk-doc')
|
option('gtk_doc', type : 'feature', value : 'auto', yield : true, description : 'Generate 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,12 @@
|
||||||
subdir('benchmarks')
|
if not get_option('benchmarks').disabled()
|
||||||
subdir('check')
|
subdir('benchmarks')
|
||||||
|
endif
|
||||||
|
if not get_option('tests').disabled()
|
||||||
|
subdir('check')
|
||||||
|
endif
|
||||||
if not get_option('examples').disabled()
|
if not get_option('examples').disabled()
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
endif
|
endif
|
||||||
subdir('misc')
|
if not get_option('tools').disabled()
|
||||||
|
subdir('misc')
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue