commit | 3ddcc49aadcf5dbc9c940d4b75619f09544cc947 | [log] [tgz] |
---|---|---|
author | Oleh Hushchenkov <o.hushchenkov@gmail.com> | Tue Jun 18 15:48:31 2019 +0300 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jun 18 13:09:10 2019 +0000 |
tree | eb2bea7fc610f7421ea740aada1697f5d9587d9d | |
parent | 972ed755f8e6d31cae9ba15fcd08136ae1a7886f [diff] |
Fix build with GCC on FreeBSD Include <limits.h> for visibility of "PATH_MAX". Add FreeBSD to known platforms in "gen.py". Change-Id: Ied0608962b9d044fe4d2f08c4dbd0dea5158ba26 Reviewed-on: https://gn-review.googlesource.com/c/gn/+/5181 Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org>
GN is a meta-build system that generates build files for Ninja. There is documentation in docs/ and a presentation on it.
You can download the latest version of GN binary for Linux, macOS and Windows.
Alternatively, you can build GN from source:
git clone https://gn.googlesource.com/gn cd gn python build/gen.py ninja -C out # To run tests: out/gn_unittests
On Windows, it is expected that cl.exe
, link.exe
, and lib.exe
can be found in PATH
, so you'll want to run from a Visual Studio command prompt, or similar.
On Linux and Mac, the default compiler is clang++
, a recent version is expected to be found in PATH
. This can be overridden by setting CC
, CXX
, and AR
.
If you find a bug, you can see if it is known or report it in the bug database.
GN uses Gerrit for code review. The short version of how to patch is:
Register at https://gn-review.googlesource.com. ... edit code ... ninja -C out && out/gn_unittests
Then, to upload a change for review:
git commit git cl upload --gerrit
When revising a change, use:
git commit --amend git cl upload --gerrit
which will add the new changes to the existing code review, rather than creating a new one.
We ask that all contributors sign Google's Contributor License Agreement (either individual or corporate as appropriate, select ‘any other Google project’).
You may ask questions and follow along w/ GN‘s development on Chromium’s gn-dev@ Google Group.