Last active
September 9, 2020 19:12
-
-
Save acoomans/1bd7d62c25b4e1d9b7a8065a7ac6963e to your computer and use it in GitHub Desktop.
Building 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
#!/bin/sh | |
echo "Checking out source code" | |
# https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md#Running-test-targets | |
cd $HOME/src | |
mkdir chromium && cd chromium | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH="$PATH:$HOME/src/chromium/depot_tools" | |
mkdir chromium && cd chromium | |
fetch --no-history chromium | |
cd src | |
gn gen out/Debug | |
#or | |
#gn args out/Debug | |
#is_component_build = true | |
#is_debug = true | |
#symbol_level = 1 | |
echo "Build" | |
autoninja -C out/Debug chrome | |
autoninja -C out/Debug unit_tests | |
autoninja -C out/Debug browser_tests | |
echo "Update source code" | |
git rebase-update | |
gclient sync | |
echo "Submit for review" | |
git cl format | |
git cl upload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment