zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Step By Step(C++模板类)
    Step By Step(C++模板重载和特化)
    Step By Step(C++模板推演)
    Step By Step(C++模板Policy)
    Step By Step(C++模板参数)
    Step By Step(C++模板解析)
    Step By Step(C++模板Trait)
    Step By Step(C++模板基本技巧)
    离职引发的诸多感触
    Step By Step(C++模板函数)
  • 原文地址:https://www.cnblogs.com/bigben0123/p/3476204.html
Copyright © 2011-2022 走看看