-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,20 +25,30 @@ The Ninja tools will located in depot_tools directory. Please add the path to yo | |
|
||
### 2. Build demos | ||
|
||
``` | ||
```shell | ||
$ gn gen out/Debug | ||
$ ninja -C out/Debug | ||
``` | ||
|
||
The outputs will be found in `out/Debug/` directory. | ||
|
||
### 3. Links | ||
### 3. Overall build flow | ||
|
||
- Look for .gn file in the current directory and walk up the directory tree until one is found. Set this directory to be the “source root” and interpret this file to find the name of the build config file. | ||
- Execute the build config file (The name of this file is specified in the .gn file that marks the root of the repository, this is the default toolchain). | ||
- Load the BUILD.gn file in the root directory. | ||
- Recursively load BUILD.gn in other directories to resolve all current dependencies. If a BUILD file isn't found in the specified location, GN will look in the corresponding location inside tools/gn/secondary. | ||
- When a target's dependencies are resolved, write out the .ninja file to disk. | ||
- When all targets are resolved, write out the root build.ninja file. | ||
|
||
|
||
### 4. Links | ||
|
||
- [GN project homepage](https://gn.googlesource.com/gn) | ||
- [GN Quick Start guide](https://chromium.googlesource.com/chromium/src/tools/gn/+/48062805e19b4697c5fbd926dc649c78b6aaa138/docs/quick_start.md) | ||
- [GN Language and Operation](https://chromium.googlesource.com/chromium/src/tools/gn/+/48062805e19b4697c5fbd926dc649c78b6aaa138/docs/language.md) | ||
|
||
### 4. Contact | ||
### 5. Contact | ||
|
||
Email:[email protected] | ||
|
||
|