• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1google_benchmark = subproject('google-benchmark')
2google_benchmark_dep = google_benchmark.get_variable('google_benchmark_dep')
3
4ttf_parser_dep = null_dep
5if get_option('experimental_api') and add_languages('rust', required: false, native: true)
6  ttf_parser_dep = subproject('ttf-parser').get_variable('ttf_parser_dep')
7endif
8
9if ttf_parser_dep.found()
10  benchmark_cpp_args = ['-DHAVE_TTFPARSER']
11else
12  benchmark_cpp_args = []
13endif
14
15benchmark('perf', executable('perf', 'perf.cc',
16  dependencies: [
17    google_benchmark_dep, freetype_dep,
18
19    # the last two, thread and dl, aren't nice as ttf-parser isn't no_std yet
20    # https://github.com/RazrFalcon/ttf-parser/issues/29
21    ttf_parser_dep, thread_dep, cpp.find_library('dl'),
22  ],
23  cpp_args: benchmark_cpp_args,
24  include_directories: [incconfig, incsrc],
25  link_with: [libharfbuzz],
26  install: false,
27), workdir: join_paths(meson.current_source_dir(), '..'), timeout: 100)
28