GNOME Bugzilla – Bug 680409
libgames-support should generate a .vapi using vapigen
Last modified: 2012-09-10 03:06:55 UTC
libgames-support should be able to generate a .vapi using vapigen so that it automatically(or with minimal efforts) gets updated everytime the library changes. vala since 0.16 provides autotools integration to ease generation.
I have created a branch to act as a tool to update GnomeGamesSupport-1.0.vapi: https://gitorious.org/glassrose-gnome/gnome-games/commits/generate-vapi-using-gir-and-vapigen-680409 Since, some issues in generating a perfect vapi for libgames-support in the past have held us from using the automated method of vapi generation and since we will continue using the manual entry method for out vapi, this tool can be useful in generating incremental new codes for the vapi. It has helped me in updating the vapi with networking API. I am attaching individual patches to this bug-report for record. I hope this work will find an apt place in gnome-games repository so that coders can fetch it and instantly update the library using it without bothering to begin experimenting from scratch.
Created attachment 219542 [details] [review] [libgames-support] Add gobject-introspection support to generate a .gir
Created attachment 219543 [details] [review] [libgames-support] Use vapigen to generate GnomeGamesSupport-1.0.vapi
Created attachment 219544 [details] [review] Don't distribute GnomeGamesSupport-1.0.vapi. Its generated.
Created attachment 219545 [details] [review] Add metadata to tweak namespace name in generated vapi
Created attachment 219546 [details] [review] Convenience tool to generate vapi only for networking API
Oh no! Seems like Andre has set wrong dependencies. This one doesn't block any bug, rather it depends on completed part of my networking branch (bug#664946). This tool can reside as it is in a separate branch in gnome-games repository. To use it: 1. Fetch this branch. 2. Rebase it on top of your additions to libgames-support 3. Tweak it to generate vapi for your desired tree-subset 4. Add selected data into handwritten GnomeGamesSupport-1.0.vapi We stick to the handwritten version as gir doesn't support per-symbol header files and we do not want to be bothered by extra metadata for each symbol to avoid including unnecessary headers or to fix other library-specific complexities.
Hi, As I said libgames-support is being deprecated with the master version on containing the remaining score support. This will be removed in 3.8. So these patches are not required.
I had your words in mind which is why I said this was not meant for master either but maybe a separate branch. It's ok if that planned for the very next cycle and these set of patches will be secured in my public repository for my reference or maybe act as a tutorial for others. Thanks for reviewing