summaryrefslogtreecommitdiff
path: root/test/any2ppm.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2021-05-22 08:16:47 +0200
committerUli Schlachter <psychon@znc.in>2021-05-22 08:16:47 +0200
commit1e34651420fa77edb09045ee0ff33432c4e73d70 (patch)
tree656c3d2de9cff543447b0f4112cc39a309b9a323 /test/any2ppm.c
parent1981fb6dfb51f44feb68590f51309520185e0780 (diff)
downloadcairo-1e34651420fa77edb09045ee0ff33432c4e73d70.tar.gz
Fix meson build without zlib
Trying to build with meson with -Dzlib=disabled failed with the following error message: cairo/test/meson.build:599:2: ERROR: Unknown variable "libcairoscript_dep". This commit fixes that problem by adding a not-found dependency if cairo-script is not built. Additionally, follow-up problems are fixed: - any2ppm.c still tried to include cairo-script-interpreter.h, which was not found - Building cairo-test-trace was attempted, but that also failed because of missing script support. Fixes: https://gitlab.freedesktop.org/cairo/cairo/-/issues/475 Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/any2ppm.c')
-rw-r--r--test/any2ppm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/any2ppm.c b/test/any2ppm.c
index d2d5fc5e2..f601ec835 100644
--- a/test/any2ppm.c
+++ b/test/any2ppm.c
@@ -60,7 +60,10 @@
#include <string.h>
#include <cairo.h>
+
+#if CAIRO_HAS_INTERPRETER
#include <cairo-script-interpreter.h>
+#endif
#if CAIRO_CAN_TEST_PDF_SURFACE
#include <poppler.h>