Commit e2c1b76d authored by Xavier Claessens's avatar Xavier Claessens
Browse files

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.
parent 6a6ab247
......@@ -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]}],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment