Doxygen:使用通配符添加输入目录 [英] Doxygen: Add input-directories using wildcards
问题描述
我正在Windows机器上使用Doxygen 1.8.6,并尝试使用通配符添加输入目录.
I am using Doxygen 1.8.6 on a Windows machine and try to add input-directories using wildcards.
我有一个包含几个包含源代码的子目录的目录,但是我只想添加特定的目录.在下面的示例中,我只想让Doxygen解析以字符串"own_"开头的子目录.
I have a directory with several sub-directories containing source-code but I only want to add specific directories. In the following example, I only want to let Doxygen parse the subdirectories starting with the string 'own_'.
当前我要分别添加每个目录,但这非常不方便,因为版本可能会更改,甚至可能会更改所包含的模块/库(目录内容由另一个程序生成).
Currently I am adding each directory separately but this is very inconvenient as the version can change or even the contained modules/libraries (the directory-content is generated by another program).
modules\
lib_x\
mod_ab\
ext_mod_ab\
ext_lib_cde\
own_module_foo_1v1\
own_module_bar_2v0\
own_library_foo_1v0\
own_library_bar_1v0\
谢谢.
推荐答案
解决方案是使用
@include {filename}
doxy文件中的
.引用的文件必须使用脚本生成.我的doxyfile看起来像这样
within the doxyfile. The referenced file has to be generated using scripts. My doxyfile looks like this
INPUT = .
@INCLUDE = temp_path_file
在Windows下获取所有匹配目录所需的命令脚本如下所示(也可以使用掩码(例如path1 _ *))
The required command-scipt to get all matching directories looks like this under Windows (masking, e.g. path1_*, works as well):
for /d %%a in ("%USER_PATH%\*") do echo INPUT += %%~fa >> %FILE_NAME%
这篇关于Doxygen:使用通配符添加输入目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!