воскресенье, 23 ноября 2008 г.

CoreFoundation Gone?

Original: CoreFoundation Gone?

One of the major impediments to using WebKit on Windows (assuming you are not writing software for Apple) is that the implementation relies on a suite of proprietary support libraries, such as CoreGraphics, CoreFoundation, and CFNetwork.

Readers of this blog will be familiar with some of the steps I have taken to attempt to mitigate this by using Cairo (rather than CoreGraphics) and Curl (rather than CFNetwork). However, there still remained large bits of logic written to use various useful data types and operating system support logic found in CoreFound function on both platforms. I intend to also port it to Linux once I have some spare time.

The sources are mostly complete, and easy to build on OS X using darwinbuild. However, the instructions on Apple's website are out of date, and the posted example program doesn't even work in the version of CF-Lite (299) referenced on the page. There are no working instructions or Makefiles for building the current Leopard-based sources on Windows (bug filed.) Furthermore, a lot of the Windows-specific code that appeared in earlier releases seems to have been stripped out in later releases. 

Thankfully, by reviewing every one of the released CF-Lite tarballs, I was able to piece together much of what was missing. It is unfortunate that the Open Source source omits (or in some cases excludes via "#if 0" stanzas) the Windows versions of these routines. I took the opportunity to file some radar bugs

Комментариев нет: