# sudo apt-get install doxygen
安裝web server(因為doxygen檔案以html形式呈現):
# sudo apt-get install apache2
# sudo apt-get install graphviz
使用Doxygen:
# sudo doxygen -g DOXYGEN_CONFIG_FILE
# sudo vim DOXYGEN_CONFIG_FILE
# sudo doxygen DOXYGEN_CONFIG_FILE
修改DOXYGEN_CONFIG_FILE內容
- PROJECT_NAME = "glusterfs"
- PROJECT_NUMBER = 3.8.3
- OUTPUT_DIRECTORY = /var/www //產生文件的folder
- CREATE_SUBDIRS = YES
- ALLOW_UNICODE_NAMES = YES
- OUTPUT_LANGUAGE = English
- FULL_PATH_NAMES = YES
- INPUT = /root/glusterfs //source code的folder
- RECURSIVE = YES
- HAVE_DOT = YES
- CALL_GRAPH = YES
- CALLER_GRAPH = YES
沒有留言:
張貼留言