diff --git a/gst/meson.build b/gst/meson.build index d57757e7aa..2b6b6ee858 100644 --- a/gst/meson.build +++ b/gst/meson.build @@ -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. diff --git a/meson_options.txt b/meson_options.txt index 9c77706cc0..5f4ac2b168 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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, diff --git a/plugins/meson.build b/plugins/meson.build index 5013c58048..cb65dc0dc5 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -1,2 +1,4 @@ subdir('elements') -subdir('tracers') +if not disable_tracer_hooks + subdir('tracers') +endif diff --git a/tests/check/meson.build b/tests/check/meson.build index dae74cddbd..af473c744a 100644 --- a/tests/check/meson.build +++ b/tests/check/meson.build @@ -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' ],