mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-20 20:18:52 +00:00
We implicitly require it for building ragel subproject. This new version requirement should satisfied in both Fedora 33 and Debian bullseye, and not be too cutting edge for us.
21 lines
845 B
Meson
21 lines
845 B
Meson
google_benchmark = subproject('google-benchmark')
|
|
google_benchmark_dep = google_benchmark.get_variable('google_benchmark_dep')
|
|
|
|
ttf_parser_dep = null_dep
|
|
if get_option('experimental_api') and add_languages('rust', required: false, native: true)
|
|
ttf_parser_dep = subproject('ttf-parser').get_variable('ttf_parser_dep')
|
|
endif
|
|
|
|
benchmark('perf', executable('perf', 'perf.cc',
|
|
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'),
|
|
],
|
|
cpp_args: ttf_parser_dep.found() ? ['-DHAVE_TTFPARSER'] : [],
|
|
include_directories: [incconfig, incsrc],
|
|
link_with: [libharfbuzz],
|
|
install: false,
|
|
), workdir: meson.current_source_dir() / '..', timeout: 100)
|