appveyorBuildConfigurationScript.bat 1.0 KB

12345678910111213141516171819202122
  1. SETLOCAL EnableDelayedExpansion
  2. @REM # Possibilities:
  3. @REM # Debug build + coverage
  4. @REM # Debug build + examples
  5. @REM # Debug build + ---
  6. @REM # Release build
  7. if "%CONFIGURATION%"=="Debug" (
  8. if "%coverage%"=="1" (
  9. @REM # coverage needs to build the special helper as well as the main
  10. cmake -Hmisc -Bbuild-misc -A%PLATFORM% || exit /b !ERRORLEVEL!
  11. cmake --build build-misc || exit /b !ERRORLEVEL!
  12. cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DMEMORYCHECK_COMMAND=build-misc\Debug\CoverageHelper.exe -DMEMORYCHECK_COMMAND_OPTIONS=--sep-- -DMEMORYCHECK_TYPE=Valgrind || exit /b !ERRORLEVEL! || exit /b !ERRORLEVEL!
  13. ) else (
  14. @REM # We know that coverage is 0
  15. python scripts\generateSingleHeader.py || exit /b !ERRORLEVEL!
  16. cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% || exit /b !ERRORLEVEL!
  17. )
  18. )
  19. if "%CONFIGURATION%"=="Release" (
  20. cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% || exit /b !ERRORLEVEL!
  21. )