GNOME Bugzilla – Bug 768585
Generate VAPI just on C libraries and using GObject
Last modified: 2016-07-11 22:36:12 UTC
We need to declare if a C library project will have GObject classes, if so then VAPI generation for Vala bindings is Ok, but if not, should be disable by default. In order to accomplish this we need to add options on "ide" command line tool, to create GObject based libraries and enable VAPI generation. While Vala projects do not require VAPIGEN, then this is not useful for them. Because the last, I will push a commit to turning it off by default, unless ied tool is fixed.
Created attachment 331101 [details] [review] Turning off by default VAPIGEN It is ready to push in my local 3.20 branch.
Supporting non-GObject based C libraries isn't really in scope for these templates. Our long term goal is to teach people how to write good GObject based C libraries. I'd be amenable to setting this False when Vala though.
Created attachment 331262 [details] [review] VAPIGEN enable just for C languages When project is C this patch enable VAPIGEN. I can't find a way to know if I'm a library template to check against, because VAPIGEN is useful just for libraries.
Review of attachment 331262 [details] [review]: cool