[meson] fix building with Cairo subproject

We can’t pass internal (subproject) dependency to cpp.has_function(), so
we manually hard-code the result.
This commit is contained in:
Khaled Hosny 2022-02-08 19:03:17 +02:00 committed by Behdad Esfahbod
parent cdf1cb35db
commit cf28821337
1 changed files with 6 additions and 1 deletions

View File

@ -186,7 +186,12 @@ endif
if cairo_dep.found()
conf.set('HAVE_CAIRO', 1)
check_funcs += [['cairo_user_font_face_set_render_color_glyph_func', {'deps': cairo_dep}]]
if cairo_dep.type_name() == 'internal'
# FIXME: uncomment this when we update Ciaro subproject
#conf.set('HAVE_CAIRO_USER_FONT_FACE_SET_RENDER_COLOR_GLYPH_FUNC', 1)
else
check_funcs += [['cairo_user_font_face_set_render_color_glyph_func', {'deps': cairo_dep}]]
endif
endif
if cairo_ft_dep.found()