[tracker/tracker-0.10] libtracker-extract: Added introspection .gir file generation
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-extract: Added introspection .gir file generation
- Date: Thu, 7 Apr 2011 13:45:32 +0000 (UTC)
commit a0ab98509ccbaadbe732a5342cacbed41152a2b9
Author: Martyn Russell <martyn lanedo com>
Date: Mon Mar 21 15:47:29 2011 +0000
libtracker-extract: Added introspection .gir file generation
src/libtracker-extract/Makefile.am | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-extract/Makefile.am b/src/libtracker-extract/Makefile.am
index 6522387..4e6ae26 100644
--- a/src/libtracker-extract/Makefile.am
+++ b/src/libtracker-extract/Makefile.am
@@ -9,7 +9,7 @@ AM_CPPFLAGS = \
lib_LTLIBRARIES = libtracker-extract- TRACKER_API_VERSION@.la
-libtracker_extractincdir=$(includedir)/tracker-$(TRACKER_API_VERSION)/libtracker-extract/
+libtracker_extractincludedir=$(includedir)/tracker-$(TRACKER_API_VERSION)/libtracker-extract/
libtracker_extract_ TRACKER_API_VERSION@_la_SOURCES = \
tracker-data.h \
@@ -25,7 +25,7 @@ libtracker_extract_ TRACKER_API_VERSION@_la_SOURCES = \
noinst_HEADERS =
-libtracker_extractinc_HEADERS = \
+libtracker_extractinclude_HEADERS = \
tracker-data.h \
tracker-exif.h \
tracker-extract.h \
@@ -43,3 +43,34 @@ libtracker_extract_ TRACKER_API_VERSION@_la_LIBADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(BUILD_LIBS) \
$(LIBTRACKER_EXTRACT_LIBS)
+
+# Introspection foo
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = \
+ -I $(top_builddir)/src \
+ -D TRACKER_COMPILATION \
+ --c-include="libtracker-extract/tracker-extract.h" \
+ --add-include-path=$(top_builddir)/src/libtracker-sparql
+INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/src/libtracker-sparql
+
+if HAVE_INTROSPECTION
+INTROSPECTION_CFLAGS += $(AM_CPPFLAGS)
+introspection_sources = $(libtracker_extract_ TRACKER_API_VERSION@_la_SOURCES)
+
+TrackerExtract-0.10.gir: $(INTROSPECTION_SCANNER) $(lib_LTLIBRARIES) Makefile
+TrackerExtract_0_10_gir_INCLUDES = GObject-2.0 GModule-2.0 TrackerSparql-0.10
+TrackerExtract_0_10_gir_CFLAGS = $(INCLUDES)
+TrackerExtract_0_10_gir_LIBS = $(lib_LTLIBRARIES)
+TrackerExtract_0_10_gir_FILES = $(introspection_sources)
+
+INTROSPECTION_GIRS += TrackerExtract-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]