Commit e5ad55d6 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: add options to disable tests, examples, benchmarks and tools

And remove duplicate option 'poisoning' and unused 'build_tools' one.
parent 7ef5b28e
......@@ -460,7 +460,9 @@ endif
subdir('gst')
subdir('libs')
subdir('plugins')
subdir('tools')
if not get_option('tools').disabled()
subdir('tools')
endif
subdir('pkgconfig')
subdir('tests')
subdir('data')
......
option('build_tools', type : 'boolean', value : true)
option('poisoning', type : 'boolean', value : false)
option('gst_debug', type : 'boolean', value : true)
option('registry', 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
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('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)')
......
subdir('benchmarks')
subdir('check')
if not get_option('benchmarks').disabled()
subdir('benchmarks')
endif
if not get_option('tests').disabled()
subdir('check')
endif
if not get_option('examples').disabled()
subdir('examples')
endif
subdir('misc')
if not get_option('tools').disabled()
subdir('misc')
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment