[latexila/wip/latexila-next: 11/51] Generate latexila.vapi with GObject Introspection
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/latexila-next: 11/51] Generate latexila.vapi with GObject Introspection
- Date: Sat, 20 Sep 2014 17:30:09 +0000 (UTC)
commit d7ad62acbc59beaca77c02edde1e5ae4187f40f2
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 053d25b..4693871 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]