After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680409 - libgames-support should generate a .vapi using vapigen
libgames-support should generate a .vapi using vapigen
Status: RESOLVED WONTFIX
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
trunk
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on: 664946
Blocks:
 
 
Reported: 2012-07-22 20:00 UTC by Chandni Verma
Modified: 2012-09-10 03:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[libgames-support] Add gobject-introspection support to generate a .gir (9.01 KB, patch)
2012-07-24 01:38 UTC, Chandni Verma
none Details | Review
[libgames-support] Use vapigen to generate GnomeGamesSupport-1.0.vapi (6.21 KB, patch)
2012-07-24 01:38 UTC, Chandni Verma
none Details | Review
Don't distribute GnomeGamesSupport-1.0.vapi. Its generated. (9.13 KB, patch)
2012-07-24 01:38 UTC, Chandni Verma
none Details | Review
Add metadata to tweak namespace name in generated vapi (1.32 KB, patch)
2012-07-24 01:38 UTC, Chandni Verma
none Details | Review
Convenience tool to generate vapi only for networking API (1012 bytes, patch)
2012-07-24 01:38 UTC, Chandni Verma
none Details | Review

Description Chandni Verma 2012-07-22 20:00:43 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.
Comment 1 Chandni Verma 2012-07-24 01:30:03 UTC
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.
Comment 2 Chandni Verma 2012-07-24 01:38:39 UTC
Created attachment 219542 [details] [review]
[libgames-support] Add gobject-introspection support to generate a .gir
Comment 3 Chandni Verma 2012-07-24 01:38:43 UTC
Created attachment 219543 [details] [review]
[libgames-support] Use vapigen to generate GnomeGamesSupport-1.0.vapi
Comment 4 Chandni Verma 2012-07-24 01:38:48 UTC
Created attachment 219544 [details] [review]
Don't distribute GnomeGamesSupport-1.0.vapi. Its generated.
Comment 5 Chandni Verma 2012-07-24 01:38:52 UTC
Created attachment 219545 [details] [review]
Add metadata to tweak namespace name in generated vapi
Comment 6 Chandni Verma 2012-07-24 01:38:57 UTC
Created attachment 219546 [details] [review]
Convenience tool to generate vapi only for networking API
Comment 7 Chandni Verma 2012-07-25 21:45:04 UTC
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.
Comment 8 Robert Ancell 2012-08-31 07:59:30 UTC
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.
Comment 9 Chandni Verma 2012-09-10 03:06:55 UTC
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