-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
gir files are Linux-only #35
Comments
Last return list of So we can add cfg_condition "not(osx)" to |
We have a similar problem in GStreamer with Works but is ugly, but I don't see a better solution for this with the current way how gobject-introspection works. |
Also on macos it is causing issue with gio:
These are Linux only and not defined in macos gio. |
Can you create an issue against gio for that? Unfortunately there is no such information in the gir files so we need to manually configure that on our side. |
Thank you for reply. I dont understand why it should be issue to gir. On my local file in the |
The problem is that we need to generate the bindings once from a single .gir file as otherwise it would have to be generated every time and we would have no control over how broken your personal .gir files are and in what state they're in, and more importantly everybody would have their own version of the bindings and there would be no reproducability. The problem with gobject-introspection is that it's not well-designed but it's the best and only thing we have right now, so we have to work around such things. Meaning in your specific case that in gio that specific API has to be marked as not available on macOS. |
Got it. yes, gir is not very well designed. i see that you have already |
Yeah that's why I was asking you to create an issue for gio so that's being kept track of and can be fixed :) |
Ah, so for gtk-rs/gio. not for glib/gio :) |
Ah yes, sorry for not being more clear |
I guess this something we can close, as it is not really related to this repository and we can't do much about it with the current design of GIR. The best we could do is manually implement those platform specific functions |
These .gir files only work on Linux systems! For instance g_desktop_app_info_get_type is not available in macOS systems (g_osx_app_info_get_type is instead). Perhaps these files could be generated on the fly for each platform?
The text was updated successfully, but these errors were encountered: