[perf] Don't depend on libharfbuzz-subset for most benchmarks

This commit is contained in:
Behdad Esfahbod 2025-02-09 12:37:03 +00:00
parent 3c975a857f
commit 19a152b47e

View file

@ -7,10 +7,26 @@ benchmarks = [
'benchmark-ot.cc',
'benchmark-set.cc',
'benchmark-shape.cc',
'benchmark-subset.cc',
]
foreach source : benchmarks
benchmark_name = source.split('.')[0]
benchmark(benchmark_name, executable(benchmark_name, source,
dependencies: [
google_benchmark_dep, freetype_dep, coretext_deps,
],
cpp_args: [],
include_directories: [incconfig, incsrc],
link_with: [libharfbuzz],
install: false,
), workdir: meson.current_source_dir() / '..', timeout: 100)
endforeach
benchmarks_subset = [
'benchmark-subset.cc',
]
foreach source : benchmarks_subset
benchmark_name = source.split('.')[0]
benchmark(benchmark_name, executable(benchmark_name, source,
dependencies: [