On Thu, Jan 5, 2012 at 1:01 PM, Marc-André Lureau < [email protected]> wrote:
> Hi > > On Thu, Jan 5, 2012 at 9:47 PM, Eric Gregory <[email protected]> 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 > Thanks, that's exactly what I was looking for. I'll pass the information along to the WebKitGTK bug report. - Eric
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
