Created
February 4, 2015 15:23
-
-
Save pbakaus/73bead28ebcf43740eaa to your computer and use it in GitHub Desktop.
Chromium build helpers for your DevTools workflow.
This file contains hidden or 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
export PATH=/Users/pbakaus/Sites/depot_tools:$PATH | |
export PATH=/Users/pbakaus/goma:$PATH | |
export CHROMIUM_DIR=~/Sites/src | |
export BLINK_DIR=~/Sites/src/third_party/WebKit | |
fresh() { | |
cd "$CHROMIUM_DIR" && git rebase-update | |
cd "$BLINK_DIR" && git rebase-update | |
gclient sync --jobs=16 | |
} | |
build() { | |
cd "$CHROMIUM_DIR" && ../cr_gyp.sh | |
../cr_ninja.sh | |
} | |
alias chrome='/Users/pbakaus/Sites/src/out/Release/Chromium.app/Contents/MacOS/Chromium' |
This file contains hidden or 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
export PATH=$HOME/goma:$PWD/third_party/llvm-build/Release+Asserts/bin:$PATH | |
export CC=clang | |
export CXX=clang++ | |
export GYP_DEFINES="mac_sdk=10.9 disable_nacl=1 use_goma=1 fastbuild=1 debug_devtools=1" | |
$HOME/Sites/src/build/gyp_chromium -Gconfig=Release |
This file contains hidden or 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
export PATH=$HOME/goma:$PWD/third_party/llvm-build/Release+Asserts/bin:$PATH | |
export CC=clang | |
export CXX=clang++ | |
$HOME/goma/goma_ctl.py ensure_start | |
ninja -C $HOME/Sites/src/out/Release -j150 chrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These scripts add the following aliases to dramatically simplify your Chromium build process:
All commands work everywhere in your system. The following is assumed and needs to be replaced for your needs: