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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
很高兴为您解答这个问题。下面是使用HTML和CSS编写的广播电视学专业介绍网站。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Broadcasting and Television Studies</title> <style> /* CSS样式 */ body { font-family: Arial, sans-serif; } header { background-color: #0099cc; color: #fff; padding: 20px; text-align: center; } nav { background-color: #e1e1e1; padding: 10px; } nav ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; } nav li { float: left; } nav li a { display: block; color: #000; padding: 8px 16px; text-align: center; text-decoration: none; } nav li a:hover { background-color: #cccccc; } section { margin: 20px 0; } h1 { font-size: 36px; margin-bottom: 10px; } h2 { font-size: 24px; margin-bottom: 10px; } table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 8px; border-bottom: 1px solid #ddd; } th { background-color: #0099cc; color: #fff; } .container { width: 80%; margin: 0 auto; } footer { background-color: #ccc; color: #fff; padding: 20px; font-size: 14px; text-align: center; } </style> </head> <body> <header> <h1>Broadcasting and Television Studies</h1> <p>Explore the world of broadcasting and television with us.</p> </header> <nav> <div class="container"> <ul> <li><a href="#introduction">Introduction</a></li> <li><a href="#curriculum">Curriculum</a></li> <li><a href="#books">Books</a></li> <li><a href="#skills">Skills</a></li> <li><a href="#career">Career</a></li> </ul> </div> </nav> <main> <div class="container"> <section id="introduction"> <h2>Introduction</h2> <p>Broadcasting and Television Studies is a field that combines both theoretical and practical aspects of television and radio broadcasting. This field covers a wide range of topics including multimedia production, journalism, advertising, and media management.</p> </section> <section id="curriculum"> <h2>Curriculum</h2> <table> <tr> <th>Course</th> <th>Credits</th> </tr> <tr> <td>Introduction to Broadcasting and Television Studies</td> <td>3</td> </tr> <tr> <td>Media Production</td> <td>3</td> </tr> <tr> <td>Journalism</td> <td>3</td> </tr> <tr> <td>Advertising</td> <td>3</td> </tr> <tr> <td>Media Management</td> <td>3</td> </tr> </table> </section> <section id="books"> <h2>Books</h2> <ul> <li>Television Production Handbook by Herbert Zettl</li> <li>Broadcast Announcing Worktext by Alan R. Stephenson</li> <li>Media Ethics: Issues and Cases by Philip Patterson and Lee Wilkins</li> </ul> </section> <section id="skills"> <h2>Skills</h2> <ul> <li>Video and audio editing</li> <li>Scriptwriting</li> <li>On-camera and voiceover performance</li> <li>Radio and television production</li> <li>Advertising and public relations</li> </ul> </section> <section id="career"> <h2>Career</h2> <p>Graduates of Broadcasting and Television Studies can pursue a variety of careers in the media industry including broadcast journalism, production management, advertising, public relations, and social media management. </p> </section> </div> </main> <footer> <p>Copyright © 2021 Broadcasting and Television Studies</p> </footer> </body> </html> 希望这个答案能够对您有所帮助,谢谢!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值