mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
056cad44c3
Fixes the following build error and missing '-pthread' argument when linking: subprojects/gstreamer/plugins/tracers/libgstcoretracers.so.p/gstleaks.c.o: In function `gst_leaks_tracer_setup_signals': /work/build32/../subprojects/gstreamer/plugins/tracers/gstleaks.c:919: undefined reference to `pthread_atfork' Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/571>
36 lines
819 B
Meson
36 lines
819 B
Meson
if not tracer_hooks
|
|
if get_option('coretracers').enabled()
|
|
error('coretracers plugin enabled but not tracer_hooks')
|
|
endif
|
|
subdir_done()
|
|
endif
|
|
|
|
gst_tracers_sources = [
|
|
'gstlatency.c',
|
|
'gstleaks.c',
|
|
'gststats.c',
|
|
'gsttracers.c',
|
|
]
|
|
|
|
if gst_debug
|
|
gst_tracers_sources += ['gstlog.c']
|
|
endif
|
|
|
|
if cdata.has('HAVE_GETRUSAGE')
|
|
gst_tracers_sources += ['gstrusage.c']
|
|
endif
|
|
|
|
tracers_args = gst_c_args + ['-DGST_USE_UNSTABLE_API']
|
|
|
|
thread_dep = dependency('threads', required : false)
|
|
|
|
gst_tracers = library('gstcoretracers',
|
|
gst_tracers_sources,
|
|
c_args : tracers_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gst_dep, thread_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gst_tracers]
|