From 091287d279ff5e56fb285ebd9c53932ec3e74101 Mon Sep 17 00:00:00 2001 From: glx22 Date: Tue, 14 Jul 2020 18:58:43 +0200 Subject: [PATCH] Add: [release-docs] support for cmake generated api files --- release-docs/files/run.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/release-docs/files/run.sh b/release-docs/files/run.sh index e6cbc30..8605a81 100755 --- a/release-docs/files/run.sh +++ b/release-docs/files/run.sh @@ -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