This repo contains a standalone version of Chromium's GN build system.
For more information regarding GN itself see here.
Note that this project is work-in-progress and not affliated with Chromium or Google.
gn gen out/Release --args="is_debug=false"
ninja -C out/Release gn
See here for a reference of the most commonly used build args.
To get a list of all possible build args use gn args out/Release --list
.
Note that currently this emits a long list of Chromium-related args
which have no influence on the GN build.
If you intend to work on GN, the output directory should be two levels
deep inside the source tree, because the GN tests use hardcoded relative
paths (see base/base_paths_*.cc: DIR_SOURCE_ROOT
handling)
tools/gn/bootstrap/bootstrap.py
Note: On Windows bootstrap.py expects to be run inside a Visual Studio Command Prompt (i.e. vcvarsall has been run).