tracers: Add tracepoint when a plugin feature it loaded
[platform/upstream/gstreamer.git] / plugins / tracers / meson.build
1 if not tracer_hooks
2   if get_option('coretracers').enabled()
3     error('coretracers plugin enabled but not tracer_hooks')
4   endif
5   subdir_done()
6 endif
7
8 gst_tracers_sources = [
9   'gstlatency.c',
10   'gstleaks.c',
11   'gststats.c',
12   'gsttracers.c',
13 ]
14
15 if gst_debug
16   gst_tracers_sources += ['gstlog.c']
17 endif
18
19 if cdata.has('HAVE_GETRUSAGE')
20   gst_tracers_sources += ['gstrusage.c']
21 endif
22
23 thread_dep = dependency('threads', required : false)
24
25 gst_tracers = library('gstcoretracers',
26   gst_tracers_sources,
27   c_args : gst_c_args,
28   include_directories : [configinc],
29   dependencies : [gst_dep, thread_dep],
30   install : true,
31   install_dir : plugins_install_dir,
32 )
33 pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
34 plugins += [gst_tracers]