[evince] [build] Fix out-of-srcdir build of introspection



commit e4e11c845174f618cae495b1b99e53b2a4ab11fb
Author: Christian Persch <chpe gnome org>
Date:   Tue Jun 16 18:45:33 2009 +0200

    [build] Fix out-of-srcdir build of introspection

 libdocument/Makefile.am |   12 ++++++------
 libview/Makefile.am     |   14 ++++++--------
 2 files changed, 12 insertions(+), 14 deletions(-)
---
diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am
index 8e002a4..82b08a5 100644
--- a/libdocument/Makefile.am
+++ b/libdocument/Makefile.am
@@ -139,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
diff --git a/libview/Makefile.am b/libview/Makefile.am
index bb563a4..659bef9 100644
--- a/libview/Makefile.am
+++ b/libview/Makefile.am
@@ -105,27 +105,25 @@ if ENABLE_INTROSPECTION
 EvinceView-$(EV_API_VERSION).gir: libevview.la Makefile $(INST_H_FILES)
 	PKG_CONFIG_PATH=$(top_builddir):$$PKG_CONFIG_PATH \
 	$(G_IR_SCANNER) -v --namespace EvinceView \
-	--add-include-path=$(srcdir) \
-	--add-include-path=. \
-	--add-include-path=$(top_srcdir) \
-	--add-include-path=$(top_builddir) \
 	--add-include-path=$(top_builddir)/libdocument \
 	--strip-prefix=Ev \
 	--nsversion=$(EV_API_VERSION) \
+	--include=GLib-2.0 \
+	--include=GObject-2.0 \
 	--include=Gio-2.0 \
+	--include=Gdk-2.0 \
+	--include=GdkPixbuf-2.0 \
 	--include=Gtk-2.0 \
 	--include=EvDocument-$(EV_API_VERSION) \
 	--library=evview \
 	--libtool="$(LIBTOOL)" \
 	--output $@ \
-	--pkg gobject-2.0 \
-	--pkg gio-2.0 \
-	--pkg gtk+-2.0 \
+	--pkg evince-document-$(EV_API_VERSION) \
 	--pkg evince-view-$(EV_API_VERSION) \
 	-I$(top_srcdir) \
 	-I$(top_builddir) \
 	-DEVINCE_COMPILATION \
-	$(INST_H_FILES)
+	$(filter %.h,$^)
 
 girdir = $(GIRDIR)
 gir_DATA = EvinceView-$(EV_API_VERSION).gir



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]