Commit 89279acf authored by Tomeu Vizoso's avatar Tomeu Vizoso
Browse files

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
parent 7da81f06
......@@ -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}
"
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment