svn path=/trunk/; revision=910
+2008-11-13 Colin Walters <walters@verbum.org>
+
+ * common.mk: Add a file to include with Makefile fragments
+ useful for scanner invocation.
+
2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
* tests/everything/gitesttypes.c (test_filename_return): Return
--- /dev/null
+SCANNER_BIN = $(top_srcdir)/tools/g-ir-scanner
+SCANNER_PYTHONPATH = $(top_builddir):$(top_srcdir):$$PYTHONPATH
+SCANNER_ENV = env PYTHONPATH=$(SCANNER_PYTHONPATH) \
+ UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \
+ UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir)
+SCANNER_ARGS = -v --add-include-path=$(top_builddir)/gir --add-include-path=.
+SCANNER = $(SCANNER_ENV) $(SCANNER_BIN) $(SCANNER_ARGS)
+SCANNER_LIBS = \
+ $(top_srcdir)/giscanner/*.py \
+ $(top_builddir)/giscanner/libgiscanner.la