meson: Fix build when libpng is not found

trace-to-xml.c needs cairo-xml.h which is only available when
CAIRO_HAS_XML_SURFACE feature is built which is only available when both
zlib and png are found. CAIRO_HAS_INTERPRETER only requires zlib.
This commit is contained in:
Xavier Claessens 2020-10-03 22:39:59 -04:00
parent 6a6ab24759
commit e2c1b76d71

View file

@ -40,7 +40,7 @@ if gtk_dep.found()
]
endif
if feature_conf.get('CAIRO_HAS_INTERPRETER', 0) == 1
if feature_conf.get('CAIRO_HAS_XML_SURFACE', 0) == 1
expat_dep = dependency('expat', fallback: ['expat', 'expat_dep'])
cairo_utils += [
['trace-to-xml.c', {'deps': [expat_dep]}],