diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2013-07-11 16:13:37 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2013-07-11 16:13:37 -0400 |
commit | 5b0ea10ca057ffe594c17e8f96b08c5293baa570 (patch) | |
tree | 3569fb6bf921111b154b4d11588dd4c7aec2bd49 | |
parent | 95687294084afe619678e750f82c34654ee107c9 (diff) | |
download | ayatana-indicator-messages-5b0ea10ca057ffe594c17e8f96b08c5293baa570.tar.gz ayatana-indicator-messages-5b0ea10ca057ffe594c17e8f96b08c5293baa570.tar.bz2 ayatana-indicator-messages-5b0ea10ca057ffe594c17e8f96b08c5293baa570.zip |
generate vapi
-rwxr-xr-x | autogen.sh | 14 | ||||
-rw-r--r-- | configure.ac | 17 | ||||
-rw-r--r-- | libmessaging-menu/Makefile.am | 18 |
3 files changed, 45 insertions, 4 deletions
@@ -1,5 +1,11 @@ -#!/bin/sh -e +#!/bin/sh -gtkdocize -autoreconf -i -f -intltoolize +PKG_NAME="indicator-messages" + +which gnome-autogen.sh || { + echo "You need gnome-common from GNOME SVN" + exit 1 +} + +USE_GNOME2_MACROS=1 \ +. gnome-autogen.sh diff --git a/configure.ac b/configure.ac index b020d30..b699b4f 100644 --- a/configure.ac +++ b/configure.ac @@ -122,6 +122,22 @@ else fi AC_SUBST(DBUSSERVICEDIR) +########################### +# Vala API Generation +########################### + +AC_ARG_ENABLE([vala], + AC_HELP_STRING([--disable-vala], [Disable vala]), + [enable_vala=$enableval], [enable_vala=yes]) + +AS_IF([test "x$enable_vala" != "xno"],[ + AM_COND_IF([HAVE_INTROSPECTION],,[ + AC_MSG_ERROR([Vala bindings require introspection support, please --enable-introspection]) + ]) +AC_PATH_PROG([VALA_API_GEN], [vapigen]) +]) +AM_CONDITIONAL([HAVE_VALA], [test -n "$VALA_API_GEN"]) + ############################## # Custom Junk ############################## @@ -197,5 +213,6 @@ Messaging Indicator Configuration: gtest: $enable_tests gcov: $use_gcov introspecion: $enable_introspection + Vala bindings: $enable_vala documentation: $enable_gtk_doc ]) diff --git a/libmessaging-menu/Makefile.am b/libmessaging-menu/Makefile.am index d18538b..4840582 100644 --- a/libmessaging-menu/Makefile.am +++ b/libmessaging-menu/Makefile.am @@ -56,4 +56,22 @@ typelibdir = $(libdir)/girepository-1.0 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) CLEANFILES = $(gir_DATA) $(typelib_DATA) + + +######################### +# VAPI Files +######################### + +if HAVE_VALA + +vapidir = $(datadir)/vala/vapi +vapi_DATA = MessagingMenu-1.0.vapi + +MessagingMenu-1.0.vapi: MessagingMenu-1.0.gir + $(VALA_API_GEN) --library=MessagingMenu-1.0 $< + +CLEANFILES += $(vapi_DATA) + +endif + endif |