2020-07-09 21:30:44 +01:00
|
|
|
|
# ninja
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 一个快速的构建系统。
|
2021-08-31 08:13:49 +01:00
|
|
|
|
> 更多信息:<https://ninja-build.org/manual.html>.
|
2020-07-09 21:30:44 +01:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 在当前目录下构建:
|
2020-07-09 21:30:44 +01:00
|
|
|
|
|
|
|
|
|
`ninja`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 在指定的目录中构建一个程序:
|
2020-07-09 21:30:44 +01:00
|
|
|
|
|
|
|
|
|
`ninja -C {{路径}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 查看 target(如 `install` 和 `uninstall`):
|
2020-07-09 21:30:44 +01:00
|
|
|
|
|
|
|
|
|
`ninja -t targets`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 查看帮助:
|
2020-07-09 21:30:44 +01:00
|
|
|
|
|
|
|
|
|
`ninja -h`
|