From 13f8625431eba74e070e846b23fcfc2a0ff2b34d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 19 Aug 2020 16:02:10 -0400 Subject: Add sysprof tracing support Add support for adding sysprof marks. Strongly inspired by equivalent GLib support. --- meson.build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 288405cf..00b9df91 100644 --- a/meson.build +++ b/meson.build @@ -538,6 +538,23 @@ if cairo_dep.found() endif endif +# libsysprof-capture support +libsysprof_capture_dep = dependency('sysprof-capture-4', + required: get_option('sysprof'), + default_options: [ + 'enable_examples=false', + 'enable_gtk=false', + 'enable_tests=false', + 'enable_tools=false', + 'libsysprof=false', + 'with_sysprofd=none', + 'help=false', + ], + fallback: ['sysprof', 'libsysprof_capture_dep'], +) +pango_conf.set('HAVE_SYSPROF', libsysprof_capture_dep.found()) +pango_deps += libsysprof_capture_dep + gnome = import('gnome') pkgconfig = import('pkgconfig') -- cgit v1.2.1