Last active
December 26, 2015 08:19
-
-
Save dhconnelly/7121445 to your computer and use it in GitHub Desktop.
chromium development setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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