Skip to content

Instantly share code, notes, and snippets.

@dhconnelly
Last active December 26, 2015 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dhconnelly/7121445 to your computer and use it in GitHub Desktop.
Save dhconnelly/7121445 to your computer and use it in GitHub Desktop.
chromium development setup
#!/bin/bash -e
# depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo "export PATH=$PWD/depot_tools:$PATH" >> $HOME/.bashrc
source ~/.bashrc
# get chromium
mkdir chromium
cd chromium
fetch chromium --nosvn=True
cd src
if [ ! `uname` == "Darwin" ]; then
./build/install-build-deps.sh
fi
# gyp defines
cd ..
cat > chromium.gyp_env <<EOF
{'GYP_DEFINES': 'component=shared_library dcheck_always_on=1 remove_webcore_debug_symbols=1 clang=1', 'GYP_GENERATORS': 'ninja'}
EOF
# clang
cd src
tools/clang/scripts/update.sh
# get the code
git pull --rebase origin master
gclient sync
# build
echo "run \"ninja -C out/Debug chrome\" to build Chrome."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment