π» Research
V8, Webkit Build
Linux V8, Webkit Build Guide
OS Environment
Linux webkit-virtual-machine 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
OS Version
Ubuntu VERSION=18.04.6 LTS (Bionic Beaver)
Webkit
Install System Dependency
bash
apt install git gperf python ruby bison flex cmake libicu-dev build-essential ninja-build
Clone Webkit Repo
bash
git clone git@github.com:WebKit/WebKit.git
Build Webkit
bash
# Build Tools
./Tools/Scripts/build-webkit
# JSC Only
./Tools/Scripts/build-webkit --jsc-only (--debug | --release)
V8
bash
apt install git vim ninja-build python3.8
sudo ln -sf /usr/bin/python3.8 /usr/bin/python3
Clone V8 Build Tools
bash
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
Fetch V8 Repo
bash
fetch v8
cd v8
Install Build Dependency
bash
gclient sync -D
./build/install-build-deps.sh
Build V8
bash
./tools/dev/gm.py [config]
# config = [x64.release, x64.debug]