问题
I am using Doxygen 1.8.6 on a Windows machine and try to add input-directories using wildcards.
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\
Thank you in advance.
回答1:
The solution is to use
@include {filename}
within the doxyfile. The referenced file has to be generated using scripts. My doxyfile looks like this
INPUT = .
@INCLUDE = temp_path_file
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%
回答2:
Use a batch script to create your doxygen manual. Append your doxygen Manual with lines:
INPUT += %directory%
via the Windows Shell command echo
. You can filter your directories by names there and add only specific Folders.
来源:https://stackoverflow.com/questions/31743233/doxygen-add-input-directories-using-wildcards