Announcing WebKit SDL port

转自:http://www.dorothybrowser.com/announcing-webkit-sdl-port/

下载地址 https://gitorious.org/spiegel/webkitsdl/source/master:

Hi. I am Kwang Yul Seo, chief computer scientist at Company 100, Inc.. Today I am happy to announce the WebKit SDL port.

You might wonder why we need another WebKit port because we already have many ports including Mac, Chromium, Qt and Gtk. The reason is simple. We need a simple port which uses skia as its graphics backend. Chromium port uses skia, but the code base of Chromium is quite complex and not easy to experiment new features.

Our team is working on multiple WebKit ports including Android NDK and Linux (STB/TV). We use skia for all the ports we have. Because it takes a long time to build and test on mobile and embedded devices, we needed a bare minimum desktop WebKit port which uses skia.

We’ve decided to open the source code so that the SDL users can embed WebKit in their applications. You can retrieve the source code from the following git repository:

git://www.dorothybrowser.com/WebKitSDL.git

You can build WebKit SDL both on Linux and Mac OS X. Because WebKit SDL depends on skia for graphics, you must build skia before you build WebKit.

To build skia, change the current working directory to Source/ThirdParty/skia.

cd Source/ThirdParty/skia

And make.

make

On Mac OS X, you must give “SKIA_BUILD_FOR=mac” as in the following:

make SKIA_BUILD_FOR=mac

The skia library (libskia.a) is generated under Source/ThirdParty/skia/out/.

Because WebKit SDL build script is written in cmake, you need cmake program to build WebKit SDL. Use -DPORT=SDL to specify the port.

mkdir WebKitBuild
cd WebKitBuild
cmake -DPORT=SDL ../Source

Now we have makefile generated in WebKitBuild directory. Build WebKit with make.

make

To build WebKit SDL in debug mode, pass “-DCMAKE_BUILD_TYPE=debug” as cmake command line arguments.

cmake -DPORT=SDL -DCMAKE_BUILD_TYPE=debug ../Source/

Once build is done, you can launch SDLLauncher. It is a simple test browser located under Tools/SDLLauncher.

./Programs/SDLWebLauncher
posted @   Bigben  阅读(907)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示