tldr/pages.zh/common/ninja.md

25 lines
395 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ninja
> 一个快速的构建系统。
> 更多信息:<https://ninja-build.org/manual.html>.
- 在当前目录下构建:
`ninja`
- 在当前目录下构建,最多并行执行 4 个作业:
`ninja -j {{4}}`
- 在指定的目录中构建一个程序:
`ninja -C {{路径}}`
- 查看 target`install``uninstall`
`ninja -t targets`
- 查看帮助:
`ninja -h`