summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2010-06-16 15:37:27 -0700
committerTravis Reitter <travis.reitter@collabora.co.uk>2010-06-17 10:24:30 -0700
commit0d6a6fd4452dcaaf473db021adee32edff941044 (patch)
tree94b97d6647c901b7c0c3fae7612b085c01b1e9ca /vala
parent90d7894bb9001ef00338ed2acfe6de82e9c8f3af (diff)
Update the build system to build the Vala bindings (when enabled).
Diffstat (limited to 'vala')
-rw-r--r--vala/Makefile.am37
-rw-r--r--vala/telepathy-vala-uninstalled.pc.in12
-rw-r--r--vala/telepathy-vala.pc.in14
3 files changed, 63 insertions, 0 deletions
diff --git a/vala/Makefile.am b/vala/Makefile.am
new file mode 100644
index 000000000..9c5a8cdaa
--- /dev/null
+++ b/vala/Makefile.am
@@ -0,0 +1,37 @@
+XSLTPROCFLAGS = --nonet --novalid
+
+vapidir = $(datarootdir)/telepathy/vapi
+vapi_DATA = telepathy-glib.vapi
+
+BUILT_SOURCES = \
+ telepathy-glib.vapi \
+ $(NULL)
+
+pkgconfigdir = ${libdir}/pkgconfig
+pkgconfig_DATA = telepathy-vala.pc
+
+telepathy-glib.vapi: $(top_srcdir)/telepathy-glib/TelepathyGLib-0.12.gir
+ $(VAPIGEN_V)$(VAPIGEN) \
+ --library telepathy-glib \
+ --pkg gio-2.0 \
+ $< \
+ $(NULL)
+
+EXTRA_DIST = \
+ $(BUILT_SOURCES) \
+ $(NULL)
+
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ $(NULL)
+
+# set up the verbosity rules to avoid some build noise
+# XXX: once automake >= 1.11 is common, remove these, push VALASOURCES files
+# into SOURCES and add AM_PROG_VALAC to configure.ac
+VAPIGEN_V = $(VAPIGEN_V_$(V))
+VAPIGEN_V_ = $(VAPIGEN_V_$(AM_DEFAULT_VERBOSITY))
+VAPIGEN_V_0 = @echo " VAPIG " $^;
+
+VGI_V = $(VGI_V_$(V))
+VGI_V_ = $(VGI_V_$(AM_DEFAULT_VERBOSITY))
+VGI_V_0 = @echo " VGI " $^;
diff --git a/vala/telepathy-vala-uninstalled.pc.in b/vala/telepathy-vala-uninstalled.pc.in
new file mode 100644
index 000000000..a9382e1ed
--- /dev/null
+++ b/vala/telepathy-vala-uninstalled.pc.in
@@ -0,0 +1,12 @@
+prefix=
+exec_prefix=
+abs_top_srcdir=@abs_top_srcdir@
+abs_top_builddir=@abs_top_builddir@
+vapidir=${abs_top_srcdir}/vala
+valaflags=--vapidir=${vapidir}
+
+Name: Telepathy Vala bindings (uninstalled copy)
+Description: Vala bindings for the Telepathy framework
+Version: @VERSION@
+Requires: pkg-config >= 0.21
+Requires.private: dbus-glib-1 >= 0.82, glib-2.0 >= 2.22, gobject-2.0 >= 2.22, gio-2.0 >= 2.22, telepathy-glib
diff --git a/vala/telepathy-vala.pc.in b/vala/telepathy-vala.pc.in
new file mode 100644
index 000000000..fdb4316c2
--- /dev/null
+++ b/vala/telepathy-vala.pc.in
@@ -0,0 +1,14 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+datarootdir=@datarootdir@
+datadir=@datadir@
+vapidir=@datadir@/telepathy/vapi
+valaflags=--vapidir=${vapidir}
+
+Name: Telepathy Vala bindings
+Description: Vala bindings for the Telepathy framework
+Version: @VERSION@
+Requires: pkg-config >= 0.21
+Requires.private: dbus-glib-1 >= 0.82, glib-2.0 >= 2.22, gobject-2.0 >= 2.22, gio-2.0 >= 2.22, telepathy-glib