Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.52 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.52 KB

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