1013 B
1013 B
Getting GN
GN is a meta-build system that generates build files for Ninja.
Getting a binary
You can download the latest version of GN binary for Linux and macOS from Google's build infrastructure
| MacOS | Linux |
|---|---|
| amd64 arm64 |
amd64 arm64 |
Alternatively, you can build GN from source with a C++17 compiler:
git clone https://gn.googlesource.com/gn
cd gn
python build/gen.py
ninja -C out
# To run tests:
out/gn_unittests
Note: On Linux and Mac, the default compiler is clang++, a recent version is expected to be found in PATH. This can be overridden by setting CC, CXX, and AR.
For more inforamtion, please visit: https://gn.googlesource.com/gn/