[gtksourceview] Add introspection support to build
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Add introspection support to build
- Date: Sun, 23 May 2010 10:56:26 +0000 (UTC)
commit 89279acf93b41e8f658b5fb0bdc8e48e59f35c26
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date: Sun May 23 12:38:26 2010 +0200
Add introspection support to build
Adds -Wno-portability because we don't presume to support
non-GNU make,
http://mail.gnome.org/archives/desktop-devel-list/2009-February/msg00111.html.
https://bugzilla.gnome.org/show_bug.cgi?id=598536
configure.ac | 5 ++++-
gtksourceview/Makefile.am | 21 ++++++++++++++++++++-
2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6f92309..a23f276 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([gtksourceview/gtksourcebuffer.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([1.10.3 dist-bzip2 no-dist-gzip])
+AM_INIT_AUTOMAKE([1.10.3 dist-bzip2 no-dist-gzip -Wno-portability])
AM_MAINTAINER_MODE([enable])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -116,6 +116,8 @@ AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the gettext package n
# Documentation
GTK_DOC_CHECK([1.11], [--flavour=no-tmpl])
+GOBJECT_INTROSPECTION_CHECK([0.6.7])
+
# test-widget uses this to find lang files and gtksourcebuffer.c
ABS_TOP_SRCDIR=`cd $srcdir && pwd`
AC_SUBST(ABS_TOP_SRCDIR)
@@ -150,4 +152,5 @@ Configuration:
Compiler: ${CC}
Completion Providers: ${enable_providers}
Glade Catalog: ${glade_catalog}
+ GObject introspection: ${found_introspection}
"
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index 78381fb..d9e7c16 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -147,10 +147,29 @@ stamp-gtksourceview-typebuiltins.h: Makefile.am $(libgtksourceview_headers)
&& (cmp -s xgen-gth gtksourceview-typebuiltins.h || cp xgen-gth gtksourceview-typebuiltins.h) \
&& rm -f xgen-gth && echo stamp > $(@F)
+CLEANFILES =
+
+if HAVE_INTROSPECTION
+include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS = GtkSource-2.0.gir
+INTROSPECTION_SCANNER_ARGS = -I$(top_srcdir)
+GtkSource_2_0_gir_NAMESPACE = GtkSource
+GtkSource_2_0_gir_VERSION = 2.0
+GtkSource_2_0_gir_LIBS = libgtksourceview-2.0.la
+GtkSource_2_0_gir_FILES = $(libgtksourceview_2_0_la_SOURCES)
+GtkSource_2_0_gir_INCLUDES = GObject-2.0 Gtk-2.0
+GtkSource_2_0_gir_PACKAGES = gtksourceview-2.0
+girdir = $(INTROSPECTION_GIRDIR)
+dist_gir_DATA = GtkSource-2.0.gir
+typelibdir = $(INTROSPECTION_TYPELIBDIR)
+typelib_DATA = GtkSource-2.0.typelib
+CLEANFILES += $(dist_gir_DATA) $(typelib_DATA)
+endif
+
EXTRA_DIST = \
gtksourceview-marshal.list \
$(ui_DATA)
-CLEANFILES = $(BUILT_SOURCES) stamp-gtksourceview-typebuiltins.h stamp-gtksourceview-typebuiltins.c
+CLEANFILES += $(BUILT_SOURCES) stamp-gtksourceview-typebuiltins.h stamp-gtksourceview-typebuiltins.c
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]