[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,8 +186,13 @@ endif
|
||||||
|
|
||||||
if cairo_dep.found()
|
if cairo_dep.found()
|
||||||
conf.set('HAVE_CAIRO', 1)
|
conf.set('HAVE_CAIRO', 1)
|
||||||
|
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}]]
|
check_funcs += [['cairo_user_font_face_set_render_color_glyph_func', {'deps': cairo_dep}]]
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if cairo_ft_dep.found()
|
if cairo_ft_dep.found()
|
||||||
conf.set('HAVE_CAIRO_FT', 1)
|
conf.set('HAVE_CAIRO_FT', 1)
|
||||||
|
|
Loading…
Reference in New Issue