[webkit-dev] JavaScriptCore in Windows Applications

Brent Fulgham bfulgham at gmail.com
Sun Jun 21 20:38:47 PDT 2009

Hi Eric,

On Jun 21, 2009, at 7:30 PM, Eric Brunstad <webkit- 
list at 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.



More information about the webkit-dev mailing list