diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 3ab900eb06..71d7fd399f 100644 --- a/meson.build +++ b/meson.build @@ -687,7 +687,20 @@ endif profiler_enabled = get_option('profiler') if profiler_enabled - profiler_dep = dependency('sysprof-capture-3', static: true, required: true) + # libsysprof-capture support + profiler_dep = dependency('sysprof-capture-4', + required: true, + 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'], + ) if profiler_dep.found() cdata.set('HAVE_SYSPROF_CAPTURE', profiler_dep.found()) else |