On Thu, Sep 29, 2011 at 6:47 PM, toddgeist <[email protected]>wrote:
> I am looking to hire someone to help us embed v8 into another > application. The application is cross platform and has a C/C++ SDK > for both platforms. The goal of the project is to create a plugin that > gives the application the ability to execute JavaScript code. > > If all you want to do is execute vanilla JS code, without any bindings to your own native classes, then look at the sample shell app (shell.cc) in the v8 tree - it demonstrates all the code you need for this: a) Set up v8 environment (1 time only) b) When passed in script code: c) Read it in as a string (if it's coming from a file or whatnot) d) Compile it e) Run it If you want to add your own native classes to the mix, there are several frameworks for doing so. Links to several can be found at: http://code.google.com/p/v8-juice/wiki/HomePage#Related_work -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
