[tracker/introspection: 2/16] libtracker-sparql: Added introspection .gir file generation



commit 556e008927f70f0d1317d9471aaf4ebbdf30cef5
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Mar 21 11:57:46 2011 +0000

    libtracker-sparql: Added introspection .gir file generation

 src/libtracker-sparql/Makefile.am |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-sparql/Makefile.am b/src/libtracker-sparql/Makefile.am
index e863868..1e0808e 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -3,6 +3,8 @@ include $(top_srcdir)/Makefile.decl
 noinst_LTLIBRARIES = libtracker-sparql.la
 
 AM_VALAFLAGS =                                         \
+	--gir=TrackerSparql-$(TRACKER_API_VERSION).gir \
+	--library TrackerSparql-$(TRACKER_API_VERSION) \
 	--includedir=libtracker-sparql                 \
 	--header tracker-sparql.h                      \
 	--vapi tracker-sparql-$(TRACKER_API_VERSION).vapi \
@@ -54,3 +56,32 @@ EXTRA_DIST =                                           \
 	tracker-sparql-$(TRACKER_API_VERSION).vapi     \
 	tracker-sparql-$(TRACKER_API_VERSION).deps     \
 	tracker-sparql.deps
+
+# Introspection foo
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS =
+INTROSPECTION_COMPILER_ARGS =
+
+if HAVE_INTROSPECTION
+INTROSPECTION_CFLAGS += $(AM_CPPFLAGS)
+introspection_sources = \
+	$(libtracker_sparql_ TRACKER_API_VERSION@_la_SOURCES) \
+	$(libtracker_sparqlinclude_HEADERS)
+
+TrackerSparql-0.10.gir: $(lib_LTLIBRARIES)
+TrackerSparql_0_10_gir_INCLUDES = GObject-2.0 Gio-2.0 GModule-2.0
+TrackerSparql_0_10_gir_CFLAGS = $(INCLUDES)
+TrackerSparql_0_10_gir_LIBS = $(lib_LTLIBRARIES)
+TrackerSparql_0_10_gir_FILES = $(introspection_sources)
+
+INTROSPECTION_GIRS += TrackerSparql-0.10.gir
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibsdir = $(libdir)/girepository-1.0
+typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES = $(dist_gir_DATA) $(typelib_DATA)
+endif



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