summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate-pdf.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-08 17:51:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-08 17:51:33 +0100
commit9389cb78a8ea5b6579d091ab1030ab9f1b13efc2 (patch)
treeb5213d8be51e80d1c372336860483734a53cac90 /boilerplate/cairo-boilerplate-pdf.c
parent45759e5a0fb20a632f66a8dd206833b55a95f840 (diff)
[build] Improve handling of missing test apparatus
Improve detection, reporting and disabling of test backends when we lack the required libraries and utilities.
Diffstat (limited to 'boilerplate/cairo-boilerplate-pdf.c')
-rw-r--r--boilerplate/cairo-boilerplate-pdf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-pdf.c b/boilerplate/cairo-boilerplate-pdf.c
index 591e16fd..191eb1b5 100644
--- a/boilerplate/cairo-boilerplate-pdf.c
+++ b/boilerplate/cairo-boilerplate-pdf.c
@@ -225,6 +225,7 @@ _cairo_boilerplate_pdf_force_fallbacks (cairo_surface_t *abstract_surface,
}
static const cairo_boilerplate_target_t targets[] = {
+#if CAIRO_CAN_TEST_PDF_SURFACE
{
"pdf", "pdf", ".pdf", NULL,
CAIRO_SURFACE_TYPE_PDF,
@@ -250,5 +251,6 @@ static const cairo_boilerplate_target_t targets[] = {
_cairo_boilerplate_pdf_cleanup,
NULL, TRUE, TRUE
},
+#endif
};
CAIRO_BOILERPLATE (pdf, targets)