diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/Makefile.am | 6 | ||||
-rw-r--r-- | backend/ev-document-factory.c | 9 | ||||
-rw-r--r-- | backend/ev-document-factory.h | 3 |
3 files changed, 17 insertions, 1 deletions
diff --git a/backend/Makefile.am b/backend/Makefile.am index 917215a..75509e6 100644 --- a/backend/Makefile.am +++ b/backend/Makefile.am @@ -7,6 +7,7 @@ INCLUDES= \ -I$(top_srcdir)/ps \ -I$(top_srcdir)/djvu \ -I$(top_srcdir)/dvi \ + -I$(top_srcdir)/comics \ $(BACKEND_CFLAGS) \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED) @@ -67,6 +68,11 @@ libevbackend_la_LIBADD += \ $(top_builddir)/dvi/libgtkdvi.la endif +if ENABLE_COMICS +libevbackend_la_LIBADD += \ + $(top_builddir)/comics/libcomicsdocument.la +endif + BUILT_SOURCES= \ ev-backend-marshalers.h \ ev-backend-marshalers.c diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index 0f85c7c..7fed2b9 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -35,6 +35,9 @@ #ifdef ENABLE_DJVU #include "djvu-document.h" #endif +#ifdef ENABLE_COMICS +#include "comics-document.h" +#endif #include <string.h> @@ -69,6 +72,12 @@ const EvDocumentType document_types[] = { /* dvi: */ {"application/x-dvi", EV_BACKEND_DVI, dvi_document_get_type}, #endif + +#ifdef ENABLE_DVI + /* cbr/cbz: */ + {"application/cbr", EV_BACKEND_COMICS, comics_document_get_type}, + {"application/cbz", EV_BACKEND_COMICS, comics_document_get_type}, +#endif }; #ifdef ENABLE_PIXBUF diff --git a/backend/ev-document-factory.h b/backend/ev-document-factory.h index 56be46d..f299730 100644 --- a/backend/ev-document-factory.h +++ b/backend/ev-document-factory.h @@ -31,7 +31,8 @@ typedef enum { EV_BACKEND_TIFF, EV_BACKEND_PIXBUF, EV_BACKEND_DJVU, - EV_BACKEND_DVI + EV_BACKEND_DVI, + EV_BACKEND_COMICS } EvBackend; EvDocument *ev_document_factory_get_document (const char *mime_type); |