Skip to content

philipcraig/gn

 
 

Repository files navigation

Standalone GN

Build Status Build status

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.

Building

With GN installed

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)

Without GN

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).

About

Standalone version of Chromium's GN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.9%
  • C++ 13.8%
  • Shell 11.5%
  • Objective-C++ 1.3%
  • Other 1.5%