appveyorBuildConfigurationScript.bat 1.2 KB

123456789101112131415161718192021
  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 -Htools/misc -Bbuild-misc -A%PLATFORM% || exit /b !ERRORLEVEL!
  11. cmake --build build-misc || exit /b !ERRORLEVEL!
  12. cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DMEMORYCHECK_COMMAND=build-misc\Debug\CoverageHelper.exe -DMEMORYCHECK_COMMAND_OPTIONS=--sep-- -DMEMORYCHECK_TYPE=Valgrind -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% -DCATCH_ENABLE_CONFIGURE_TESTS=%configure_tests% -DCATCH_DEVELOPMENT_BUILD=ON || exit /b !ERRORLEVEL!
  13. ) else (
  14. @REM # We know that coverage is 0
  15. cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% -DCATCH_BUILD_SURROGATES=%surrogates% -DCATCH_DEVELOPMENT_BUILD=ON -DCATCH_ENABLE_CONFIGURE_TESTS=%configure_tests% || exit /b !ERRORLEVEL!
  16. )
  17. )
  18. if "%CONFIGURATION%"=="Release" (
  19. cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DCATCH_DEVELOPMENT_BUILD=ON || exit /b !ERRORLEVEL!
  20. )