mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
Build Doxygen docs in whatever the CMake build directory is (#1357)
* Build Doxygen docs in whatever the CMake build directory is Fixes #1341. * Missing Doxygen build directory in CI
This commit is contained in:
parent
f272232c86
commit
aed3b4965f
@ -42,7 +42,7 @@ jobs:
|
||||
command: python3 -m pytest --verbose tests/test_code_conventions.py
|
||||
- run:
|
||||
name: Check that doxygen can parse the documentation
|
||||
command: mkdir -p build/docs && ./scripts/run_doxygen.sh doxygen docs/.Doxyfile
|
||||
command: mkdir -p build/docs && ./scripts/run_doxygen.sh doxygen docs/.Doxyfile build/docs
|
||||
|
||||
buildcheck:
|
||||
description: Test that we can build a single KEM/Signature pair as part of a minimal build.
|
||||
|
@ -187,7 +187,7 @@ if(NOT ${OQS_BUILD_ONLY_LIB})
|
||||
set(DOXYFILE ${PROJECT_SOURCE_DIR}/docs/.Doxyfile)
|
||||
add_custom_target(
|
||||
gen_docs
|
||||
COMMAND ${PROJECT_SOURCE_DIR}/scripts/run_doxygen.sh ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
|
||||
COMMAND ${PROJECT_SOURCE_DIR}/scripts/run_doxygen.sh ${DOXYGEN_EXECUTABLE} ${DOXYFILE} ${PROJECT_BINARY_DIR}
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
COMMENT "Generate API documentation with Doxygen."
|
||||
USES_TERMINAL)
|
||||
|
@ -58,7 +58,7 @@ PROJECT_LOGO =
|
||||
# entered, it will be relative to the location where doxygen was started. If
|
||||
# left blank the current directory will be used.
|
||||
|
||||
OUTPUT_DIRECTORY = build/docs
|
||||
OUTPUT_DIRECTORY = $(DOXYGEN_DESTIONATION_DIR)
|
||||
|
||||
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
||||
# directories (in 2 levels) under the output directory of each output format and
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Wrong number of arguments: Expecting path to doxygen binary and doxygen file. Exiting."
|
||||
if [ "$#" -ne 3 ]; then
|
||||
echo "Wrong number of arguments: Expecting path to doxygen binary, path to doxygen file, and destination directory. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -14,7 +14,8 @@ cp CONFIGURE.md CONFIGURE.md-orig
|
||||
python3 scripts/doxyfy.py CONFIGURE.md-orig CONFIGURE.md
|
||||
|
||||
# run doxygen:
|
||||
$1 $2
|
||||
mkdir -p "$3/docs"
|
||||
env DOXYGEN_DESTIONATION_DIR="$3/docs" "$1" "$2"
|
||||
EXITCODE=$?
|
||||
|
||||
# undo the Github Markdown reformatting
|
||||
|
Loading…
x
Reference in New Issue
Block a user