aboutsummaryrefslogtreecommitdiff
path: root/docs/_compile/doxygen.bat
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
committerBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
commite1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch)
tree9f0cfce09c71a2c27ff19589fcad6cd83504477c /docs/_compile/doxygen.bat
parentfirst commit (diff)
downloadblast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz
blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'docs/_compile/doxygen.bat')
-rw-r--r--docs/_compile/doxygen.bat65
1 files changed, 65 insertions, 0 deletions
diff --git a/docs/_compile/doxygen.bat b/docs/_compile/doxygen.bat
new file mode 100644
index 0000000..74d482f
--- /dev/null
+++ b/docs/_compile/doxygen.bat
@@ -0,0 +1,65 @@
+@ECHO OFF
+
+REM Command file for Doxygen build
+
+rem %1 must be the name of the doxyfile (w/o extension) and folder to create (e.g. blast_api)
+
+set NAME=%1
+
+if "%NAME%" == "" (
+ goto missing_parameter_1
+)
+
+set BLAST_ROOT=%~dp0..\..
+
+:create_folder
+if exist ..\"%NAME%"_docs (
+ rmdir /s /q ..\"%NAME%"_docs
+)
+
+:: Run packman to ensure doxygen is there:
+set DOXYGEN_VERSION=1.5.8-gameworks-win
+
+call "%BLAST_ROOT%\buildtools\packman\windows\packman.cmd" %PM_OPTIONS_EXT% install doxygen %DOXYGEN_VERSION%
+if errorlevel 1 (
+ echo ***SCRIPTERROR: packman failed to get dependencies
+ goto doxygen_failed
+)
+
+:build_doxygen
+set DOXYGEN_EXE="%PM_PACKAGES_ROOT%\doxygen\%DOXYGEN_VERSION%\bin\doxygen.exe"
+if not exist %DOXYGEN_EXE% (
+ echo ***SCRIPTERROR: %DOXYGEN_EXE% not found. Please fix.
+ goto doxygen_failed
+)
+%DOXYGEN_EXE% %NAME%.doxyfile
+if errorlevel 1 (
+ echo ***SCRIPTERROR: doxygen build error
+ goto doxygen_failed
+)
+
+:copy_logo
+robocopy .\ ..\\%NAME%_docs\files\ blast_logo.png
+if not errorlevel 1 (
+ echo ***SCRIPTERROR: copying logo image failed
+ goto doxygen_failed
+)
+
+:copy_index_html
+copy index.html ..\%NAME%_docs\ /Y
+if errorlevel 1 (
+ echo ***SCRIPTERROR: copying index.html failed
+ goto doxygen_failed
+)
+goto doxygen_succeeded
+
+:doxygen_failed
+echo ***SCRIPTERROR: doxygen.bat failed
+@exit /b 1
+
+:missing_parameter_1
+echo The first argument must be the name of the doxyfile (without extension)
+goto doxygen_failed
+
+:doxygen_succeeded
+echo ***doxygen.bat succeeded