]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/Makefile.am
Plugin system for backends. Fixes bug #351348.
[evince.git] / libdocument / Makefile.am
index f96d0197aeb19976b628b181c83efa92ebd9fcc9..d6e0c5661ab34dc26f5e75d495821610749102c4 100644 (file)
-INCLUDES=                                      \
-       -DEVINCE_UIDIR=\"$(pkgdatadir)\"        \
-       -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
-       -I$(top_srcdir)/backend/pdf                     \
-       -I$(top_srcdir)/backend/pixbuf                  \
-       -I$(top_srcdir)/backend/tiff                    \
-       -I$(top_srcdir)/backend/ps                      \
-       -I$(top_srcdir)/backend/djvu                    \
-       -I$(top_srcdir)/backend/dvi                     \
-       -I$(top_srcdir)/backend/impress                 \
-       -I$(top_srcdir)/backend/comics                  \
-       $(BACKEND_CFLAGS)                       \
-       $(WARN_CFLAGS)                          \
+INCLUDES=                                              \
+       -DEVINCE_UIDIR=\"$(pkgdatadir)\"                \
+       -DGNOMELOCALEDIR=\"$(datadir)/locale\"          \
+       -DEV_BACKENDSDIR=\"$(libdir)/evince/backends\"  \
+       $(LIB_CFLAGS)                                   \
+       $(WARN_CFLAGS)                                  \
        $(DISABLE_DEPRECATED)
 
-noinst_LTLIBRARIES = libevbackend.la
+lib_LTLIBRARIES = libevbackend.la
+
+libevbackend_la_LDFLAGS = -export-dynamic
+libevbackend_la_LIBADD = $(LIB_LIBS)
+
+NOINST_H_FILES =                               \
+       ev-backend-marshalers.h                 \
+       ev-backends-manager.h                   \
+       ev-document-factory.h                   \
+       ev-module.h
+
+INST_H_FILES =                                         \
+       ev-async-renderer.h                     \
+       ev-attachment.h                         \
+       ev-document-find.h                      \
+       ev-document-fonts.h                     \
+       ev-document-forms.h                     \
+       ev-document.h                           \
+       ev-document-images.h                    \
+       ev-document-info.h                      \
+       ev-document-links.h                     \
+       ev-document-misc.h                      \
+       ev-document-security.h                  \
+       ev-document-thumbnails.h                \
+       ev-document-transition.h                \
+       ev-file-exporter.h                      \
+       ev-file-helpers.h                       \
+       ev-form-field.h                         \
+       ev-image.h                              \
+       ev-link-action.h                        \
+       ev-link-dest.h                          \
+       ev-link.h                               \
+       ev-render-context.h                     \
+       ev-selection.h
+
+headerdir = $(prefix)/include/evince-@EV_API_VERSION@/evince
+header_DATA = $(INST_H_FILES)
 
 libevbackend_la_SOURCES=                       \
        ev-async-renderer.c                     \
-       ev-async-renderer.h                     \
        ev-attachment.c                         \
-       ev-attachment.h                         \
+       ev-backends-manager.c                   \
        ev-backend-marshal.c                    \
        ev-link.c                               \
-       ev-link.h                               \
        ev-link-action.c                        \
-       ev-link-action.h                        \
        ev-link-dest.c                          \
-       ev-link-dest.h                          \
        ev-image.c                              \
-       ev-image.h                              \
        ev-document.c                           \
-       ev-document.h                           \
        ev-document-factory.c                   \
-       ev-document-factory.h                   \
        ev-document-thumbnails.c                \
-       ev-document-thumbnails.h                \
        ev-document-fonts.c                     \
-       ev-document-fonts.h                     \
        ev-document-links.c                     \
-       ev-document-links.h                     \
        ev-document-images.c                    \
-       ev-document-images.h                    \
        ev-document-security.c                  \
-       ev-document-security.h                  \
        ev-document-find.c                      \
-       ev-document-find.h                      \
-       ev-document-info.h                      \
-       ev-document-transition.h                \
        ev-document-transition.c                \
-       ev-document-forms.h                     \
        ev-document-forms.c                     \
-       ev-form-field.h                         \
        ev-form-field.c                         \
        ev-file-exporter.c                      \
-       ev-file-exporter.h                      \
        ev-file-helpers.c                       \
-       ev-file-helpers.h                       \
-       ev-render-context.h                     \
+       ev-module.c                             \
        ev-render-context.c                     \
-       ev-selection.h                          \
        ev-selection.c                          \
-       ev-document-misc.h                      \
-       ev-document-misc.c
-
-libevbackend_la_LIBADD =
-
-if ENABLE_PDF
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/pdf/libpdfdocument.la
-endif
-
-if ENABLE_PS
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/ps/libpsdocument.la
-endif
-
-if ENABLE_PIXBUF
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/pixbuf/libpixbufdocument.la
-endif
-
-if ENABLE_DJVU
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/djvu/libgtkdjvu.la
-endif
-
-if ENABLE_TIFF
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/tiff/libtiffdocument.la
-endif
-
-if ENABLE_DVI
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/dvi/libgtkdvi.la
-endif
-
-if ENABLE_COMICS
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/comics/libcomicsdocument.la
-endif
-
-if ENABLE_IMPRESS
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/backend/impress/libimpressdocument.la
-endif
+       ev-document-misc.c                      \
+       $(NOINST_H_FILES)                       \
+       $(INST_H_FILES)
 
 BUILT_SOURCES=                         \
        ev-backend-marshalers.h         \
@@ -119,8 +87,5 @@ ev-backend-marshalers.c: ev-backend-marshalers.list
 
 ev-backend-marshal.c: ev-backend-marshalers.h ev-backend-marshalers.c
 
-noinst_HEADERS = \
-       ev-backend-marshalers.h
-
 EXTRA_DIST= \
        ev-backend-marshalers.list