-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide bindings for ICal-GLib-3.0 #156
Comments
Thanks for trying out java-gi! I tried to generate bindings from the ICal and ICalGLib gir files, and it uncovered a few bugs in java-gi that have now been fixed in the main branch. I don't want to extend the java-gi repository to publish bindings for every GObject-based library in the world. People will expect support for those bindings, that I cannot provide. So I went a different route: The upcoming version of java-gi will include a command-line tool to generate Java bindings from a gir file. You can already use it today from the main branch:
Now there will be a
The The generated sources will have two compile errors that I consider upstream issues. You can easily fix them manually (or remove the offending methods):
These kinds of issues are extremely hard to detect by java-gi so for the default set of libraries (GTK etc) I "patch" the gir data to resolve these issues. When generating the bindings yourself from the gir file, you'll have to do this by yourself. Please let me know if this is a workable solution for you! |
Thank you! I'll look at what I can do to fix the issues mentioned. Using the generator dynamically is working great for me! |
I've thought some more about the Technically, I treat "named" and "unnamed" constructors differently in Java:
For the unnamed constructors, I can't override the return type. Java doesn't allow it. But for a named constructor like |
I logged a new issue for the constructor return type, closing this one. |
I've come across people wanting to revive bindings for libical while libical-glib exists and has introspection support, I tried to create bindings for it using java-gi but failed with errors.
It seems like it is a good candidate for more java-gi testing.
Se the conversation in libical/libical#834
The text was updated successfully, but these errors were encountered: