mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
meson: add option to disable tracer hooks
This commit is contained in:
parent
736efc2d9e
commit
d93ebba58b
4 changed files with 10 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
subdir('elements')
|
||||
subdir('tracers')
|
||||
if not disable_tracer_hooks
|
||||
subdir('tracers')
|
||||
endif
|
||||
|
|
|
@ -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' ],
|
||||
|
|
Loading…
Reference in a new issue