mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Use a full config.h with doxygen
Otherwise we get warnings that some documentation items don't have corresponding #define, and more importantly the corresponding snippets are not included in the output. For that we need a modified version of the "full" argument for config.pl. Also, the new CMakeLists.txt target only works on Unix (which was already the case of the Makefile target). Hopefully this is not an issue as people are unlikely to need that target on Windows.
This commit is contained in:
parent
ddbb166041
commit
1989caf71c
3 changed files with 28 additions and 8 deletions
|
|
@ -85,9 +85,20 @@ if(ENABLE_PROGRAMS)
|
|||
add_subdirectory(programs)
|
||||
endif()
|
||||
|
||||
ADD_CUSTOM_TARGET(apidoc
|
||||
COMMAND doxygen doxygen/mbedtls.doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
# targets for doxygen only work on Unix
|
||||
if(UNIX)
|
||||
ADD_CUSTOM_TARGET(apidoc
|
||||
COMMAND mkdir -p apidoc
|
||||
COMMAND cp include/mbedtls/config.h include/mbedtls/config.h.bak
|
||||
COMMAND scripts/config.pl realfull
|
||||
COMMAND doxygen doxygen/mbedtls.doxyfile
|
||||
COMMAND mv include/mbedtls/config.h.bak include/mbedtls/config.h
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
ADD_CUSTOM_TARGET(apidoc_clean
|
||||
COMMAND rm -rf apidoc
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
endif(UNIX)
|
||||
|
||||
if(ENABLE_TESTING)
|
||||
enable_testing()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue