mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
9791669ac3
Not setting cdata here on purpose because of .. complications.
33 lines
772 B
Meson
33 lines
772 B
Meson
gst_tracers_sources = [
|
|
'gstlatency.c',
|
|
'gstleaks.c',
|
|
'gststats.c',
|
|
'gsttracers.c',
|
|
'gstlog.c'
|
|
]
|
|
|
|
if have_getrusage
|
|
gst_tracers_sources += ['gstrusage.c']
|
|
endif
|
|
|
|
tracers_args = gst_c_args + ['-DGST_USE_UNSTABLE_API']
|
|
|
|
unwind_dep = dependency('libunwind', required : false)
|
|
if unwind_dep.found()
|
|
tracers_args += ['-DHAVE_UNWIND']
|
|
endif
|
|
|
|
if cc.has_header('execinfo.h') and cc.has_function('backtrace', prefix : '#include <execinfo.h>')
|
|
tracers_args += ['-DHAVE_BACKTRACE']
|
|
endif
|
|
|
|
gst_tracers = library('gstcoretracers',
|
|
gst_tracers_sources,
|
|
c_args : tracers_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gst_dep, unwind_dep],
|
|
link_with : printf_lib,
|
|
install : true,
|
|
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
|
|
)
|
|
|