doc: configure doxygen file before

This is already done in TF-PSA-Crypto and it's useful to have this feature
also in Mbed TLS since we might want to use CMake variables to configure
the *.doxyfile.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2026-05-25 16:17:36 +02:00
parent 3bb3738679
commit 884c5f81a5
2 changed files with 4 additions and 1 deletions

View File

@ -488,9 +488,12 @@ if(ENABLE_PROGRAMS)
add_subdirectory(programs)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen/mbedtls.doxyfile.in
${PROJECT_BINARY_DIR}/doxygen/mbedtls.doxyfile)
ADD_CUSTOM_TARGET(${MBEDTLS_TARGET_PREFIX}mbedtls-apidoc
COMMAND doxygen mbedtls.doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doxygen)
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/doxygen)
if(ENABLE_TESTING)
enable_testing()