Skip to content

Instantly share code, notes, and snippets.

@0x1mason
Last active April 21, 2018 22:42
Show Gist options
  • Save 0x1mason/5c9dd03c22fd765fec5e to your computer and use it in GitHub Desktop.
Save 0x1mason/5c9dd03c22fd765fec5e to your computer and use it in GitHub Desktop.
Chromium Build Setup
apt-get update
apt-get install -qy git clang
mkdir ~/chromium
cd ~/chromium
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo "export DEPOT_TOOLS=\"\$HOME/chromium/depot_tools\"" >> ~/.bashrc
echo "export PATH=\"\$PATH:$DEPOT_TOOLS\"" >> ~/.bashrc
source ~/.bashrc
# --no-history makes the download considerable smaller
fetch --no-history --nohooks chromium --nosvn=True
cd ./src
cd ~/chromium && ./build/install-chroot.sh
# Pick a precise pangolin (12.04) 32bit install from the options
# Re-install the build dependencies
precise32 ./build/install-build-deps.sh
export GYP_DEFINES="clang=0 target_arch=ia32"
precise32 gclient runhooks
precise32 ninja -C out/Release chromedriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment