ozanmakes / WebCore

Ultralight WebCore Port

Home Page:https://ultralig.ht

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ultralight WebCore Port

Ultralight maintains its own port of WebCore (the core layout engine of WebKit). This module statically links against JavaScriptCore and uses our own custom, lightweight renderer (UltralightCore) for all drawing.

We've streamlined the build process to use CMake/Ninja on all platforms. Pre-built dependencies will be automatically fetched for your platform during build.

Building typically takes 20 minutes or less on most modern machines.

Useful Links

Link URL
Main Website https://ultralig.ht
Chat on Discord! https://chat.ultralig.ht

Downloading pre-built binaries

Pre-built binares are uploaded to the following S3 buckets every commit:

Click any of the bucket links to get an XML file listing. Download a package by appending the filename to the bucket URL.

You'll need the following:

Setting up on Windows

  1. Install Visual Studio 2019 (Free Community Edition works fine). Remember to select the C++ packages.
  2. Install Chocolatey (https://chocolatey.org).
  3. Run the following from command line:
choco install cmake ninja strawberryperl python2 ruby1.9 gperf

Setting up on macOS

  1. Install Xcode 9.4.1 (Older versions of Xcode can be found here: https://developer.apple.com/download/more/)
  2. Install Homebrew (https://brew.sh/)
  3. Homebrew may overwrite the command line tools, if so run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
  4. Run the following from command line:
brew install cmake ninja

Setting up on Linux (Debian 9.5+)

To get everything on Linux, just type the following:

sudo apt install cmake ninja-build gperf ruby clang libgcrypt20 libgcrypt11-dev lld-4.0

Building from source

Building on Windows

To build WebCore for Windows / 64-bit:

make release x64

OR

To build WebCore for Windows / 64-bit with the UWP toolchain:

make release x64_uwp

Building Debug on Windows

To build non-optimized WebCore with Debug PDBs:

make full_debug x64

Building on Windows with locally-built dependencies

By default, the build scripts in this repo fetch pre-built dependencies from our servers.

To build WebCore using locally-built dependencies in the /deps folder (really only useful if you need to build against modified modules/deps):

make release x64 local

Building on macOS and Linux

To build for macOS/Linux:

./make

Build products

Build products will be in <build_dir>/out.

If your checkout is up-to-date, a 7zip release archive will also be generated in <build_dir>.

About

Ultralight WebCore Port

https://ultralig.ht

License:GNU Lesser General Public License v2.1


Languages

Language:C++ 77.4%Language:C 7.2%Language:JavaScript 6.5%Language:Objective-C++ 4.2%Language:Objective-C 0.9%Language:CSS 0.9%Language:Perl 0.7%Language:CMake 0.6%Language:Python 0.6%Language:Ruby 0.5%Language:Assembly 0.2%Language:HTML 0.1%Language:Makefile 0.1%Language:Shell 0.0%Language:Roff 0.0%Language:Yacc 0.0%Language:Batchfile 0.0%