meson: add option to disable tracer hooks

This commit is contained in:
Tim-Philipp Müller 2017-07-05 13:20:19 +01:00
parent 736efc2d9e
commit d93ebba58b
4 changed files with 10 additions and 2 deletions

View file

@ -195,6 +195,11 @@ libgst_c_args = gst_c_args + [
'-DGST_DISABLE_DEPRECATED',
]
disable_tracer_hooks = get_option('disable_tracer_hooks')
if disable_tracer_hooks
libgst_c_args += ['-DGST_DISABLE_GST_TRACER_HOOKS']
endif
# Make it possible to build both static and shared versions
# at the same time. By default use shared for unit tests etc.
# This choice is arbitrary.

View file

@ -4,6 +4,7 @@ option('disable_gtkdoc', type : 'boolean', value : false)
option('disable_examples', type : 'boolean', value : false)
option('disable_gst_debug', type : 'boolean', value : false)
option('disable_registry', type : 'boolean', value : false)
option('disable_tracer_hooks', type : 'boolean', value : false)
option('library_format', type : 'combo', choices : ['shared', 'static', 'both'], value : 'shared')
option('disable_introspection',
type : 'boolean', value : false,

View file

@ -1,2 +1,4 @@
subdir('elements')
subdir('tracers')
if not disable_tracer_hooks
subdir('tracers')
endif

View file

@ -47,7 +47,7 @@ core_tests = [
[ 'gst/gsttask.c' ],
[ 'gst/gsttoc.c' ],
[ 'gst/gsttocsetter.c' ],
[ 'gst/gsttracerrecord.c' ],
[ 'gst/gsttracerrecord.c', disable_tracer_hooks or disable_gst_debug],
[ 'gst/gsturi.c' ],
[ 'gst/gstutils.c', not have_registry ],
[ 'gst/gstvalue.c' ],