{ "version": 3, "cmakeMinimumRequired": { "major": 3, "minor": 14, "patch": 0 }, "configurePresets": [ { "name": "default", "displayName": "Default configure step", "description": "Use 'build' dir and Unix makefiles", "binaryDir": "${sourceDir}/build", "generator": "Unix Makefiles" }, { "name": "ci-ubuntu-22.04", "displayName": "CI configure step for Ubuntu", "description": "Same as default, Used in GitHub actions workflow", "inherits": "default", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } }, { "name": "debug-ubuntu-22.04", "displayName": "Debug configure step for Ubuntu", "description": "Used to generate debug configuration for Ubuntu", "inherits": "default", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "CMAKE_CXX_FLAGS_INIT" : "-Og", "CMAKE_C_FLAGS_INIT" : "-Og" } }, { "name": "ci-macos-13", "displayName": "CI configure step for MacOS", "description": "Same as default, Used in GitHub actions workflow", "inherits": "default", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } }, { "name": "debug-macos-13", "displayName": "Debug configure step for MacOS", "description": "Used to generate debug configuration for MacOS", "inherits": "default", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "ci-windows-2022", "displayName": "CI configure step for Windows", "description": "Set architecture to 64-bit (b/c RakNet)", "inherits": "default", "generator": "Visual Studio 17 2022", "architecture": { "value": "x64" }, "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "CMAKE_CXX_FLAGS_INIT": "/Zc:inline" } }, { "name": "debug-windows-2022", "displayName": "Debug configure step for Windows", "description": "Set architecture to 64-bit (b/c RakNet)", "inherits": "default", "generator": "Visual Studio 17 2022", "architecture": { "value": "x64" }, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "windows-default", "inherits": "ci-windows-2022", "displayName": "Windows only Configure Settings", "description": "Sets build and install directories", "generator": "Ninja", "architecture": { "value": "x64", "strategy": "external" } } ], "buildPresets": [ { "name": "default", "configurePreset": "default", "displayName": "Default Build", "description": "Default Build", "jobs": 2 }, { "name": "ci-ubuntu-22.04", "configurePreset": "ci-ubuntu-22.04", "displayName": "Linux CI Build", "description": "This preset is used by the CI build on linux", "configuration": "Release", "jobs": 2 }, { "name": "debug-ubuntu-22.04", "configurePreset": "debug-ubuntu-22.04", "displayName": "Linux Debug Build ", "description": "This preset is used to debug the build on linux", "configuration": "Debug", "jobs": 2 }, { "name": "ci-windows-2022", "configurePreset": "ci-windows-2022", "displayName": "Windows CI Build", "description": "This preset is used by the CI build on windows", "configuration": "Release", "jobs": 2 }, { "name": "debug-windows-2022", "configurePreset": "debug-windows-2022", "displayName": "Windows Debug Build", "description": "This preset is used to debug the build on windows", "configuration": "Release", "jobs": 2 }, { "name": "ci-macos-13", "configurePreset": "ci-macos-13", "displayName": "MacOS CI Build", "description": "This preset is used by the CI build on MacOS", "configuration": "Release", "jobs": 2 }, { "name": "debug-macos-13", "configurePreset": "debug-macos-13", "displayName": "MacOS Debug Build", "description": "This preset is used to debug the build on MacOS", "configuration": "Debug", "jobs": 2 } ], "testPresets": [ { "name": "ci-ubuntu-22.04", "configurePreset": "ci-ubuntu-22.04", "displayName": "CI Tests on Linux", "description": "Runs all tests on a linux configuration", "configuration": "Release", "execution": { "jobs": 2 }, "output": { "outputOnFailure": true } }, { "name": "debug-ubuntu-22.04", "configurePreset": "debug-ubuntu-22.04", "displayName": "Debug Tests on Linux", "description": "Runs all tests on a linux configuration", "configuration": "Debug", "execution": { "jobs": 2 }, "output": { "outputOnFailure": true } }, { "name": "ci-macos-13", "configurePreset": "ci-macos-13", "displayName": "CI Tests on MacOS", "description": "Runs all tests on a Mac configuration", "execution": { "jobs": 2 }, "output": { "outputOnFailure": true } }, { "name": "ci-windows-2022", "configurePreset": "ci-windows-2022", "displayName": "CI Tests on windows", "description": "Runs all tests on a windows configuration", "configuration": "Release", "execution": { "jobs": 2 }, "output": { "outputOnFailure": true }, "filter": { "exclude": { "name": "((example)|(minigzip))+" } } } ] }