Meson: Add 'coretracers' feature option

This was the only plugin still built when using
-Dauto_features=disabled, besides coreelements.
This commit is contained in:
Xavier Claessens 2019-12-03 15:40:59 -05:00
parent a9162fc2ed
commit 4a554a2a68
3 changed files with 9 additions and 1 deletions

View file

@ -23,6 +23,7 @@ option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwi
option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind')
option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces')
option('bash-completion', type : 'feature', value : 'auto', description : 'Install bash completion files') option('bash-completion', type : 'feature', value : 'auto', description : 'Install bash completion files')
option('coretracers', type : 'feature', value : 'auto', description : 'Build coretracers plugin')
# Common feature options # Common feature options
option('examples', type : 'feature', value : 'auto', yield : true) option('examples', type : 'feature', value : 'auto', yield : true)

View file

@ -1,5 +1,5 @@
plugins = [] plugins = []
subdir('elements') subdir('elements')
if tracer_hooks if not get_option('coretracers').disabled()
subdir('tracers') subdir('tracers')
endif endif

View file

@ -1,3 +1,10 @@
if not tracer_hooks
if get_option('coretracers').enabled()
error('coretracers plugin enabled but not tracer_hooks')
endif
subdir_done()
endif
gst_tracers_sources = [ gst_tracers_sources = [
'gstlatency.c', 'gstlatency.c',
'gstleaks.c', 'gstleaks.c',