2021-12-16 19:29:48 +00:00
|
|
|
{
|
2024-04-05 21:50:39 +00:00
|
|
|
"version": 6,
|
|
|
|
"cmakeMinimumRequired": {
|
|
|
|
"major": 3,
|
|
|
|
"minor": 25,
|
|
|
|
"patch": 0
|
|
|
|
},
|
|
|
|
"configurePresets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"displayName": "Default configure step",
|
|
|
|
"description": "Use 'build' dir and Unix makefiles",
|
|
|
|
"binaryDir": "${sourceDir}/build",
|
|
|
|
"generator": "Unix Makefiles"
|
2022-01-01 09:38:45 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"condition": {
|
|
|
|
"type": "equals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Windows"
|
|
|
|
},
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_CXX_FLAGS_INIT": "/Zc:inline"
|
2022-01-01 09:38:45 +00:00
|
|
|
}
|
2024-04-05 21:50:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows-default",
|
|
|
|
"inherits": "ci-windows-2022",
|
|
|
|
"displayName": "Windows only Configure Settings",
|
|
|
|
"description": "Sets build and install directories",
|
|
|
|
"generator": "Ninja",
|
|
|
|
"condition": {
|
|
|
|
"type": "equals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Windows"
|
|
|
|
},
|
|
|
|
"architecture": {
|
|
|
|
"value": "x64",
|
|
|
|
"strategy": "external"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-base",
|
|
|
|
"displayName": "x86_64-pc-linux-gnu",
|
|
|
|
"description": "Linux base configuration",
|
|
|
|
"hidden": true,
|
|
|
|
"binaryDir": "${sourceDir}/build",
|
|
|
|
"condition": {
|
|
|
|
"type": "equals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Linux"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-clang-debug",
|
|
|
|
"inherits": "linux-base",
|
|
|
|
"displayName": "[Debug] Linux (Clang)",
|
|
|
|
"description": "Create a debug build using the Clang toolchain for Linux",
|
|
|
|
"binaryDir": "${sourceDir}/build",
|
|
|
|
"toolchainFile": "${sourceDir}/cmake/toolchains/linux-clang.cmake",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-clang-release",
|
|
|
|
"inherits": "linux-clang-debug",
|
|
|
|
"displayName": "[Release] Linux (Clang)",
|
|
|
|
"description": "Create a release build using the Clang toolchain for Linux",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-gcc-debug",
|
|
|
|
"displayName": "[Debug] Linux (GCC)",
|
|
|
|
"description": "Create a debug build using the GNU toolchain for Linux",
|
|
|
|
"binaryDir": "${sourceDir}/build",
|
|
|
|
"toolchainFile": "${sourceDir}/cmake/toolchains/linux-gcc.cmake",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-gcc-release",
|
|
|
|
"inherits": "linux-gcc-debug",
|
|
|
|
"displayName": "[Release] Linux (GCC)",
|
|
|
|
"description": "Create a release build using the GNU toolchain for Linux",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "macos-appleclang-debug",
|
|
|
|
"displayName": "[Debug] MacOS (AppleClang)",
|
|
|
|
"description": "Same as default, Used in GitHub actions workflow",
|
|
|
|
"inherits": "default",
|
|
|
|
"condition": {
|
|
|
|
"type": "equals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Darwin"
|
|
|
|
},
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "macos-appleclang-release",
|
|
|
|
"displayName": "[Release] MacOS (AppleClang)",
|
|
|
|
"description": "Same as default, Used in GitHub actions workflow",
|
|
|
|
"inherits": "default",
|
|
|
|
"condition": {
|
|
|
|
"type": "equals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Darwin"
|
|
|
|
},
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"buildPresets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"configurePreset": "default",
|
|
|
|
"displayName": "Default Build",
|
|
|
|
"description": "Default Build",
|
|
|
|
"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": "ci-windows-2022",
|
|
|
|
"displayName": "Windows Debug Build",
|
|
|
|
"description": "This preset is used to debug the build on windows",
|
|
|
|
"configuration": "Release",
|
|
|
|
"jobs": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"testPresets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"configurePreset": "default",
|
|
|
|
"execution": {
|
2022-07-16 21:55:54 +00:00
|
|
|
"jobs": 2
|
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
"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": {
|
2024-04-04 00:48:20 +00:00
|
|
|
"jobs": 2
|
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
"output": {
|
|
|
|
"outputOnFailure": true
|
2024-04-04 00:48:20 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
"filter": {
|
|
|
|
"exclude": {
|
|
|
|
"name": "((example)|(minigzip))+"
|
|
|
|
}
|
2022-07-16 21:55:54 +00:00
|
|
|
}
|
2024-04-05 21:50:39 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"workflowPresets": [
|
|
|
|
{
|
|
|
|
"name": "ci-windows-2022",
|
|
|
|
"displayName": "Windows CI Workflow",
|
|
|
|
"description": "CI workflow preset for Windows",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "configure",
|
|
|
|
"name": "ci-windows-2022"
|
2024-02-04 22:26:38 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
{
|
|
|
|
"type": "build",
|
|
|
|
"name": "default"
|
2024-02-04 22:26:38 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
{
|
|
|
|
"type": "test",
|
|
|
|
"name": "default"
|
2022-11-07 08:12:35 +00:00
|
|
|
}
|
2024-04-05 21:50:39 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ci-ubuntu-22.04",
|
|
|
|
"displayName": "Ubuntu CI Workflow",
|
|
|
|
"description": "CI workflow preset for Ubuntu",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "configure",
|
|
|
|
"name": "linux-gcc-release"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "build",
|
|
|
|
"name": "default"
|
2024-02-04 22:26:38 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
{
|
|
|
|
"type": "test",
|
|
|
|
"name": "default"
|
2022-11-07 08:12:35 +00:00
|
|
|
}
|
2024-04-05 21:50:39 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ci-macos-13",
|
|
|
|
"displayName": "MacOS CI Workflow",
|
|
|
|
"description": "CI workflow preset for MacOS",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "configure",
|
|
|
|
"name": "macos-appleclang-release"
|
2024-02-04 22:26:38 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
{
|
|
|
|
"type": "build",
|
|
|
|
"name": "default"
|
2022-11-07 08:12:35 +00:00
|
|
|
},
|
2024-04-05 21:50:39 +00:00
|
|
|
{
|
|
|
|
"type": "test",
|
|
|
|
"name": "default"
|
2024-02-04 22:26:38 +00:00
|
|
|
}
|
2024-04-05 21:50:39 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|