]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/Makefile.am
Added Asturian translation on behalf of Mikel González
[evince.git] / libdocument / Makefile.am
index 0580c62256fbff9a986f4d8f15e1d470578cea5c..ffbe19d431a7617a4e406bca03460b91750466c1 100644 (file)
@@ -26,6 +26,7 @@ INST_H_FILES =                                        \
        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                          \
@@ -48,6 +49,7 @@ libevdocument_la_SOURCES=                     \
        ev-link-action.c                        \
        ev-link-dest.c                          \
        ev-image.c                              \
+       ev-init.c                               \
        ev-document.c                           \
        ev-document-factory.c                   \
        ev-document-thumbnails.c                \
@@ -77,7 +79,7 @@ libevdocument_la_CPPFLAGS = \
        -DG_LOG_DOMAIN=\"EvDocument\"                   \
        -DEVINCE_UIDIR=\"$(pkgdatadir)\"                \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"          \
-       -DEV_BACKENDSDIR=\"$(libdir)/evince/backends\"  \
+       -DEV_BACKENDSDIR=\"$(backenddir)\"              \
        -DEVINCE_COMPILATION                            \
        $(AM_CPPFLAGS)
 
@@ -117,3 +119,46 @@ ev-document-type-builtins.c: ev-document-type-builtins.c.template $(INST_H_FILES
 EXTRA_DIST = \
        ev-document-type-builtins.c.template \
        ev-document-type-builtins.h.template
+
+# GObject Introspection
+
+if ENABLE_INTROSPECTION
+
+EvDocument-$(EV_API_VERSION).gir: libevdocument.la Makefile $(INST_H_FILES)
+       PKG_CONFIG_PATH=$(top_builddir):$$PKG_CONFIG_PATH \
+       $(G_IR_SCANNER) -v --namespace EvDocument \
+       --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 = EvDocument-$(EV_API_VERSION).gir
+
+typelibsdir = $(GIRTYPELIBDIR)
+typelibs_DATA = EvDocument-$(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