我们如何使用命令行在 Doxygen 中使用我的项目特定参数编辑生成的配置文件?
How can we edit generated config file with my project specific parameters in Doxygen using command line?
这里我附上了我的批处理 file.Doxyfile_HV 是我的配置文件,我只需要更改 PROJECT_NUMBER。但这对我不起作用。
@echo off
setLocal enabledelayedexpansion
( type Doxyfile_HV & echo PROJECT_NUMBER=1.1.1 ) | doxygen.exe -
doxygen Doxyfile_HV
hhc "%CD%"\html\index.hhp"
您可以更改 Doxyfile
中的值或使用手册中段落 Can I configure doxygen from the command line?:
中所述的额外参数调用 doxygen
Can I configure doxygen from the command line?
Not via command line options, but doxygen can read from stdin, so you
can pipe things through it. Here's an example how to override an
option in a configuration file from the command line (assuming a UNIX
like environment):
( cat Doxyfile ; echo "PROJECT_NUMBER=1.0" ) | doxygen -
For Windows the following would do the same:
( type Doxyfile & echo PROJECT_NUMBER=1.0 ) | doxygen.exe -
If multiple options with the same name are specified then doxygen will
use the last one. To append to an existing option you can use the +=
operator.
这里我附上了我的批处理 file.Doxyfile_HV 是我的配置文件,我只需要更改 PROJECT_NUMBER。但这对我不起作用。
@echo off
setLocal enabledelayedexpansion
( type Doxyfile_HV & echo PROJECT_NUMBER=1.1.1 ) | doxygen.exe -
doxygen Doxyfile_HV
hhc "%CD%"\html\index.hhp"
您可以更改 Doxyfile
中的值或使用手册中段落 Can I configure doxygen from the command line?:
Can I configure doxygen from the command line?
Not via command line options, but doxygen can read from stdin, so you can pipe things through it. Here's an example how to override an option in a configuration file from the command line (assuming a UNIX like environment):
( cat Doxyfile ; echo "PROJECT_NUMBER=1.0" ) | doxygen -
For Windows the following would do the same:
( type Doxyfile & echo PROJECT_NUMBER=1.0 ) | doxygen.exe -
If multiple options with the same name are specified then doxygen will use the last one. To append to an existing option you can use the += operator.