[gobject-introspection] [common.mk] Add builddir, srcdir and top_srcdir/gir



commit bbddbb94528308f8ee43661cacee2fbdc6b59b81
Author: Johan Dahlin <johan gnome org>
Date:   Wed May 26 14:05:19 2010 -0300

    [common.mk] Add builddir,srcdir and top_srcdir/gir
    
    They are now required with the updated Makefile.introspection rules,
    as the path to cairo-1.0.gir is no longer absolute we will have to add
    the src manually as it's references when srcdir != builddir, for instance
    in make distcheck.

 common.mk |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/common.mk b/common.mk
index 45aaf1d..a741dc1 100644
--- a/common.mk
+++ b/common.mk
@@ -14,11 +14,14 @@ INTROSPECTION_SCANNER = \
     $(top_builddir)/tools/g-ir-scanner$(EXEEXT)
 INTROSPECTION_SCANNER_ARGS = \
     --verbose \
-    --add-include-path=. \
+    --add-include-path=$(srcdir) \
+    --add-include-path=$(top_srcdir)/gir \
+    --add-include-path=$(builddir) \
     --add-include-path=$(top_builddir)/gir
 
 INTROSPECTION_COMPILER = $(top_builddir)/tools/g-ir-compiler$(EXEEXT)
 INTROSPECTION_COMPILER_ARGS = \
     --includedir=$(srcdir) \
     --includedir=$(top_srcdir)/gir \
+    --includedir=$(builddir) \
     --includedir=$(top_builddir)/gir



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