aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/appveyorBuildConfigurationScript.bat
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-29 19:25:29 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-29 19:25:29 +0100
commitbc524d70253a4ab2fe40c3ca3e5666e267c0a4d1 (patch)
tree1e629e7b46b1d9972a973bc93fd100bcebd395be /tools/misc/appveyorBuildConfigurationScript.bat
downloadnihil-548ea226e1944e077d3ff305df43ef6b366b03f4.tar.gz
nihil-548ea226e1944e077d3ff305df43ef6b366b03f4.tar.bz2
Diffstat (limited to 'tools/misc/appveyorBuildConfigurationScript.bat')
-rw-r--r--tools/misc/appveyorBuildConfigurationScript.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/misc/appveyorBuildConfigurationScript.bat b/tools/misc/appveyorBuildConfigurationScript.bat
new file mode 100644
index 0000000..727f829
--- /dev/null
+++ b/tools/misc/appveyorBuildConfigurationScript.bat
@@ -0,0 +1,21 @@
+SETLOCAL EnableDelayedExpansion
+
+@REM # Possibilities:
+@REM # Debug build + coverage
+@REM # Debug build + examples
+@REM # Debug build + ---
+@REM # Release build
+if "%CONFIGURATION%"=="Debug" (
+ if "%coverage%"=="1" (
+ @REM # coverage needs to build the special helper as well as the main
+ cmake -Htools/misc -Bbuild-misc -A%PLATFORM% || exit /b !ERRORLEVEL!
+ cmake --build build-misc || exit /b !ERRORLEVEL!
+ 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!
+ ) else (
+ @REM # We know that coverage is 0
+ 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!
+ )
+)
+if "%CONFIGURATION%"=="Release" (
+ cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DCATCH_DEVELOPMENT_BUILD=ON || exit /b !ERRORLEVEL!
+)