X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2FMakefile.am;h=ef5876fd472a10c93ef239d0cf55582b82814597;hb=776a6fe02961d8901d21e172633d3c8d1c85dc93;hp=f96d0197aeb19976b628b181c83efa92ebd9fcc9;hpb=6426ce3672bf190ab39d9c49c841232c127d174f;p=evince.git diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am index f96d0197..ef5876fd 100644 --- a/libdocument/Makefile.am +++ b/libdocument/Makefile.am @@ -1,126 +1,173 @@ -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) \ - $(DISABLE_DEPRECATED) - -noinst_LTLIBRARIES = libevbackend.la - -libevbackend_la_SOURCES= \ - ev-async-renderer.c \ +QUIET_GEN = $(Q:@=@echo ' GEN '$@;) + +lib_LTLIBRARIES = libevdocument.la + +NOINST_H_FILES = \ + ev-debug.h \ + ev-module.h + +INST_H_FILES = \ + ev-annotation.h \ ev-async-renderer.h \ - ev-attachment.c \ ev-attachment.h \ - ev-backend-marshal.c \ - ev-link.c \ + ev-backends-manager.h \ + ev-document-factory.h \ + ev-document-annotations.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-layers.h \ + ev-document-links.h \ + ev-document-misc.h \ + ev-document-print.h \ + ev-document-security.h \ + ev-document-thumbnails.h \ + ev-document-transition.h \ + ev-document-type-builtins.h \ + ev-file-exporter.h \ + ev-file-helpers.h \ + ev-form-field.h \ + ev-image.h \ + ev-init.h \ + ev-layer.h \ + ev-link-action.h \ + ev-link-dest.h \ ev-link.h \ + ev-page.h \ + ev-render-context.h \ + ev-selection.h \ + ev-transition-effect.h \ + ev-version.h + +headerdir = $(includedir)/evince/$(EV_API_VERSION)/libdocument +header_DATA = $(INST_H_FILES) + +libevdocument_la_SOURCES= \ + ev-annotation.c \ + ev-async-renderer.c \ + ev-attachment.c \ + ev-backends-manager.c \ + ev-layer.c \ + ev-link.c \ ev-link-action.c \ - ev-link-action.h \ ev-link-dest.c \ - ev-link-dest.h \ ev-image.c \ - ev-image.h \ + ev-init.c \ ev-document.c \ - ev-document.h \ + ev-document-annotations.c \ 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-layers.c \ ev-document-links.c \ - ev-document-links.h \ ev-document-images.c \ - ev-document-images.h \ + ev-document-print.c \ 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-document-type-builtins.c \ ev-form-field.c \ + ev-debug.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-page.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 - -BUILT_SOURCES= \ - ev-backend-marshalers.h \ - ev-backend-marshalers.c - -CLEANFILES = $(BUILT_SOURCES) - -ev-backend-marshalers.h: ev-backend-marshalers.list - $(GLIB_GENMARSHAL) --prefix=_ev_backend_marshal $(srcdir)/ev-backend-marshalers.list --header > $@ - -ev-backend-marshalers.c: ev-backend-marshalers.list - $(GLIB_GENMARSHAL) --prefix=_ev_backend_marshal $(srcdir)/ev-backend-marshalers.list --body > $@ - -ev-backend-marshal.c: ev-backend-marshalers.h ev-backend-marshalers.c - -noinst_HEADERS = \ - ev-backend-marshalers.h - -EXTRA_DIST= \ - ev-backend-marshalers.list + ev-transition-effect.c \ + ev-document-misc.c \ + $(NOINST_H_FILES) \ + $(INST_H_FILES) + +libevdocument_la_CPPFLAGS = \ + -DG_LOG_DOMAIN=\"EvinceDocument\" \ + -DEVINCE_UIDIR=\"$(pkgdatadir)\" \ + -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ + -DEV_BACKENDSDIR=\"$(backenddir)\" \ + -DEVINCE_COMPILATION \ + $(AM_CPPFLAGS) + +libevdocument_la_CFLAGS = \ + $(LIBDOCUMENT_CFLAGS) \ + $(WARN_CFLAGS) \ + $(DISABLE_DEPRECATED) \ + $(AM_CFLAGS) + +libevdocument_la_LDFLAGS = \ + -version-info $(EV_DOCUMENT_LT_VERSION_INFO) \ + -no-undefined \ + -export-symbols-regex "^ev_*" \ + $(AM_LDFLAGS) + +libevdocument_la_LIBADD = $(LIBDOCUMENT_LIBS) + +BUILT_SOURCES = \ + ev-document-type-builtins.c \ + ev-document-type-builtins.h + +CLEANFILES = $(BUILT_SOURCES) stamp-ev-document-type-builtins.h + +ev-document-type-builtins.h: stamp-ev-document-type-builtins.h + @true + +stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template $(INST_H_FILES) + $(QUIET_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \ + && (cmp -s xgen-etbh ev-document-type-builtins.h || cp xgen-etbh ev-document-type-builtins.h ) \ + && rm -f xgen-etbh \ + && echo timestamp > $(@F) + +ev-document-type-builtins.c: ev-document-type-builtins.c.template $(INST_H_FILES) + $(QUIET_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \ + && (cmp -s xgen-etbc ev-document-type-builtins.c || cp xgen-etbc ev-document-type-builtins.c ) \ + && rm -f xgen-etbc + +EXTRA_DIST = \ + ev-document-type-builtins.c.template \ + ev-document-type-builtins.h.template + +# GObject Introspection + +if ENABLE_INTROSPECTION + +EvinceDocument-$(EV_API_VERSION).gir: libevdocument.la Makefile $(INST_H_FILES) + PKG_CONFIG_PATH=$(top_builddir):$$PKG_CONFIG_PATH \ + $(G_IR_SCANNER) -v --namespace EvinceDocument \ + --add-include-path=$(srcdir) \ + --add-include-path=. \ + --strip-prefix=Ev \ + --nsversion=$(EV_API_VERSION) \ + --include=Gio-2.0 \ + --include=Gtk-2.0 \ + --library=evdocument \ + --libtool="$(LIBTOOL)" \ + --output $@ \ + --pkg gobject-2.0 \ + --pkg gio-2.0 \ + --pkg gtk+-2.0 \ + --pkg evince-document-$(EV_API_VERSION) \ + -I$(top_srcdir) \ + -I$(top_builddir) \ + -DEVINCE_COMPILATION \ + $(INST_H_FILES) + +girdir = $(GIRDIR) +gir_DATA = EvinceDocument-$(EV_API_VERSION).gir + +typelibsdir = $(GIRTYPELIBDIR) +typelibs_DATA = EvinceDocument-$(EV_API_VERSION).typelib + +EXTRA_DIST += $(gir_DATA) +CLEANFILES += $(gir_DATA) $(typelibs_DATA) + +%.typelib: %.gir + LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) \ + --includedir=$(srcdir) \ + --includedir=. \ + $(G_IR_COMPILER_OPTS) \ + $< -o $@ + +endif # ENABLE_INTROSPECTION