summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-10-03 22:39:59 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-10-03 22:42:56 -0400
commite2c1b76d7109150bcce72ae6683c5f8f2739468c (patch)
tree10e7626e76ce7c464fd0c4789db029e9010d3f25 /util
parent6a6ab2475906635fcc5ba0c73182fae73c4f7ee8 (diff)
downloadcairo-e2c1b76d7109150bcce72ae6683c5f8f2739468c.tar.gz
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.
Diffstat (limited to 'util')
-rw-r--r--util/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/meson.build b/util/meson.build
index d96706c36..016955cea 100644
--- a/util/meson.build
+++ b/util/meson.build
@@ -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]}],