Skip to content

Instantly share code, notes, and snippets.

@minhng99
Created May 23, 2016 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minhng99/ce5eaab8f1db7deb43f9a3c3e93c35d7 to your computer and use it in GitHub Desktop.
Save minhng99/ce5eaab8f1db7deb43f9a3c3e93c35d7 to your computer and use it in GitHub Desktop.
Instruction of build Android System WebView
#!/bin/bash
# Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /opt/depot_tools --depth=1
export PATH=/opt/depot_tools:"$PATH"
# Cloning Chromium source
mkdir chromium
cd chromium
fetch --nohooks android
echo "y" | gclient runhooks
# Checkout specified version
cd src/
git fetch --tags
git checkout 40.0.2214.115
gclient sync --with_branch_heads --jobs 16
# Sync with HEAD version
gclient sync -j20
# (Optional) for Chromium 44.x and above
echo "y" | build/install-android-sdks.sh
# Start build
build/gyp_chromium -DOS=android
ninja -C out/Release system_webview_apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment