Fix docset generation
This commit is contained in:
parent
678a64f97c
commit
2f3196c18c
|
@ -36,7 +36,9 @@ endfunction()
|
||||||
get_kicad_doc_version(KICAD_DOC_VERSION)
|
get_kicad_doc_version(KICAD_DOC_VERSION)
|
||||||
|
|
||||||
# copy and modify the "normal" Doxyfile
|
# copy and modify the "normal" Doxyfile
|
||||||
file(COPY ${SRC_DOXYFILE} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
cmake_path(GET DOCSET_DOXYFILE PARENT_PATH OUTPUT_DIR)
|
||||||
|
file(MAKE_DIRECTORY ${OUTPUT_DIR})
|
||||||
|
file(COPY_FILE ${SRC_DOXYFILE} ${DOCSET_DOXYFILE})
|
||||||
file(APPEND ${DOCSET_DOXYFILE} "
|
file(APPEND ${DOCSET_DOXYFILE} "
|
||||||
|
|
||||||
# Added for DocSet generation
|
# Added for DocSet generation
|
||||||
|
|
|
@ -41,7 +41,7 @@ if(DOXYGEN_FOUND AND DOXYTAG2ZEALDB AND SED)
|
||||||
set(SRC_DOXYFILE ${CMAKE_SOURCE_DIR}/doxygen/Doxyfile)
|
set(SRC_DOXYFILE ${CMAKE_SOURCE_DIR}/doxygen/Doxyfile)
|
||||||
|
|
||||||
# A new doxyfile with the original, plus some extra config
|
# A new doxyfile with the original, plus some extra config
|
||||||
set(DOCSET_DOXYFILE ${CMAKE_CURRENT_BINARY_DIR}}/doxygen/Doxyfile)
|
set(DOCSET_DOXYFILE ${CMAKE_CURRENT_BINARY_DIR}/doxygen/Doxyfile)
|
||||||
|
|
||||||
# Various pieces of the docset
|
# Various pieces of the docset
|
||||||
set(DOCSET_LOC ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html/${DOCSET_BUNDLE_ID}.docset)
|
set(DOCSET_LOC ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html/${DOCSET_BUNDLE_ID}.docset)
|
||||||
|
@ -67,13 +67,14 @@ if(DOXYGEN_FOUND AND DOXYTAG2ZEALDB AND SED)
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/
|
||||||
OUTPUT ${DOCSET_DOXYFILE}
|
OUTPUT ${DOCSET_DOXYFILE}
|
||||||
DEPENDS version_header
|
DEPENDS version_header
|
||||||
|
${SRC_DOXYFILE}
|
||||||
${KICAD_CMAKE_MODULE_PATH}/BuildSteps/CreateDocsetDoxyfile.cmake
|
${KICAD_CMAKE_MODULE_PATH}/BuildSteps/CreateDocsetDoxyfile.cmake
|
||||||
COMMENT "Modifying doxyfile for docset creation"
|
COMMENT "Modifying doxyfile for docset creation"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOCSET_DOXYFILE}
|
COMMAND ${DOXYGEN_EXECUTABLE} ${DOCSET_DOXYFILE}
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/doxygen
|
||||||
OUTPUT ${DOXY_TAG_FILE} ${DOXY_MAKEFILE}
|
OUTPUT ${DOXY_TAG_FILE} ${DOXY_MAKEFILE}
|
||||||
DEPENDS ${DOCSET_DOXYFILE}
|
DEPENDS ${DOCSET_DOXYFILE}
|
||||||
COMMENT "Generating Doxygen for DocSet"
|
COMMENT "Generating Doxygen for DocSet"
|
||||||
|
|
Loading…
Reference in New Issue