$ git submodule update --init
Fetch Chromium's code and its dependencies
$ ./scripts/gclient.sh sync
Any changes made to Chromium will be reverted, make sure to save any changes you made.
$ ./scripts/patches.sh apply
$ ./scripts/gn.sh args out/Default
Default
is the target name, you can use multiple ones and pick any name you'd like, i.e.:$ ./scripts/gn.sh args out/release $ ./scripts/gn.sh args out/debug # or if you'd like to build a multi-platform image $ ./scripts/gn.sh args out/arm64 $ ./scripts/gn.sh args out/amd64
When prompted, enter the following arguments:
# import("//chromium_fork/src/browser/args.gn")
# uncomment this to build for arm64
# target_cpu = "arm64"
# comment this to disable ccache
# cc_wrapper = "env CCACHE_SLOPPINESS=time_macros ccache"
# comment this for a debug build
# is_debug = false
# symbol_level = 0
# is_official_build = true
$ ./scripts/build.sh Default