2024-01-22 16:45:49 +01:00
|
|
|
PROJECT_NAME = "Mbed TLS v3.5.2"
|
2018-01-19 16:21:11 +01:00
|
|
|
OUTPUT_DIRECTORY = ../apidoc/
|
2011-01-06 13:28:03 +01:00
|
|
|
FULL_PATH_NAMES = NO
|
|
|
|
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
|
|
EXTRACT_ALL = YES
|
|
|
|
EXTRACT_PRIVATE = YES
|
|
|
|
EXTRACT_STATIC = YES
|
|
|
|
CASE_SENSE_NAMES = NO
|
Allow context types with an ALT version to be linked in Doxygen
In our tests, we run `tests/scripts/doxygen.sh`, which checks that `doxygen`
runs without warnings after `scripts/config.py realfull`. In this
configuration, alternative implementations such as `MBEDTLS_RSA_ALT` are
enabled, which allows the documentation to contain references to the
`MBEDTLS_xxx_ALT` symbol itself. However, this disables context types that
alternative implementations must define in their header, such as
`mbedtls_rsa_context`. See https://github.com/Mbed-TLS/mbedtls/issues/4518
As a partial fix, allow `tests/scripts/doxygen.sh` to see dummy definitions
of the context type. This way, we can use both `#MBEDTLS_RSA_ALT` and
`#mbedtls_rsa_context` cross-references in our documentation. This is not
ideal, because `doxygen.sh` isn't testing for errors in the documentation of
the affected context types, but it's cheap progress.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-01-23 17:45:33 +01:00
|
|
|
INPUT = ../include input ../tests/include/alt-dummy
|
2015-03-10 18:37:30 +01:00
|
|
|
FILE_PATTERNS = *.h
|
2011-01-06 13:28:03 +01:00
|
|
|
RECURSIVE = YES
|
2017-12-22 15:34:37 +01:00
|
|
|
EXCLUDE_SYMLINKS = YES
|
2011-01-06 13:28:03 +01:00
|
|
|
SOURCE_BROWSER = YES
|
|
|
|
REFERENCED_BY_RELATION = YES
|
|
|
|
REFERENCES_RELATION = YES
|
|
|
|
ALPHABETICAL_INDEX = NO
|
|
|
|
HTML_OUTPUT = .
|
|
|
|
HTML_TIMESTAMP = YES
|
2022-01-21 14:43:44 +01:00
|
|
|
SEARCHENGINE = YES
|
2011-01-06 13:28:03 +01:00
|
|
|
GENERATE_LATEX = NO
|
2023-03-22 18:35:14 +01:00
|
|
|
GENERATE_XML = YES
|
2021-05-20 14:41:22 +02:00
|
|
|
MACRO_EXPANSION = YES
|
|
|
|
EXPAND_ONLY_PREDEF = YES
|
2020-03-27 17:58:13 +01:00
|
|
|
INCLUDE_PATH = ../include
|
2021-05-20 14:41:22 +02:00
|
|
|
EXPAND_AS_DEFINED = MBEDTLS_PRIVATE
|
2011-01-06 13:28:03 +01:00
|
|
|
CLASS_DIAGRAMS = NO
|
|
|
|
HAVE_DOT = YES
|
2013-09-10 16:17:15 +02:00
|
|
|
DOT_GRAPH_MAX_NODES = 200
|
2011-01-06 13:28:03 +01:00
|
|
|
MAX_DOT_GRAPH_DEPTH = 1000
|
|
|
|
DOT_TRANSPARENT = YES
|
2023-02-14 19:15:40 +01:00
|
|
|
|
2023-02-23 13:37:54 +01:00
|
|
|
# We mostly use \retval declarations to document which error codes a function
|
2023-02-23 13:03:30 +01:00
|
|
|
# can return. The reader can follow the hyperlink to the definition of the
|
|
|
|
# constant to get the generic documentation of that error code. If we don't
|
|
|
|
# have anything to say about the specific error code for the specific
|
|
|
|
# function, we can leave the description part of the \retval command blank.
|
|
|
|
# This is perfectly valid as far as Doxygen is concerned. However, with
|
|
|
|
# Clang >=15, the -Wdocumentation option emits a warning for empty
|
|
|
|
# descriptions.
|
2023-02-14 19:15:40 +01:00
|
|
|
# https://github.com/Mbed-TLS/mbedtls/issues/6960
|
|
|
|
# https://github.com/llvm/llvm-project/issues/60315
|
2023-02-23 13:03:30 +01:00
|
|
|
# As a workaround, you can write something like
|
2023-02-21 10:21:12 +01:00
|
|
|
# \retval #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription
|
2023-02-23 13:03:30 +01:00
|
|
|
# This avoids writing redundant text and keeps Clang happy.
|
2023-02-14 19:15:40 +01:00
|
|
|
ALIASES += emptydescription=""
|
2023-03-14 15:20:38 +01:00
|
|
|
|
2023-03-16 17:07:12 +01:00
|
|
|
# Define away Mbed TLS macros that make parsing definitions difficult.
|
|
|
|
# MBEDTLS_DEPRECATED is not included in this list as it's important to
|
|
|
|
# display deprecated status in the documentation.
|
|
|
|
PREDEFINED = "MBEDTLS_CHECK_RETURN_CRITICAL=" \
|
|
|
|
"MBEDTLS_CHECK_RETURN_TYPICAL=" \
|
|
|
|
"MBEDTLS_CHECK_RETURN_OPTIONAL=" \
|
|
|
|
"MBEDTLS_PRINTF_ATTRIBUTE(a,b)=" \
|
2023-07-03 12:52:37 +02:00
|
|
|
"__DOXYGEN__" \
|
2023-03-16 17:07:12 +01:00
|
|
|
|