'-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.
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,
[ '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' ],