[cogl] build: Generate CoglPango introspection data
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] build: Generate CoglPango introspection data
- Date: Fri, 6 May 2011 16:35:05 +0000 (UTC)
commit 5c131e61e5cc3a292700710d9c0d76628ad43213
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri May 6 17:13:56 2011 +0100
build: Generate CoglPango introspection data
cogl-pango/Makefile.am | 51 +++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 46 insertions(+), 5 deletions(-)
---
diff --git a/cogl-pango/Makefile.am b/cogl-pango/Makefile.am
index fe14bbc..48480fc 100644
--- a/cogl-pango/Makefile.am
+++ b/cogl-pango/Makefile.am
@@ -1,11 +1,19 @@
include $(top_srcdir)/build/autotools/Makefile.am.silent
+NULL =
+
+CLEANFILES =
+DISTCLEANFILES =
+
+EXTRA_DIST =
+
source_c = \
cogl-pango-display-list.c \
cogl-pango-fontmap.c \
cogl-pango-render.c \
cogl-pango-glyph-cache.c \
- cogl-pango-pipeline-cache.c
+ cogl-pango-pipeline-cache.c \
+ $(NULL)
source_h = cogl-pango.h
@@ -13,7 +21,8 @@ source_h_priv = \
cogl-pango-display-list.h \
cogl-pango-private.h \
cogl-pango-glyph-cache.h \
- cogl-pango-pipeline-cache.h
+ cogl-pango-pipeline-cache.h \
+ $(NULL)
lib_LTLIBRARIES = libcogl-pango.la
@@ -23,7 +32,7 @@ libcogl_pango_la_LIBADD = $(COGL_DEP_LIBS) $(COGL_EXTRA_LDFLAGS)
libcogl_pango_la_LIBADD += $(top_builddir)/cogl/libcogl.la
libcogl_pango_la_LDFLAGS = \
-export-dynamic \
- -export-symbols-regex "^cogl.*"
+ -export-symbols-regex "^cogl_pango_.*"
-no-undefined \
-version-info @COGL_LT_CURRENT@:@COGL_LT_REVISION@:@COGL_LT_AGE@
@@ -42,5 +51,37 @@ pc_files = cogl-pango-1.0.pc \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pc_files)
-EXTRA_DIST = cogl-pango.pc.in
-DISTCLEANFILES = $(pc_files)
+EXTRA_DIST += cogl-pango.pc.in
+DISTCLEANFILES += $(pc_files)
+
+-include $(INTROSPECTION_MAKEFILE)
+
+INTROSPECTION_GIRS =
+
+if HAVE_INTROSPECTION
+CoglPango-1.0.gir: libcogl-pango.la Makefile
+
+CoglPango_1_0_gir_NAMESPACE = CoglPango
+CoglPango_1_0_gir_VERSION = 1.0
+CoglPango_1_0_gir_LIBS = libcogl-pango.la
+CoglPango_1_0_gir_FILES = $(source_h) $(source_c)
+CoglPango_1_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(COGL_DEP_CFLAGS)
+CoglPango_1_0_gir_INCLUDES = Pango-1.0 PangoCairo-1.0
+CoglPango_1_0_gir_EXPORT_PACKAGES = cogl-pango-1.0
+CoglPango_1_0_gir_SCANNERFLAGS = \
+ --warn-all \
+ --identifier-prefix=CoglPango \
+ --symbol-prefix=cogl_pango \
+ --c-include='cogl/cogl-pango.h' \
+ --include-uninstalled=$(top_builddir)/cogl/Cogl-1.0.gir
+
+INTROSPECTION_GIRS += CoglPango-1.0.gir
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]