Build option '-Dprofiler=true' fails with latest sysprof-capture

I'm unable to compile gtk+-3 on Fedora 40 with profiler support
"-Dprofiler=true" because it looks for sysprof-capture-3 while
Fedora 40 only provides sysprof-capture-4.

GTK4 for the same build option only looks for sysprof-capture-4.
This commit is contained in:
Nelson Benítez León 2024-05-04 17:10:16 +01:00
parent 09fe1f263f
commit 0b220ce984

View File

@ -833,7 +833,10 @@ endif
profiler_enabled = get_option('profiler')
if profiler_enabled
profiler_dep = dependency('sysprof-capture-3', static: true, required: true)
profiler_dep = dependency('sysprof-capture-3', static: true, required: false)
if not profiler_dep.found()
profiler_dep = dependency('sysprof-capture-4', static: true, required: false)
endif
if profiler_dep.found()
cdata.set('HAVE_SYSPROF_CAPTURE', profiler_dep.found())
else