Files
tldr/pages.zh/common/ninja.md

24 lines
412 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Ninja
> 一个旨在快速的构建系统。
> 更多信息:<https://ninja-build.org/manual.html>。
- 在当前目录中构建:
`ninja`
- 在当前目录中构建,同时并行执行 4 个任务:
`ninja -j {{4}}`
- 在指定目录中构建程序:
`ninja -C {{path/to/directory}}`
- 显示目标(例如 `install``uninstall`
`ninja -t targets`
- 显示帮助信息:
`ninja -h`