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

Commit

Permalink
Add: [release-docs] support for cmake generated api files
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 authored and LordAro committed Jul 14, 2020
1 parent 40b7de1 commit 091287d
Showing 1 changed file with 12 additions and 2 deletions.
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

0 comments on commit 091287d

Please sign in to comment.