]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/Makefile.am
[print] Fixes segmentation violation when format is empty
[evince.git] / libdocument / Makefile.am
index ef5876fd472a10c93ef239d0cf55582b82814597..0eb831d0a5f37252bd0b57ee86350048b86ae6a3 100644 (file)
@@ -1,5 +1,3 @@
-QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
-
 lib_LTLIBRARIES = libevdocument.la
 
 NOINST_H_FILES =                               \
@@ -36,6 +34,7 @@ INST_H_FILES =                                        \
        ev-link-action.h                        \
        ev-link-dest.h                          \
        ev-link.h                               \
+       ev-mapping.h                            \
        ev-page.h                               \
        ev-render-context.h                     \
        ev-selection.h                          \
@@ -74,6 +73,7 @@ libevdocument_la_SOURCES=                     \
        ev-debug.c                              \
        ev-file-exporter.c                      \
        ev-file-helpers.c                       \
+       ev-mapping.c                            \
        ev-module.c                             \
        ev-page.c                               \
        ev-render-context.c                     \
@@ -88,6 +88,7 @@ libevdocument_la_CPPFLAGS = \
        -DEVINCE_UIDIR=\"$(pkgdatadir)\"                \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"          \
        -DEV_BACKENDSDIR=\"$(backenddir)\"              \
+       -DEV_BACKENDSBINARYVERSION=\"$(backend_binary_version)\"        \
        -DEVINCE_COMPILATION                            \
        $(AM_CPPFLAGS)
 
@@ -115,13 +116,13 @@ 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 \
+       $(AM_V_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 \
+       $(AM_V_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
 
@@ -136,23 +137,23 @@ 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=GLib-2.0 \
        --include=Gio-2.0 \
+       --include=Gdk-2.0 \
+       --include=GdkPixbuf-2.0 \
        --include=Gtk-2.0 \
        --library=evdocument \
-       --libtool="$(LIBTOOL)" \
+       --libtool="$(SHAVE_SAVED_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) \
+       -I$(srcdir) \
+       -I$(builddir) \
        -DEVINCE_COMPILATION \
-       $(INST_H_FILES)
+       $(filter %.h,$^)
 
 girdir = $(GIRDIR)
 gir_DATA = EvinceDocument-$(EV_API_VERSION).gir