Re: [Vala] Advice for external libraries providing Vapis
- From: Marc-André Lureau <marcandre lureau gmail com>
- To: Eric Gregory <eric yorba org>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Advice for external libraries providing Vapis
- Date: Thu, 5 Jan 2012 22:01:08 +0100
Hi
On Thu, Jan 5, 2012 at 9:47 PM, Eric Gregory <eric yorba org> wrote:
Hi,
Is there some general advice I can give to an external library that wants
to provide a Vapi? Any place I should point them, examples of best
practices, etc?
This is what I would do if the vapi file can be generated directly
from gobject-introspection gir file, then it's rather straightforward:
Add --enable-vala and check for AC_PATH_PROG(VAPIGEN, vapigen) in configure.ac.
Add vapi files rules in Makefile.am (perhaps in a vapi directory):
if WITH_VALA
vapidir = $(datadir)/vala/vapi
vapi_DATA = \
webkit-1.0.vapi \
webkit-1.0.deps
webkit-1.0.vapi: $(top_builddir)/where/to/find/WebKit-1.0.gir
$(AM_V_GEN)$(VAPIGEN) --library webkit-1.0 $<
endif
Adjust your arguments where needed, add metadata/custum files etc..
Hope that helps!
--
Marc-André Lureau
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]