]> saetta.ns0.it Git - libzakcgi/commitdiff
Enabled gir.
authorAndrea Zagli <azagli@libero.it>
Sat, 10 Jun 2017 10:24:06 +0000 (12:24 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 10 Jun 2017 10:24:06 +0000 (12:24 +0200)
.gitignore
Makefile.am
configure.ac
src/Makefile.am
src/session.c

index 6e5655f8fc0988ca4ff8c932232ea6ce342f715d..8c7bba648dc66a4188c4b65a45ab55f48ceba588 100644 (file)
@@ -59,3 +59,5 @@ tests/redirect
 tests/session
 tests/tag
 tests/url
+*.gir
+*.typelib
\ No newline at end of file
index c87fc2b9171af71ab81667033ac3c6b51b312086..4b717791cb1410ac247c4c41ec2a96b37253f6d8 100644 (file)
@@ -1,3 +1,5 @@
+DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
 SUBDIRS = src tests
 
 ACLOCAL_AMFLAGS = -I m4
index df5a82be91bb82af6a77725e618951c27d81a33e..f73f65a3d220f79ed78de3367718bb92c31ba2e7 100644 (file)
@@ -20,6 +20,8 @@ LT_INIT
 
 AC_LIBTOOL_WIN32_DLL
 
+GOBJECT_INTROSPECTION_CHECK([1.30.0])
+
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CXX
index 6ce8ee2a7c0e6d401d2fe9a1c73286fd6143cccc..fd4c311ae64175566897755dab91aeee2faf8306 100644 (file)
@@ -21,3 +21,29 @@ libzakcgi_include_HEADERS = libzakcgi.h \
                             url.h
 
 libzakcgi_includedir = $(includedir)/libzakcgi
+
+CLEANFILES =
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+
+if HAVE_INTROSPECTION
+introspection_sources = $(libzakcgi_la_SOURCES) $(libzakcgi_include_HEADERS)
+
+ZakCgi-1.0.gir: libzakcgi.la
+ZakCgi_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0 Gio-2.0
+ZakCgi_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+ZakCgi_1_0_gir_LIBS = libzakcgi.la
+ZakCgi_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += ZakCgi-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
index 2c064f0f933f172974d3d7c9ea482a16e034d7a2..95ddb498464b322ae3df14a3ae9bc09bdf64f9e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -113,7 +113,7 @@ zak_cgi_session_init (ZakCgiSession *zak_cgi_session)
 }
 
 /**
- * zak_cgi_session_new:
+ * zak_cgi_session_new_minutes:
  * @zakcgimain:
  * @base_uri:
  * @path: