diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-10-25 21:57:13 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-10-25 21:57:13 +0200 |
commit | 5964ea17b0acfc182e2471eb4b453f22d6176c4d (patch) | |
tree | 0244a1e0f31bf17d2b5514aea50768c6f5ae0111 /vapi | |
parent | 8a7368d12bc1ab1d9dd4f692c4d0981f39a393c5 (diff) |
Add vapi bindings generation
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/Makefile.am | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vapi/Makefile.am b/vapi/Makefile.am new file mode 100644 index 0000000..330c2a2 --- /dev/null +++ b/vapi/Makefile.am @@ -0,0 +1,32 @@ +NULL = + +if WITH_VALA +vapidir = $(datadir)/vala/vapi +vapi_DATA = \ + spice-client-glib-2.0.vapi \ + spice-client-gtk-$(SPICE_GTK_API_VERSION).deps \ + spice-client-gtk-$(SPICE_GTK_API_VERSION).vapi \ + $(NULL) + +spice-client-glib-2.0.vapi: $(top_builddir)/gtk/SpiceClientGLib-2.0.gir + $(AM_V_GEN)$(VAPIGEN) \ + --library spice-client-glib-2.0 \ + $< + +spice-client-gtk-$(SPICE_GTK_API_VERSION).vapi: $(top_builddir)/gtk/SpiceClientGtk-$(SPICE_GTK_API_VERSION).gir spice-client-glib-2.0.vapi + $(AM_V_GEN)$(VAPIGEN) \ + --vapidir=$(builddir) \ + --pkg spice-client-glib-2.0 \ + --pkg gtk+-$(GTK_API_VERSION) \ + --library spice-client-gtk-$(SPICE_GTK_API_VERSION) \ + $< + +spice-client-gtk-$(SPICE_GTK_API_VERSION).deps: spice-client-gtk-$(SPICE_GTK_API_VERSION).vapi + @echo "spice-client-glib-2.0" > $@ + @echo "gtk+-$(GTK_API_VERSION)" >> $@ + +endif + +CLEANFILES = $(vapi_DATA) + +-include $(top_srcdir)/git.mk |