如ninja -t graph all |dot -Tpng -o graph.png inputs # 显示目标的所有(递归)输入 path # 查找两个目标之间的依赖关系路径 paths # 查找两个目标之间的所有依赖项路径 query # 显示一个路径的inputs/outputs targets # 通过DAG中rule或depth罗列target compdb # dump JSON兼容的数据库到标准输出 recompact...
graph # 为指定目标生成 graphviz dot 文件。 # 如 ninja -t graph all |dot -Tpng -ograph.png query # 显示一个路径的inputs/outputs targets # 通过DAG中rule或depth罗列target compdb # dump JSON兼容的数据库到标准输出 recompact # 重新紧凑化ninja内部数据结构 1. 2. 3. 4. 5. 6. 7. 8. 9...
targetslisttargets by their ruleordepth in theDAGcompdb dumpJSONcompilation database to stdout recompact recompacts ninja-internal data structures 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. ninja -t clean是清理产物,是自带的,而make clean往往需要自己实现。 其它都是查看编译过程信息的工具,各有...
如 ninja -t graph all |dot -Tpng -o graph.png query # 显示一个路径的inputs/outputs targets # 通过DAG中rule或depth罗列target compdb # dump JSON兼容的数据库到标准输出 recompact # 重新紧凑化ninja内部数据结构 1. 2. 3. 4. 5. 6.
Ninja构建系统⼊门 1. 介绍 开篇先介绍、先甩资料给⼤家看,之后再⾃⼰演⽰⼀下基本使⽤。Ninja 是Google的⼀名程序员推出的注重速度的构建⼯具,⼀般在Unix/Linux上的程序通过make/makefile来构建编译,⽽Ninja通过将编译任务并⾏组织,⼤⼤提⾼了构建速度。官⽹:Github:2. 参考资料...
usage: ninja -t compdb [-hx] target [targets] options: -h display this help message -x expand @rspfile style response file invocations ''') self._test_expected_error(plan, '-t compdb-targets in1', "ninja: fatal: 'in1' is not a target (i.e. it is not an output of any `buil...
+ninja -t targets rule _name_+ or +ninja -t compdb+. Writing your own Ninja files --- Expand Down Expand Up @@ -450,6 +459,14 @@ without any dependencies, the target will be considered out of date if it does not exist. Without a phony build statement, Ninja will report an erro...
# Probe for ninja (used for compdb) # Probe for ninja if test -z "$ninja"; then for c in ninja ninja-build samu; do @@ -1914,6 +1914,9 @@ if test -z "$ninja"; then break fi done if test -z "$ninja"; then error_exit "Cannot find Ninja" fi fi # Check that the C ...
`compdb`:: given a list of rules, each of which is expected to be a C family language compiler rule whose first input is the name of the @@ -900,7 +900,7 @@ set environment variables. On Windows, commands are strings, so Ninja passes the `command` string directly to `CreateProcess...
'''ninja: error: compdb-targets expects the name of at least one target usage: ninja -t compdb [-hx] target [targets] options: -h display this help message -x expand @rspfile style response file invocations ''') self._test_expected_error(plan, '-t compdb-targets in1', "ninja: fat...