From 19a152b47e8b9cc4bf0cc66857bdae6dad19a41f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 9 Feb 2025 12:37:03 +0000 Subject: [PATCH] [perf] Don't depend on libharfbuzz-subset for most benchmarks --- perf/meson.build | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/perf/meson.build b/perf/meson.build index 92164e3ba..2588fe50a 100644 --- a/perf/meson.build +++ b/perf/meson.build @@ -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: [