2017年10月15日 星期日

[Doxygen] How to use doxygen to create diagram

  1. Install package
    pacman -S doxygen graphviz
  2. Goto the top directory of source code, and create doxygen configuration.
    doxygen -g a.conf


    # vim a.conf
    EXTRACT_ALL            = YES
    HAVE_DOT               = YES
    UML_LOOK               = YES

    EXTRACT_PRIVATE        = YES
    EXTRACT_STATIC         = YES
    CALL_GRAPH             = YES
    OUTPUT_DIRECTORY       = /tmp/doc/
# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
    RECURSIVE              = YES

#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER         = YES



3. run doxygen to create html
doxygen a.conf

Reference:

0 意見:

張貼留言