This is a modified version of GN that provides Chromium's build configurations as builtin rules, which can be used to build any project.
- Download the zip archive from Releases page and extrat it.
- Add the directory to
PATH
. - Write to project's top level
.gn
file withuse_chromium_config = true
. - Run
gn gen
.
Example project files can be found under examples.
This project is not affliated with Chromium or Google, use it at your own risk.
node scripts/bootstrap.js
node scripts/build.js
- Added
use_chromium_config
andchromium_config_dir
variables. - Default args changed to
is_clang=false use_sysroot=false
on Linux. - Default args changed to
use_xcode_clang=true
on macOS. - The
DEPOT_TOOLS_WIN_TOOLCHAIN
is set to0
by default on Windows. - Certain very Chromium-specific configurations have been removed.