Vala and Snapcraft. Issues with a library part in Vala.
Michael Hall
mhall119 at ubuntu.com
Tue Jan 31 15:49:03 UTC 2017
The compiler should automatically look for it in ./stage/ but you need
to make sure that your library is listed in the after: [] stanza on your
application part, so that it will be built and staged for your app to use.
There's an example you can look at here:
https://github.com/ubuntu/snappy-playpen/blob/pantheon-mail/pantheon-mail/snapcraft.yaml
Michael Hall
mhall119 at ubuntu.com
On 01/31/2017 10:37 AM, Luca Dionisi wrote:
> I want to prepare a snap for a software written in Vala.
> It needs a library written in Vala too.
>
> I made a 'part' that depends on another one with 'after'.
>
> The library part is pulled, built and staged.
> When it tries to build the app part, the file .vapi is not found by the
> vala-compiler.
>
> The vapi file is present in ./stage/share/vala/vapi and also in
> ./parts/[mylibpart]/install/share/vala/vapi.
>
> Which one should the compiler be instructed to look at?
>
> And why doesn't it? Is Vala support not present yet or do I
> miss something in the snapcraft.yaml?
>
> --Luca
>
More information about the Snapcraft
mailing list