Skip to content

Streamlet/gn_toolchain

Repository files navigation

gn toolchain

(中文版本见这里)

This project provides a simple and out-of-the-box gn toolchain configuration, to make cross-platform compile easier under the gn+ninja build system.

Usage

  1. Put all files of this project into 'build' directory in the root of your project. You could import this project in the form of ordinary folder, submuodule, subtree, or though some dependency manager system, as you wish.

  2. Create a '.gn' file in the root directory, with content as following:

buildconfig = "//build/BUILDCONFIG.gn"
  1. Write your 'BUILD.gn' files for your project, following the rules of gn.

  2. Run gn gen out and ninja -C out, to build your project.

Sample

Please refer to project gn_toolchain_sample.

Fetch gn & ninja

About

Zero-conf toolchain for GN+Ninja build system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages