Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhuster committed Jan 15, 2019
1 parent bdb35c0 commit dcf7153
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit dcf7153

Please sign in to comment.