Nic*_*ick 8 doxygen dot environment-variables
我的团队有使用 Windows 和 Linux 的开发人员。我们将 Doxyfiles 存储在我们的版本控制系统中。因此,我们将 DOT_PATH 留空,当我从 repo 中提取代码进行代码审查时,我总是需要在本地修改 DOT_PATH。我可以以某种方式修改 Windows 中的 PATH 环境变量,以便在 DOT_PATH 为空时 Doxygen 总能找到 Dot 吗?该文档听起来像我应该能够:
# The DOT_PATH tag can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found in the path.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_PATH =
Run Code Online (Sandbox Code Playgroud)
我为我的 Windows 帐户编辑了 PATH 变量并放入了我的点路径,C:\Program Files (x86)\Graphviz2.30\bin\当我输入path命令外壳时我看到了那个路径,但 Doxygen 似乎没有看到它。
我们最近遇到了类似的问题PLANTUMLwith doxygen,请参阅下面的解决方案。
在Doxyfile签入的配置文件 ( ) 中,使用环境变量,如下所示:
PLANTUML_JAR_PATH = $(PLANTUML_JAR_PATH)
Run Code Online (Sandbox Code Playgroud)
在每个开发人员环境中,根据平台和特定机器,使用正确的路径定义变量。
在我的 linux 情况下,例如:
malff@linux-8edv:GIT_TRUNK> uname -a
Linux linux-8edv 4.1.39-53-default #1 SMP PREEMPT Thu Mar 30 06:44:23 UTC 2017 (56cc5a0) x86_64 x86_64 x86_64 GNU/Linux
malff@linux-8edv:GIT_TRUNK> env | grep PLANTUML_JAR_PATH
PLANTUML_JAR_PATH=/home/malff/plantuml/plantuml.8053.jar
Run Code Online (Sandbox Code Playgroud)
未经测试,但我认为类似的东西应该适用于DOT_PATH.
| 归档时间: |
|
| 查看次数: |
5431 次 |
| 最近记录: |