[glib-controller] Add introspection support
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-controller] Add introspection support
- Date: Thu, 29 Apr 2010 16:22:16 +0000 (UTC)
commit 2d501afe226074a87ddf646104ee853327050a89
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Apr 29 17:21:25 2010 +0100
Add introspection support
Generate the GIR and typelib files from the source code using the macros
and tools provided by the GObject-Introspection project.
.gitignore | 1 +
Makefile.am | 26 ++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b0a92b4..999a390 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ doc/Makefile.in
doc/reference/Makefile
doc/reference/Makefile.in
doc/reference/version.xml
+GController-1.0.*
glib-controller-1.0.pc
glib-controller.pc
glib-controller/gcontrollerenumtypes.[ch]
diff --git a/Makefile.am b/Makefile.am
index 8943a73..9ef1fd2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -92,6 +92,32 @@ libglib_controller_1_0_la_SOURCES = $(BUILT_SOURCES) $(source_c) $(source_h)
libglib_controller_HEADERS = $(source_h)
libglib_controllerdir = $(includedir)/glib-controller/1.0
+# Introspection
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_srcdir)/glib-controller
+INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir) --includedir=$(top_builddir)
+
+if HAVE_INTROSPECTION
+GController-1.0.gir: $(INTROSPECTION_SCANNER) $(top_builddir)/libglib-controller-1.0.la
+
+GController_1_0_gir_SCANNERFLAGS = --strip-prefix=G
+GController_1_0_gir_INCLUDES = GObject-2.0
+GController_1_0_gir_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/glib-controller -I$(top_builddir) -DG_DISABLE_DEPRECATED -DGLIB_CONTROLLER_COMPILATION
+GController_1_0_gir_LIBS = $(top_builddir)/libglib-controller-1.0.la
+GController_1_0_gir_FILES = $(source_h) $(source_c)
+
+INTROSPECTION_GIRS += GController-1.0.gir
+endif
+
+girdir = $(datadir)/gir-1.0
+dist_gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibsdir = $(libdir)/girepository-1.0
+typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(dist_gir_DATA) $(typelibs_DATA)
+
# GTest rules
include $(top_srcdir)/build/Makefile.am.gtest
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]