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
.gnfile 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_configandchromium_config_dirvariables. - Default args changed to
is_clang=false use_sysroot=falseon Linux. - Default args changed to
use_xcode_clang=trueon macOS. - The
DEPOT_TOOLS_WIN_TOOLCHAINis set to0by default on Windows. - Certain very Chromium-specific configurations have been removed.