# Doxygen configuration, used by breathe, the Doxygen-to-Sphinx bridge

  PROJECT_NAME           = "Cyrus IMAP"
  PROJECT_BRIEF          = "the best email, contact, and calendar server around"
  OUTPUT_DIRECTORY       = docsrc/_doxygen

### What files do we include?

  INPUT                  = imap lib sieve
  FILE_PATTERNS          = *.h
  RECURSIVE              = YES
  # EXCLUDE_PATTERNS       = */test/* *_test.c

  # Vendored headers.  Its Doxygen is relative to its project, it'll just
  # cause chaos if we include it here.  Keep in step with C_API_VENDORED in
  # docsrc/c-api.mk.
  EXCLUDE                = lib/xxhash.h

### What structures do we include?

  # Do include static members from processed files
  EXTRACT_STATIC         = YES

  # Expand all the macros
  MACRO_EXPANSION        = YES
  EXPAND_ONLY_PREDEF     = NO

  # Drop GCC attributes, which split declarations Sphinx then can't parse
  PREDEFINED             = "__attribute__(x)="

### What do we emit?

  # Print warnings, but not a progress line for every file and structure
  QUIET                  = YES

  # Only generate XML, it's all breathe needs
  GENERATE_HTML          = NO
  GENERATE_LATEX         = NO
  GENERATE_XML           = YES
  XML_PROGRAMLISTING     = NO

  # Emit warnings when a documented function has undocumented parameters.
  WARN_NO_PARAMDOC       = NO
  WARN_IF_INCOMPLETE_DOC = NO

  # Most of our headers have no Doxygen comments yet, so warning about every
  # undocumented member buries the warnings worth reading.
  WARN_IF_UNDOCUMENTED   = NO

  # The build sets this to FAIL_ON_WARNINGS when Sphinx warnings are fatal, too.
  WARN_AS_ERROR          = $(DOXYGEN_WARN_AS_ERROR)
