WebKit for Wayland

Building prerequisites

For Ubuntu 16.04 LTS (Xenial Xerus), please type:

$ sudo apt-get install intltool libtool-bin autoconf automake autopoint cmake gcc g++ bison flex gawk gperf ruby git libversion-perl libgnutls-dev libexpat-dev libxml2-dev libxslt-dev libsqlite3-dev libjpeg9-dev libfreetype6-dev libharfbuzz-dev libxcb-xkb-dev libwayland-dev libgbm-dev libgles2-mesa-dev libgstreamer1.0-dev libwebp-dev

Building

From the root directory, please type:

$ Tools/Scripts/update-webkitwpe-libs
$ Tools/Scripts/build-webkit --wpe

Running

If it is not already the case, you will need to execute a Wayland compositor.

To do this quickly under Ubuntu 16.04 LTS (Xenial Xerus), please type:

$ sudo apt-get install weston
$ export XDG_RUNTIME_DIR=/tmp
$ weston

Then, to run WebKit for Wayland:

$ export WPE_BACKEND=wayland
$ Tools/Scripts/run-wpe
$ Tools/Scripts/run-wpe http://www.bouncyballs.org

To run under a specific Weston instance:

$ weston --socket=wpe-test
$ WAYLAND_DISPLAY=wpe-test Tools/Scripts/run-wpe

Note: Careful with running Weston with WAYLAND_DISPLAY active as it will try to use it to set it up itself and might result in failure.