doxygen生成源码文档

维护用 C/C++ 开发的遗留系统并添加新特性是一项艰难的任务。这涉及几方面的问题:理解现有的类层次结构和全局变量,不同的用户定义类型,以及函数调用图分析等等。

1.install

doxygen install guide: http://www.doxygen.nl/download.html

If you have the necessary build tools installed (i.e. g++, python, cmake, flex, bison), you should do the following to get the initial copy of the repository:

  • flex: fast lexical analyzer generator   https://www.gnu.org/software/flex/
git clone https://github.com/doxygen/doxygen.git
cd doxygen

After that you can use

mkdir build
cd build
cmake -G "Unix Makefiles" ..
make

To force a fresh build after an earlier check-out simple remove the build directory and redo the steps above.

After the binaries have been built, you can use

make install

to install them.

Reference

1. https://www.ibm.com/developerworks/cn/aix/library/au-learningdoxygen/index.html

2. doxygen official website: http://www.doxygen.nl/index.html

猜你喜欢

转载自www.cnblogs.com/wordchao/p/11025977.html