Hi Eric,

On Jun 21, 2009, at 7:30 PM, Eric Brunstad <webkit- l...@ericbrunstad.com> wrote:
I have developed a Mac application that I am porting to Windows. How can I use JavaScriptCore in my Windows application?

You can try my port of the Apple example program "CallJS"; it's an attempt to illustrate a Windows program using WebKit, interacting between C++ and JavaScript. http://idisk.mac.com/bfulgham-Public/CallJS.zip

Are there precompiled JavaScriptCore.dll files that can be linked right in to applications and freely distributed?

Not really. I try to keep a build on my iDisk (same spot as that example), but it's a bit out of date.

To be freely distributed, you can't use the CoreGraphics, CoreFoundation, or CFNetwork dll's. I've managed to ressurect Apple's original Windows Cairo port (you can see some further info on http:// lest.blogspot.com.) It's currently built using CFLite ( http://sourceforge.net/projects/opencflite/ , Apple's Open Source portions of the full CoreFoundation), cURL for the network stack, and Cairo for graphics.

For a full example of what it's capable of, check out the Appcelerator Titanium project's Windows port, which uses this build of WebKit.

Pretty much all of the Cairo logic is in the tree, with the exception of a small patch to conditionalize printing in WebFrame.cpp. I've tried to provide dll's for the build requirements on my iDisk, and have had a few independant reports of successful builds.

Let me know if I can provide any further info.

Thanks,

-Brent

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to