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: Fri, 18 Mar 2011 01:37:03 +0100
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
> champlain-gtk.pc.
> 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
> champlain-gtk.pc.
I see. I've changed it in master so the .pc files with version numbers
are generated during configure.
>
>
>> > 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.
Don't you rather want to set the PKG_CONFIG_PATH variable as we do in
bindings/vala/champlain-gtk/create.sh? What's the exact problem you
have?
Jiri
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]