GNOME Bugzilla – Bug 630753
Add gobject-introspection support
Last modified: 2014-11-09 22:19:21 UTC
I don't find gtkglext in http://live.gnome.org/GnomeGoals/AddGObjectIntrospectionSupport list, but i think gtkglext should support g-i. My first step: add missing gobject-introspection annotations http://github.com/ex-rzr/gtkglext/commit/f3175ae198816e5c5a80b9e8a1288dbf1de2f28c I use these commands for testing (i'm not sure that they're correct completely): g-ir-scanner --warn-all -v --namespace GdkGL --identifier-prefix=GdkGL --identifier-prefix=Gdk --nsversion=1.0 -D__GDK_GL_GLEXT_H__ --pkg=gdkglext-1.0 --library=gdkglext-x11-1.0 --add-include-path=../usr/share/gir-1.0/ --include=Gdk-3.0 --output GdkGLExt-1.0.gir gdk/*.* gdk/x11/*.c g-ir-scanner --warn-all -v --namespace GtkGL --identifier-prefix=GtkGL --identifier-prefix=Gtk --nsversion=1.0 --pkg=gtkglext-1.0 --library=gtkglext-x11-1.0 --add-include-path=../usr/share/gir-1.0/ --add-include-path=. --include=Gtk-3.0 --include=GdkGLExt-1.0 --output GtkGLExt-1.0.gir gtk/*.* The same commands should be added in the Makefiles.
See http://live.gnome.org/GObjectIntrospection/AutotoolsIntegration on how to integrate gobject-introspection for an autotools based project.
(In reply to comment #0) > I don't find gtkglext in > http://live.gnome.org/GnomeGoals/AddGObjectIntrospectionSupport list It's a wiki and everybody can edit it. ;-) Done.
I added gobject-introspection support: http://github.com/ex-rzr/gtkglext/commit/8ba11ba74fbdf00fc2a719db175e054f4c96354c
I don't think we want to add a copy of introspection.m4 if we can avoid it. I'd prefer to go with "Method 2" (as described in the wiki page).
thanks Anton: I cherry-picked your commit, and then removed the copy of introspection.m4, like Braden preferred.