NOTE: This is documentation for the feature I added for binding C++ libraries to Haxe for Kha for the Krom and HashLink targets. The discussion is at armory3d/haxebullet#25. This can be moved over to a Wiki page for the Kha repo when the feature gets merged.
Kha has a method for binding C++ libraries to Haxe for use in Kha for its Krom, HTML5, and HashLink targets. It uses Emscripten and the webidl binding library to automatically create Haxe bindings based on a WebIDL file that defines the interfaces to bind. A full example of a Khabind library is haxebullet which is used by the Armory3D project for 3D physics.
Note: When targeting a JavaScript platform such as Krom or HTML5, the C++ library you are binding to will be compiled to