Skip to content

Instantly share code, notes, and snippets.

@maxogden

maxogden/build.sh

Created Aug 27, 2015
Embed
What would you like to do?
compiling chromium on ubuntu notes
# I used a computer with 8 cores, 16gb ram and 8gb SSD swap
# Assumes user is named admin and you clone stuff to /home/admin
sudo apt-get update
sudo apt-get install -y build-essential git
vim /etc/apt/sources.list
# uncomment multiverse lines, save
sudo apt-get update
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
# add to .bash_profile:
# export PATH=$PATH:/home/admin/depot_tools
wget https://storage.googleapis.com/pub/gsutil.tar.gz
tar xzvf gsutil.tar.gz
# export PATH=$PATH:/home/admin/gsutil
gsutil configure
# enter 134157665460 as project id
fetch --nohooks --no-history chromium
export BOARD=amd64-generic
cros chrome-sdk --board=$BOARD --nogoma
unset PKG_CONFIG_PATH
cd src && ./build/install-build-deps.sh
gclient sync
gclient runhooks
ninja -C out_${SDK_BOARD}/Release -j7 chrome chrome_sandbox nacl_helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment