Steps to take if you want to build your own Chromium browser on macOS.
Note: You will need a fast stable connection as downloading source code takes a long time.
You will need:
Clone the depot_tools repo: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Add depot_tools
to the start of your PATH via ~/.bashrc
.
export PATH=/path/to/depot_tools:$PATH
mkdir Chrome
cd Chrome
# start download
fetch chromium
cd src
gn gen out/Default --ide-xcode
open out/Default/ninja/all.xcworkspace
Run the Chronmium-specific hooks.
gclinet runhooks
Build the source code (where out/Default
is the value you provided above).
autoninja -C out/Default chrome
Run the source code (change out/Default
accordingly).
out/Default/Chromium.app/Contents/MacOS/Chromium
Update the source code.
git pull
Sync dependencies to the appropriate versions and re-run hooks
gclinet sync
Create a Release build.
is_debug = false