Re: [Vala] Advice for external libraries providing Vapis
- From: Eric Gregory <eric yorba org>
- To: Marc-André Lureau <marcandre lureau gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Advice for external libraries providing Vapis
- Date: Thu, 5 Jan 2012 13:54:07 -0800
On Thu, Jan 5, 2012 at 1: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
Thanks, that's exactly what I was looking for. I'll pass the information
along to the WebKitGTK bug report.
- Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]