2020-06-09 15:07:36 +02:00
|
|
|
google_benchmark = subproject('google-benchmark')
|
|
|
|
google_benchmark_dep = google_benchmark.get_variable('google_benchmark_dep')
|
|
|
|
|
2020-07-30 13:55:42 +02:00
|
|
|
ttf_parser_dep = null_dep
|
2020-08-02 09:10:47 +02:00
|
|
|
if get_option('experimental_api') and add_languages('rust', required: false, native: true)
|
2020-06-18 00:03:05 +02:00
|
|
|
ttf_parser_dep = subproject('ttf-parser').get_variable('ttf_parser_dep')
|
|
|
|
endif
|
|
|
|
|
2020-06-09 15:07:36 +02:00
|
|
|
benchmark('perf', executable('perf', 'perf.cc',
|
2020-06-18 00:03:05 +02:00
|
|
|
dependencies: [
|
|
|
|
google_benchmark_dep, freetype_dep,
|
|
|
|
|
|
|
|
# the last two, thread and dl, aren't nice as ttf-parser isn't no_std yet
|
|
|
|
# https://github.com/RazrFalcon/ttf-parser/issues/29
|
|
|
|
ttf_parser_dep, thread_dep, cpp.find_library('dl'),
|
|
|
|
],
|
2021-11-20 16:09:15 +01:00
|
|
|
cpp_args: ttf_parser_dep.found() ? ['-DHAVE_TTFPARSER'] : [],
|
2020-06-09 15:07:36 +02:00
|
|
|
include_directories: [incconfig, incsrc],
|
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: false,
|
2021-11-20 16:09:15 +01:00
|
|
|
), workdir: meson.current_source_dir() / '..', timeout: 100)
|
2022-04-20 20:36:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
benchmark('benchmark-set', executable('benchmark-set', 'benchmark-set.cc',
|
|
|
|
dependencies: [
|
2022-04-20 21:33:04 +02:00
|
|
|
google_benchmark_dep,
|
|
|
|
],
|
|
|
|
cpp_args: [],
|
|
|
|
include_directories: [incconfig, incsrc],
|
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: false,
|
|
|
|
), workdir: meson.current_source_dir() / '..', timeout: 100)
|
2022-04-20 20:36:35 +02:00
|
|
|
|
2022-04-20 21:33:04 +02:00
|
|
|
benchmark('benchmark-map', executable('benchmark-map', 'benchmark-map.cc',
|
|
|
|
dependencies: [
|
|
|
|
google_benchmark_dep,
|
2022-04-20 20:36:35 +02:00
|
|
|
],
|
2022-04-20 21:33:04 +02:00
|
|
|
cpp_args: [],
|
2022-04-20 20:36:35 +02:00
|
|
|
include_directories: [incconfig, incsrc],
|
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: false,
|
|
|
|
), workdir: meson.current_source_dir() / '..', timeout: 100)
|
2022-04-20 22:05:14 +02:00
|
|
|
|
|
|
|
benchmark('benchmark-subset', executable('benchmark-subset', 'benchmark-subset.cc',
|
|
|
|
dependencies: [
|
|
|
|
google_benchmark_dep,
|
|
|
|
],
|
|
|
|
cpp_args: [],
|
|
|
|
include_directories: [incconfig, incsrc],
|
|
|
|
link_with: [libharfbuzz, libharfbuzz_subset],
|
|
|
|
install: false,
|
|
|
|
), workdir: meson.current_source_dir() / '..', timeout: 100)
|