<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>build/autotools/introspection.m4</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,6 +6,7 @@ autom4te.cache
 /build/autotools/*.m4
 !/build/autotools/shave.m4
 !/build/autotools/as-compiler-flag.m4
+!/build/autotools/introspection.m4
 configure
 config.guess
 config.h
@@ -27,6 +28,8 @@ json-glib.pc
 json-enum-types.[ch]
 json-marshal.[ch]
 json-version.h
+Json-1.0.gir
+Json-1.0.typelib
 *.la
 stamp-json-enum-types.h
 stamp-json-marshal.h</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,8 @@
-EXTRA_DIST = shave-libtool.in shave.in shave.m4 as-compiler-flag.m4
+EXTRA_DIST = \
+	shave-libtool.in 	\
+	shave.in 		\
+	shave.m4 		\
+	as-compiler-flag.m4	\
+	introspection.m4
 
 DISTCLEANFILES = shave-libtool shave</diff>
      <filename>build/autotools/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -117,6 +117,8 @@ AS_IF([test &quot;x$enable_maintainer_flags&quot; = &quot;xyes&quot; &amp;&amp; test &quot;x$GCC&quot; = &quot;xyes&quot;],
 
 GTK_DOC_CHECK([1.11])
 
+GOBJECT_INTROSPECTION_CHECK([0.6.3])
+
 SHAVE_INIT([build/autotools], [enable])
 
 AC_CONFIG_FILES([
@@ -140,9 +142,10 @@ AC_OUTPUT
 echo &quot;&quot;
 echo &quot; Json-GLib $VERSION&quot;
 echo &quot;&quot;
-echo &quot;                Prefix: ${prefix}&quot;
-echo &quot;           Debug level: ${enable_debug}&quot;
-echo &quot;        Compiler flags: ${MAINTAINER_CFLAGS}&quot;
-echo &quot;         API reference: ${enable_gtk_doc}&quot;
-echo &quot;     Enable test suite: ${enable_glibtest}&quot;
+echo &quot;                   Prefix: ${prefix}&quot;
+echo &quot;              Debug level: ${enable_debug}&quot;
+echo &quot;           Compiler flags: ${MAINTAINER_CFLAGS}&quot;
+echo &quot;            API reference: ${enable_gtk_doc}&quot;
+echo &quot;        Enable test suite: ${enable_glibtest}&quot;
+echo &quot; Build introspection data: ${enable_introspection}&quot;
 echo &quot;&quot;</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -123,3 +123,33 @@ EXTRA_DIST += \
 	$(NULL)
 
 TESTS_ENVIRONMENT = srcdir=&quot;$(srcdir)&quot; json_all_c_sources=&quot;$(source_c)&quot;
+
+if HAVE_INTROSPECTION
+BUILT_GIRSOURCES =
+
+Json-1.0.gir: $(INTROSPECTION_SCANNER) libjson-glib-1.0.la
+	$(INTROSPECTION_SCANNER) -v --namespace Json --nsversion=1.0 \
+	     $(INCLUDES) \
+	     --c-include='json-glib/json-glib.h' \
+             --include=GObject-2.0 \
+	     --library=json-glib-1.0 \
+             --pkg gobject-2.0 \
+             --output $@ \
+	     $(source_h) \
+	     $(source_c)
+
+BUILT_GIRSOURCES += Json-1.0.gir
+
+# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
+# install anything - we need to install inside our prefix.
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(BUILT_GIRSOURCES)
+
+typelibsdir = $(libdir)/girepository-1.0/
+typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
+
+%.typelib: %.gir $(INTROSPECTION_COMPILER)
+	$(QUIET_GEN)$(DEBUG) $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(INTROSPECTION_COMPILER_OPTS) $&lt; -o $(@F)
+
+CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
+endif # HAVE_INTROSPECTION</diff>
      <filename>json-glib/Makefile.am</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3ddeb7a8779a4c51453289aa15af130af480eea6</id>
    </parent>
  </parents>
  <author>
    <name>Emmanuele Bassi</name>
    <email>ebassi@linux.intel.com</email>
  </author>
  <url>http://github.com/ebassi/json-glib/commit/bddc717b8b6f2f1501c30f78159c20394665d335</url>
  <id>bddc717b8b6f2f1501c30f78159c20394665d335</id>
  <committed-date>2009-06-09T03:48:02-07:00</committed-date>
  <authored-date>2009-06-09T03:48:02-07:00</authored-date>
  <message>[build] Add introspection generation

Build the Introspection data when compiling JSON-GLib; this way, the
API should be available to other languages automatically.</message>
  <tree>99a9e81bef460423d2b2bb14d174a0846df40602</tree>
  <committer>
    <name>Emmanuele Bassi</name>
    <email>ebassi@linux.intel.com</email>
  </committer>
</commit>
