summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2022-02-15 13:31:48 +0000
committerDavid King <amigadave@amigadave.com>2022-02-15 13:32:13 +0000
commit627aa6567428cb4c15d482df1cdc8152c65e08d2 (patch)
treec0c1de972ce88456088b39f79fd76eef40a26474 /meson.build
parentbdb4d058685f9ad4981b233661f4ee23e18140a5 (diff)
downloadcairo-627aa6567428cb4c15d482df1cdc8152c65e08d2.tar.gz
meson: Add xml option and disable by default
Just like autotools does.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 5999e586f..1c1c06748 100644
--- a/meson.build
+++ b/meson.build
@@ -756,8 +756,7 @@ if zlib_dep.found()
conf.set('CAIRO_HAS_INTERPRETER', 1)
endif
-# TODO: add xml option and disable by default
-if zlib_dep.found() and png_dep.found()
+if zlib_dep.found() and png_dep.found() and get_option('xml').enabled()
feature_conf.set('CAIRO_HAS_XML_SURFACE', 1)
built_features += [{
'name': 'cairo-xml',