D Binding Generation Tool
Asked Answered
R

3

5

Is there a tool to automatically create D bindings from C headers? I've hade some problems with obselete D wrappers on github and it would be great to have a tool do all the manual work for me and also assure that my bindings are up-to-date.

Repugn answered 3/3, 2013 at 21:57 Comment(0)
X
5

There is also dstep by Jacob Carlborg which uses LLVM to provide the header conversion.

Xena answered 4/3, 2013 at 7:59 Comment(0)
C
2

htod is available from the dlang website

Curio answered 3/3, 2013 at 22:27 Comment(2)
You should note that htod is Windows only.Xena
It also looks rather outdated to me, have never had a single real-world header that "just worked" after conversion with it.Berkelium
C
0

See this thread:

http://forum.dlang.org/thread/[email protected]?page=1

There's 'dstep'.

'swig' (quite likely the best choice).

'mkconfig' at http://gentoo.com/di/mkconfig.html

Charybdis answered 13/3, 2013 at 23:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.