diff options
Diffstat (limited to 'fuzzylite/build.bat')
-rw-r--r-- | fuzzylite/build.bat | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/fuzzylite/build.bat b/fuzzylite/build.bat index 17f5b6d..11f62f8 100644 --- a/fuzzylite/build.bat +++ b/fuzzylite/build.bat @@ -13,7 +13,8 @@ for %%a in (%*) do ( if /I "%%a"=="release" set valid="yes" if /I "%%a"=="debug" set valid="yes" if /I "%%a"=="clean" set valid="yes" - + if /I "%%a"=="documentation" set valid="yes" + if !valid!=="no" ( echo Invalid option: %%a call:usage @@ -38,13 +39,13 @@ goto:eof echo. echo **************************************** echo STARTING: debug - + if not exist debug mkdir debug cd debug - cmake .. -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFL_BACKTRACE=ON -DFL_USE_FLOAT=OFF -DFL_CPP11=OFF + cmake .. -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFL_BACKTRACE=ON -DFL_USE_FLOAT=OFF -DFL_CPP98=OFF -DFL_BUILD_TESTS=ON nmake cd .. - + echo. echo FINISHED: debug echo **************************************** @@ -55,13 +56,13 @@ goto:eof echo. echo **************************************** echo STARTING: release - + if not exist release mkdir release cd release - cmake .. -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DFL_BACKTRACE=OFF -DFL_USE_FLOAT=OFF -DFL_CPP11=OFF + cmake .. -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DFL_BACKTRACE=OFF -DFL_USE_FLOAT=OFF -DFL_CPP98=OFF -DFL_BUILD_TESTS=ON nmake cd .. - + echo. echo FINISHED: release echo **************************************** @@ -72,21 +73,37 @@ goto:eof echo. echo **************************************** echo STARTING: all - call:debug call:release + call:debug echo. echo FINISHED: all echo **************************************** goto:eof +:documentation + echo. + echo. + echo **************************************** + echo STARTING: documentation + + cd .. + doxygen + rem TODO: cd back to previous directory. Maybe use: cd /D %~dp0 + echo. + echo FINISHED: documentation + echo **************************************** + goto:eof :clean echo. echo. echo **************************************** echo STARTING: clean + @echo on if exist debug rmdir /S /Q debug if exist release rmdir /S /Q release if exist CMakeFiles rmdir /S /Q CMakeFiles + if exist CMakeCache.txt del CMakeCache.txt + @echo off echo. echo FINISHED: clean echo **************************************** @@ -102,4 +119,4 @@ goto:eof echo ^ help shows this information echo. -ENDLOCAL
\ No newline at end of file +ENDLOCAL |