Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Add: [release-docs] support for cmake generated api files #44

Merged
merged 1 commit into from
Jul 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions release-docs/files/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,20 @@ echo ""
mkdir -p objs
VERSION=${VERSION} doxygen

if [ -e "CMakeLists.txt" ]; then
(
mkdir build
cd build
cmake ..
make script_window || true
)
GENERATED_API_DIR=$(pwd)/build/generated/script/api
fi

(
cd src/script/api
VERSION=${VERSION} doxygen Doxyfile_AI
VERSION=${VERSION} doxygen Doxyfile_Game
VERSION=${VERSION} GENERATED_API_DIR=${GENERATED_API_DIR} doxygen Doxyfile_AI
VERSION=${VERSION} GENERATED_API_DIR=${GENERATED_API_DIR} doxygen Doxyfile_Game
)

# Fixing a bug in a Debian patch on Doxygen
Expand Down