Skip to content

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

License

Notifications You must be signed in to change notification settings

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

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages