[webkit-dev] Re: Help with KJS bindings

Alp Toker alp at atoker.com
Mon Dec 17 09:10:30 PST 2007

ankush tiwari wrote:
> Hi,
> I am trying to extend the Javascript engine to bind to my native C code. 
> Not yet succeded.
> I have seen that there is testbindings.cpp file present in 
> JavaScriptCore/bindings folder inside webkit. Would like to know how do 
> we build and test this file as. On the latest versions I see that it 
> does not compile.

Hi Ankush,

If you want to use the old C++ binding API, there's an example of how to 
get testbindings.cpp working in the Mono CLR binding:


It might make sense to use the new C JSC API for new bindings though. 
This can be found under JavaScriptCore/API. It lets you create bindings 
written plain C outside of the main WebKit build and is well documented. 
The new API is only supported by the Mac and GTK+ ports so far I think.

More information about the webkit-dev mailing list