[latexila] Generate latexila.vapi with GObject Introspection
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Generate latexila.vapi with GObject Introspection
- Date: Sun, 5 Oct 2014 16:24:45 +0000 (UTC)
commit 784ff1d873084e553e9f1ad29af60e496b7658dd
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Apr 25 22:39:11 2014 +0200
Generate latexila.vapi with GObject Introspection
configure.ac | 2 ++
src/liblatexila/Makefile.am | 22 +++++++++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6de2cd1..14c53a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,6 +139,7 @@ YELP_HELP_INIT
GLIB_GSETTINGS
GNOME_COMPILE_WARNINGS([maximum])
GOBJECT_INTROSPECTION_CHECK([1.30.0])
+VAPIGEN_CHECK
# Generate files
AC_CONFIG_FILES([Makefile
@@ -187,4 +188,5 @@ Configuration:
Vala Compiler: ${vala_compiler}
C Compiler: ${CC}
GObject introspection: ${found_introspection}
+ Generate latexila.vapi: ${enable_vala}
"
diff --git a/src/liblatexila/Makefile.am b/src/liblatexila/Makefile.am
index c4ee247..fab0a8b 100644
--- a/src/liblatexila/Makefile.am
+++ b/src/liblatexila/Makefile.am
@@ -15,6 +15,7 @@ liblatexila_la_SOURCES = \
latexila-post-processor-all-output.h \
latexila-types.h
+noinst_DATA =
CLEANFILES =
if HAVE_INTROSPECTION
@@ -33,9 +34,24 @@ Latexila_gir_INCLUDES = Gio-2.0
Latexila_gir_LIBS = liblatexila.la
Latexila_gir_FILES = $(liblatexila_la_SOURCES)
-noinst_DATA = Latexila.gir Latexila.typelib
-
+noinst_DATA += Latexila.gir Latexila.typelib
CLEANFILES += Latexila.gir Latexila.typelib
-endif
+
+endif # HAVE_INTROSPECTION
+
+if ENABLE_VAPIGEN
+include $(VAPIGEN_MAKEFILE)
+
+latexila.vapi: Latexila.gir
+
+VAPIGEN_VAPIS = latexila.vapi
+
+latexila_vapi_DEPS = gio-2.0
+latexila_vapi_FILES = Latexila.gir
+
+noinst_DATA += latexila.vapi
+CLEANFILES += latexila.vapi
+
+endif # ENABLE_VAPIGEN
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]