[perf] Enable ttf-parser build just with experimental_api

ttf-parser API is subject to breaking change and we are interested on its
hb-draw like API so let's hide it more.
This commit is contained in:
Ebrahim Byagowi 2020-08-02 11:40:47 +04:30 committed by GitHub
parent cdb7d2b9bc
commit 903d6a1f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ google_benchmark = subproject('google-benchmark')
google_benchmark_dep = google_benchmark.get_variable('google_benchmark_dep') google_benchmark_dep = google_benchmark.get_variable('google_benchmark_dep')
ttf_parser_dep = null_dep ttf_parser_dep = null_dep
if add_languages('rust', required: false, native: true) if get_option('experimental_api') and add_languages('rust', required: false, native: true)
ttf_parser_dep = subproject('ttf-parser').get_variable('ttf_parser_dep') ttf_parser_dep = subproject('ttf-parser').get_variable('ttf_parser_dep')
endif endif