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



commit 84df2fbe719466f62fed52a3a4c5d5daf336c605
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 7795e03..d430d59 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -5,6 +5,8 @@ modulesdir = $(libdir)/tracker-$(TRACKER_API_VERSION)/sparql-modules
 lib_LTLIBRARIES = libtracker-sparql- TRACKER_API_VERSION@.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 \
@@ -63,3 +65,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
\ No newline at end of file



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