diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-05-28 18:14:45 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-05-30 16:08:47 +0100 |
commit | ba5dd08df9b477dbfa5ee9b2c5b56f41dfa8bc85 (patch) | |
tree | 64cc68bfae52ef7756dfe9075b8bb97b6c924feb /source/fitz/document-all.c | |
parent | 19c07d7c1f11e428dc3fcc8222802bf58efbe00d (diff) | |
download | mupdf-ba5dd08df9b477dbfa5ee9b2c5b56f41dfa8bc85.tar.xz |
Add config.h include file.
Introduce FZ_PLOTTER defines to set which defines we required.
Add FZ_ENABLE define to set which document handlers are built
by default.
Diffstat (limited to 'source/fitz/document-all.c')
-rw-r--r-- | source/fitz/document-all.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source/fitz/document-all.c b/source/fitz/document-all.c index 3c1398e6..350e2f5e 100644 --- a/source/fitz/document-all.c +++ b/source/fitz/document-all.c @@ -2,15 +2,31 @@ void fz_register_document_handlers(fz_context *ctx) { +#if FZ_ENABLE_PDF fz_register_document_handler(ctx, &pdf_document_handler); +#endif /* FZ_ENABLE_PDF */ +#if FZ_ENABLE_XPS fz_register_document_handler(ctx, &xps_document_handler); +#endif /* FZ_ENABLE_XPS */ +#if FZ_ENABLE_SVG fz_register_document_handler(ctx, &svg_document_handler); +#endif /* FZ_ENABLE_SVG */ +#if FZ_ENABLE_CBZ fz_register_document_handler(ctx, &cbz_document_handler); +#endif /* FZ_ENABLE_CBZ */ +#if FZ_ENABLE_IMG fz_register_document_handler(ctx, &img_document_handler); +#endif /* FZ_ENABLE_IMG */ +#if FZ_ENABLE_TIFF fz_register_document_handler(ctx, &tiff_document_handler); +#endif /* FZ_ENABLE_TIFF */ +#if FZ_ENABLE_HTML fz_register_document_handler(ctx, &html_document_handler); +#endif /* FZ_ENABLE_HTML */ +#if FZ_ENABLE_EPUB fz_register_document_handler(ctx, &epub_document_handler); -#ifdef SUPPORT_GPROOF +#endif /* FZ_ENABLE_EPUB */ +#if FZ_ENABLE_GPRF fz_register_document_handler(ctx, &gprf_document_handler); -#endif +#endif /* FZ_ENABLE_GPRF */ } |