Re: GIR-based vala bindings
- From: Jiří Techet <techet gmail com>
- To: Lorenzo Masini <lorenxo86 gmail com>
- Cc: libchamplain-list gnome org
- Subject: Re: GIR-based vala bindings
- Date: Sun, 27 Mar 2011 17:47:02 +0200
any progress with this? At the moment the vala bindings in
libchamplain are quite outdated and it would be quite a lot of work to
bring them up to date which I'd like to avoid. If the vala branch for
using girs for binding generation is usable, we could use it to
generate the vapi's even though it's not released yet. All we need are
the vapi's which can then be distributed with libchamplain so normal
users don't have to generate them.
Even if the vapi generation isn't ready yet, is there anything I
should pull from your branch before the 0.10 release (which I plan to
make in about a week)?
On Thu, Mar 17, 2011 at 10:19, Lorenzo Masini <lorenxo86 gmail com> wrote:
> Il giorno mer, 16/03/2011 alle 23.26 +0100, Jiří Techet ha scritto:
>> thanks a lot for looking into this! I wasn't aware of the possibility
>> to generate vala bindings from girs (well, I don't use vala by myself)
>> - this will simplify things like making identical overrides separately
>> for vala and girs and the annoying renaming of all the vala files
>> after every release to have the correct -0.version suffix. Perfect!
> I'm glad you like it :D
>> > Now I'm stuck on some autoconf/automake issues (because my leak of
>> > knowledge about them).
>> > In particular, I need that at the moment of GIR files generation,
>> > the .pc files in the $top_builddir are the ones that will be installed
>> > (champlain-0.10.pc).
>> Aren't they? They should be generated when you run ./configure and
>> should exist all the time during make. What's the problem?
> No, the configure simply substitute the version number in
> champlain.pc.in and champlain-gtk.pc.in generating champlain.pc and
> The make step copies champlain.pc and champlain-gtk.pc respectively in
> champlain-version.pc and champlain-gtk-version.pc.
> So when it is generating the GIRs into the make step in champlain and
> champlain-gtk subdirectories, the .pc files are still champlain.pc and
>> > Another problem is that I can't set the PKG_BUILD_PATH to $top_builddir
>> > in champlain-gtk/Makefile.am to make g-ir-scanner find the not yet
>> > installed .pc files.
>> What happens? Could you post here what you're putting into the
>> makefiles to see what you are trying to achieve?
> I'm thinking of export PKG_BUILD_PATH=$top_builddir somewhere inside
> HAVE_INSTROSPECTION if, because champlain-gtk depends on champlain.
> if HAVE_INTROSPECTION
> -include $(INTROSPECTION_MAKEFILE)
> INTROSPECTION_GIRS =
> INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=
> INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/champlain
> introspection_sources =
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_NAMESPACE = GtkChamplain
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_VERSION =
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_LIBS =
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_PACKAGES = gobject-2.0 gtk
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_FILES =
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_INCLUDES = Clutter-1.0
> Gtk-3.0 Champlain-@CHAMPLAIN_API_VERSION@
> GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_CFLAGS = \
> $(SOUP_CFLAGS) $(GTK_CFLAGS) $(DEPS_CFLAGS) \
> -I$(top_srcdir) -I$(top_builddir)\
> -DCHAMPLAIN_COMPILATION -DCHAMPLAIN_GTK_COMPILATION
> INTROSPECTION_GIRS += GtkChamplain-@CHAMPLAIN_API_VERSION@.gir
> girdir = $(datadir)/gir-1.0
> gir_DATA = $(INTROSPECTION_GIRS)
> typelibdir = $(libdir)/girepository-1.0
> typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
> CLEANFILES += $(gir_DATA) $(typelib_DATA)
> Any ideas?
] [Thread Prev