]> saetta.ns0.it Git - libgdaexgrid/commitdiff
Enabled gir.
authorAndrea Zagli <azagli@libero.it>
Sat, 10 Jun 2017 10:17:04 +0000 (12:17 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 10 Jun 2017 13:06:00 +0000 (15:06 +0200)
.gitignore
Makefile.am
configure.ac
src/Makefile.am

index 3f0aeda4c8acc25ef585835f6b009d714bb2c80a..de7188b0d30489264b1e64922d4df06d56d1ca7e 100644 (file)
@@ -60,4 +60,6 @@ Rules-quot
 *.csv
 tests/grid
 tests/grid_tree
-test-driver
\ No newline at end of file
+test-driver
+*.gir
+*.typelib
\ No newline at end of file
index 8105922ce03d687999f34f964163f30b239c6db3..f25d824f4f21887fa93b60bddb75f189bab945fb 100644 (file)
@@ -1,4 +1,4 @@
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
 
 SUBDIRS = po src tests docs
 
index 4fa458441497c16adce34d02e46eb53ec1642971..718a71122ff12df43b82f2d96dbf0107d50be1d9 100644 (file)
@@ -32,6 +32,8 @@ AC_PROG_RANLIB
 # check for gtk-doc
 GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
 
+GOBJECT_INTROSPECTION_CHECK([1.30.0])
+
 IT_PROG_INTLTOOL
 
 dnl ******************************
index c75ab335b92ce1d5022cd61102e899fd4f99aa10..9429b2024e005d65ed6bc442950de59b81b0d026 100644 (file)
@@ -29,8 +29,37 @@ libgdaexgrid_la_SOURCES = grid.c \
 
 libgdaexgrid_la_LDFLAGS = -no-undefined
 
-libgdaexgrid_include_HEADERS = libgdaexgrid.h \
+gir_include = \
                                grid.h \
                                gridcolumn.h
 
+libgdaexgrid_include_HEADERS = libgdaexgrid.h \
+                               $(gir_include)
+
 libgdaexgrid_includedir = $(includedir)/libgdaexgrid
+
+CLEANFILES =
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all --accept-unprefixed --identifier-prefix=""
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+
+if HAVE_INTROSPECTION
+introspection_sources = $(libgdaexgrid_la_SOURCES) $(gir_include)
+
+GdaexGrid-1.0.gir: libgdaexgrid.la
+GdaexGrid_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0 Gda-5.0 Gdaex-1.0
+GdaexGrid_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+GdaexGrid_1_0_gir_LIBS = libgdaexgrid.la
+GdaexGrid_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += GdaexGrid-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