Re: [Vala] Advice for external libraries providing Vapis



On Thu, Jan 5, 2012 at 4:01 PM, Marc-André Lureau <
marcandre lureau gmail com> wrote:

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
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list



I don't really think that's what he was going for. I assume the idea was
more of having a central repository of VAPIs you could easily
hit programmatically or simply through your web browser. Then, using a
custom tool similar to Ruby's gem you could so something fun like:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]