[gitg: 31/36] Add gir generation



commit 7b5e26b11b36682d2f768970732020d7db678e4b
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Feb 14 14:07:51 2013 -0500

    Add gir generation

 Makefile.am  |   28 ++++++++++++++++++++++++++++
 configure.ac |    2 ++
 2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 21f7960..503f29d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -90,3 +90,31 @@ CLEANFILES = \
 
 EXTRA_DIST = \
        $(NULL)
+
+include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+
+if HAVE_INTROSPECTION
+
+Egg-1.0.gir: libegglistbox.la Makefile
+Egg_1_0_gir_NAMESPACE = Egg
+Egg_1_0_gir_VERSION = 1.0
+Egg_1_0_gir_LIBS = libegglistbox.la libeggflowbox.la
+Egg_1_0_gir_CFLAGS = $(LISTBOX_CFLAGS)
+Egg_1_0_gir_SCANNERFLAGS =                     \
+       --warn-all                              \
+       --symbol-prefix=egg                     \
+       --identifier-prefix=Egg                 \
+       $(NULL)
+Egg_1_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
+Egg_1_0_gir_FILES = $(libegglistbox_la_SOURCES) $(libeggflowbox_la_SOURCES)
+INTROSPECTION_GIRS += Egg-1.0.gir
+
+noinst_DATA = $(INTROSPECTION_GIRS)
+
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
+MAINTAINERCLEANFILES = $(srcdir)/Egg-1.0.gir
+
+endif
diff --git a/configure.ac b/configure.ac
index 9dfc245..c031a4f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,8 @@ AC_PROG_CC
 AM_PROG_VALAC([0.16.0])
 AC_PROG_INSTALL
 
+GOBJECT_INTROSPECTION_REQUIRE([0.9.7])
+
 pkg_modules="gtk+-3.0 >= 3.7.6
             glib-2.0 >= 2.31.10"
 PKG_CHECK_MODULES(LISTBOX, [$pkg_modules])


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