]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/Makefile.am
[build] Fix out-of-srcdir build of introspection
[evince.git] / libdocument / Makefile.am
index ef5876fd472a10c93ef239d0cf55582b82814597..82b08a56f564503d02785395144e3c69a3660960 100644 (file)
@@ -36,6 +36,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 +75,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 +90,7 @@ libevdocument_la_CPPFLAGS = \
        -DEVINCE_UIDIR=\"$(pkgdatadir)\"                \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"          \
        -DEV_BACKENDSDIR=\"$(backenddir)\"              \
+       -DEV_BACKENDSBINARYVERSION=\"$(backend_binary_version)\"        \
        -DEVINCE_COMPILATION                            \
        $(AM_CPPFLAGS)
 
@@ -136,23 +139,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)" \
        --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