[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:
parent
cdf1cb35db
commit
cf28821337
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue