On Fri, Mar 1, 2013 at 1:19 PM, Cumulus Strato <cumulus.str...@gmail.com> wrote:
>
> Hi all,
> I'm working on a WebKit based project where data structures defined in C++
> needs to accessed from JS and vice versa . I'm planning to create a
> generator to generate the jscore wrapper/proxy classes necessary . I have 2
> options,
>
> 1) Parse the C++ code (using clang) to gather information about the data
> structures (public members and functions) and generate JS wrappers from them
>
> 2) Parse IDL files and generate both C++ (which can be customized by
> inheritance) as well as JS wrapper/proxy objects.
>
> Which is the better option?

WebKit already has bindings generators that take as input IDL files.
They output "native bindings" for JSC or V8 depending on what port you
are building.

Maybe you wanna have a look at these generators and tweak/extend them
to generate "wrapped bindings" for JSC.

http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/scripts

Cheers,
_______________________________________________
webkit-help mailing list
webkit-help@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-help

Reply via email to