Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

GN

gn.googlesource.com

  • Free plan
  • Windows
  • macOS
  • Linux

What GN is

GN is a free meta-build system that generates build files for Ninja. It is used for Chromium, Fuchsia and related projects, and is designed for thousands of build files and tens of thousands of source files. GN supports multi-platform projects and can target several platforms from one build invocation. Separate output directories allow different platform or build-type configurations to run in parallel. It generates Ninja files for C, C++, Rust, Objective C and Swift; other languages can use script-based action rules. GN checks dependencies, inputs and outputs where possible, with tools such as `gn check`, `testonly` and `assert_no_deps`. Developers configure build directories and arguments, and Ninja files are regenerated when outdated. Cross-compilation uses target OS and CPU arguments, including Android and ChromeOS examples. Binaries are provided for Linux, macOS and Windows, and source builds require a C++23 compiler. Projects must choose compatible versions because no stable release targets every project.

Who it suits

GN suits developers maintaining large, multi-platform projects that build through Ninja. It is also useful when several platform configurations must be maintained in parallel.

Good to know, and what to watch

  • Free plan with no charge stated
  • Targets multiple platforms in one invocation
  • Supports several compiled languages
  • Includes dependency and output checks
  • Provides Linux, macOS and Windows binaries
  • No stable version fits every project
  • Backward compatibility is not guaranteed
  • Projects must select compatible commits
  • Other languages need script-based rules

GN

Free

Free plan

The verdict

GN provides scalable Ninja generation for large, multi-platform codebases. Teams must manage version compatibility themselves because the project follows main-branch commits rather than a universal stable release.

What the maker publishes

Build checks
GN checks dependencies, inputs, and outputs where possible, and includes tools such as `gn check`, `testonly`, and `assert_no_deps`. source
Build directory workflow
Users configure build directories and arguments, and Ninja files are regenerated automatically when they are out of date. source
Compatibility limit
GN does not guarantee backward compatibility for new versions and has no versioning scheme beyond commits to the main branch. source
Cross-compilation
The quick start documents cross-compiling by setting target OS and CPU build arguments, including Android and ChromeOS examples. source
Downloads
The project provides GN binaries for Linux, macOS, and Windows, and also documents building GN from source with a C++23 compiler. source
Languages
GN generates Ninja files for C, C++, Rust, Objective C, and Swift; other languages can use script-based action rules. source
Parallel configurations
It supports multiple output directories with separate configurations so developers can maintain builds for different platforms or build types in parallel. source
Platform builds
GN supports multi-platform projects and can target multiple platforms in a single build invocation. source
Purpose
GN is a meta-build system that generates build files for Ninja. source
Scale
It is designed to scale to thousands of build files and tens of thousands of source files. source
Security and compliance
The project page links contributors to Google’s Contributor License Agreement; it does not state a security certification or compliance program. source
Support
Users can report bugs in the GN bug database and ask questions or follow development on the Chromium GN developers Google Group. source
Toolchain integration
GN generates Ninja build files and can integrate with compiler and linker settings defined by a project’s build configuration. source
Use cases
GN is used as the build system for Chromium, Fuchsia, and related projects. source
Versioning limit
GN has no current stable version intended to work for all projects; projects are expected to choose a compatible GN version. source

Checked against the maker's pages on 9 Oct 2026.