gtkd-developers / gir-to-d

Create D bindings from GObject introspection files
GNU Lesser General Public License v3.0
23 stars 13 forks source link

D-to-gir? #28

Open andre2007 opened 5 years ago

andre2007 commented 5 years ago

Did you considered writing a D to gir generator?

Dmd should output all needed information about extern C definitions and data structures to generate gir files.

Therefore it would be easy to generate wrappers for multiple languages for a D library.

What do you think?

MikeWey commented 5 years ago

For Gobject-Introspection / gir files, the the library needs to be based on GObject, either the C one or the D binding. Not a lot of D libraries are based on GObject, so currently i don't think it's worthwhile.