[webkit-dev] JavaScriptCore in Windows Applications

Brent Fulgham bfulgham at gmail.com
Wed Jun 24 17:27:29 PDT 2009


Hi Eric,

> [...]These applications do not necessarily use WebKit (they could,  
> however) but they all use JavaScriptCore because they are written in  
> JavaScript (and interact with objects vended by the application).

> [...] But, the WebKit built by the Cairo port has a ton of DLLs that  
> would have to be copied into each built application directory.

> [...]So my question is, is it possible to either merge DLLS or to  
> compile all the source into one DLL in the first place?

Both the official Apple WebKit and the Cairo build use various support  
libraries to provide various features.  The Cairo build has jpeg and  
png libraries, but in all other respects is comparable to what you  
would need for the official release.

If you don't need the graphical features provided by the WebCore  
portions of WebKit, you should be able to just use the JavaScriptCore  
DLL.  This library will still require the ICU libraries and CFlite,  
but does not need cURL, Cairo, or jpeg and png.

You should be able to build a static JavaScriptCore DLL if you build a  
static CFlite and custom ICU libraries.  Someone was interested in  
doing this (check the mailing list archives), and apparently you can  
drasticaly slim down the size of ICU by selectively excludig languages  
and features that aren't germane to your project.

Ubfortunately, I did not create CFlite static build targets, but it  
should be easy to add this to your local build.

-Brent



More information about the webkit-dev mailing list