DarkflameServer/CMakePresets.json

395 lines
10 KiB
JSON
Raw Normal View History

{
2024-04-05 22:58:19 +00:00
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
2024-04-05 22:58:19 +00:00
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default configure step",
"description": "Use 'build' dir and Unix makefiles",
"binaryDir": "${sourceDir}/build",
"generator": "Unix Makefiles"
},
2024-04-05 22:55:02 +00:00
{
2024-04-06 04:30:26 +00:00
"name": "debug-config",
2024-04-05 22:55:02 +00:00
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
2024-04-06 04:30:26 +00:00
"name": "release-config",
2024-04-05 22:55:02 +00:00
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
2024-04-06 04:30:26 +00:00
"name": "clang-config",
2024-04-05 22:55:02 +00:00
"hidden": true,
"toolchainFile": "${sourceDir}/cmake/toolchains/linux-clang.cmake"
},
{
2024-04-06 04:30:26 +00:00
"name": "gcc-config",
2024-04-05 22:55:02 +00:00
"hidden": true,
"toolchainFile": "${sourceDir}/cmake/toolchains/linux-gcc.cmake"
},
{
2024-04-06 04:30:26 +00:00
"name": "windows-msvc",
"displayName": "[Multi] Windows (MSVC)",
"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"
}
},
{
"name": "windows-default",
2024-04-06 04:30:26 +00:00
"inherits": "windows-msvc",
"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"
}
},
{
2024-04-06 04:30:26 +00:00
"name": "linux-config",
2024-04-05 23:10:09 +00:00
"inherits": "default",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
2024-04-05 22:55:02 +00:00
{
2024-04-06 04:30:26 +00:00
"name": "macos-config",
2024-04-05 23:10:09 +00:00
"inherits": "default",
2024-04-05 22:55:02 +00:00
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "linux-clang-debug",
2024-04-05 22:55:02 +00:00
"inherits": [
2024-04-06 04:30:26 +00:00
"linux-config",
"clang-config",
"debug-config"
2024-04-05 22:55:02 +00:00
],
"displayName": "[Debug] Linux (Clang)",
2024-04-05 22:55:02 +00:00
"description": "Create a debug build using the Clang toolchain for Linux"
},
{
"name": "linux-clang-release",
2024-04-05 22:55:02 +00:00
"inherits": [
2024-04-06 04:30:26 +00:00
"linux-config",
"clang-config",
"release-config"
2024-04-05 22:55:02 +00:00
],
"displayName": "[Release] Linux (Clang)",
2024-04-05 22:55:02 +00:00
"description": "Create a release build using the Clang toolchain for Linux"
},
{
"name": "linux-gcc-debug",
2024-04-05 22:55:02 +00:00
"inherits": [
2024-04-06 04:30:26 +00:00
"linux-config",
"gcc-config",
"debug-config"
2024-04-05 22:55:02 +00:00
],
"displayName": "[Debug] Linux (GCC)",
2024-04-05 22:55:02 +00:00
"description": "Create a debug build using the GNU toolchain for Linux"
},
{
"name": "linux-gcc-release",
2024-04-05 22:55:02 +00:00
"inherits": [
2024-04-06 04:30:26 +00:00
"linux-config",
"gcc-config",
"release-config"
2024-04-05 22:55:02 +00:00
],
"displayName": "[Release] Linux (GCC)",
2024-04-05 22:55:02 +00:00
"description": "Create a release build using the GNU toolchain for Linux"
},
{
2024-04-05 22:55:02 +00:00
"name": "macos-debug",
"inherits": [
"macos-config",
"debug-config"
2024-04-05 22:55:02 +00:00
],
"displayName": "[Debug] MacOS",
"description": "Create a debug build using MacOS"
},
{
2024-04-05 22:55:02 +00:00
"name": "macos-release",
"inherits": [
"macos-config",
"release-config"
2024-04-05 22:55:02 +00:00
],
"displayName": "[Release] MacOS",
"description": "Create a release build using MacOS"
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default",
"displayName": "Default Build",
"description": "Default Build",
"jobs": 2
},
{
2024-04-06 04:30:26 +00:00
"name": "windows-msvc-debug",
"configurePreset": "windows-msvc",
"displayName": "[Debug] Windows (MSVC)",
"description": "This preset is used to build in debug mode using the MSVC toolchain on Windows",
"configuration": "Debug",
"jobs": 2
},
2024-04-06 04:30:26 +00:00
{
"name": "windows-msvc-release",
"configurePreset": "windows-msvc",
"displayName": "[Release] Windows (MSVC)",
"description": "This preset is used to build in release mode using the MSVC toolchain on Windows",
"configuration": "Release",
"jobs": 2
},
{
2024-04-05 22:55:02 +00:00
"name": "linux-clang-debug",
"configurePreset": "linux-clang-debug",
"displayName": "[Debug] Linux (Clang)",
"description": "This preset is used to build in debug mode using the Clang toolchain on Linux",
"configuration": "Debug",
"jobs": 2
},
{
"name": "linux-clang-release",
"configurePreset": "linux-clang-release",
"displayName": "[Release] Linux (Clang)",
"description": "This preset is used to build in release mode using the Clang toolchain on Linux",
"configuration": "Release",
"jobs": 2
},
{
"name": "linux-gcc-debug",
"configurePreset": "linux-gcc-debug",
"displayName": "[Debug] Linux (GCC)",
"description": "This preset is used to build in debug mode using the GCC toolchain on Linux",
"configuration": "Debug",
"jobs": 2
},
{
"name": "linux-gcc-release",
"configurePreset": "linux-gcc-release",
"displayName": "[Release] Linux (GCC)",
"description": "This preset is used to build in release mode using the GCC toolchain on Linux",
"configuration": "Release",
"jobs": 2
},
{
"name": "macos-debug",
"configurePreset": "macos-debug",
"displayName": "[Debug] MacOS",
"description": "This preset is used to build in debug mode on MacOS",
"configuration": "Debug",
2024-04-05 22:55:02 +00:00
"jobs": 2
},
{
"name": "macos-release",
"configurePreset": "macos-release",
"displayName": "[Release] MacOS",
"description": "This preset is used to build in release mode on MacOS",
"configuration": "Release",
"jobs": 2
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default",
"execution": {
"jobs": 2
},
"output": {
"outputOnFailure": true
}
},
{
2024-04-06 04:30:26 +00:00
"name": "windows-msvc",
2024-04-05 22:55:02 +00:00
"inherits": "default",
2024-04-06 04:30:26 +00:00
"configurePreset": "windows-msvc",
"displayName": "[Multi] Windows (MSVC)",
"description": "Runs all tests on a Windows configuration",
"configuration": "Release",
"filter": {
"exclude": {
"name": "((example)|(minigzip))+"
}
}
2024-04-05 22:55:02 +00:00
},
{
"name": "linux-clang-debug",
"inherits": "default",
"configurePreset": "linux-clang-debug",
"displayName": "[Debug] Linux (Clang)",
"description": "Runs all tests on a Linux Clang configuration",
"configuration": "Release"
},
{
"name": "linux-clang-release",
"inherits": "default",
"configurePreset": "linux-clang-release",
"displayName": "[Release] Linux (Clang)",
"description": "Runs all tests on a Linux Clang configuration",
"configuration": "Release"
},
{
"name": "linux-gcc-debug",
"inherits": "default",
"configurePreset": "linux-gcc-debug",
"displayName": "[Debug] Linux (GCC)",
"description": "Runs all tests on a Linux GCC configuration",
"configuration": "Release"
},
{
"name": "linux-gcc-release",
"inherits": "default",
"configurePreset": "linux-gcc-release",
"displayName": "[Release] Linux (GCC)",
"description": "Runs all tests on a Linux GCC configuration",
"configuration": "Release"
},
{
"name": "macos-debug",
"inherits": "default",
"configurePreset": "macos-debug",
"displayName": "[Debug] MacOS",
"description": "Runs all tests on a MacOS configuration",
"configuration": "Release"
},
{
"name": "macos-release",
"inherits": "default",
"configurePreset": "macos-release",
"displayName": "[Release] MacOS",
"description": "Runs all tests on a MacOS configuration",
"configuration": "Release"
}
],
"workflowPresets": [
{
"name": "default",
"steps": [
{
"type": "configure",
"name": "default"
},
{
"type": "build",
"name": "default"
},
{
"type": "test",
"name": "default"
}
]
},
{
"name": "ci-windows-2022",
"displayName": "Windows CI Workflow",
"description": "CI workflow preset for Windows",
"steps": [
{
"type": "configure",
2024-04-06 04:30:26 +00:00
"name": "windows-msvc"
2024-02-04 22:26:38 +00:00
},
{
"type": "build",
2024-04-06 04:30:26 +00:00
"name": "windows-msvc-release"
2024-02-04 22:26:38 +00:00
},
{
"type": "test",
2024-04-06 04:30:26 +00:00
"name": "windows-msvc"
}
]
},
{
"name": "ci-ubuntu-22.04",
"displayName": "Ubuntu CI Workflow",
"description": "CI workflow preset for Ubuntu",
"steps": [
{
"type": "configure",
"name": "linux-gcc-release"
},
{
"type": "build",
2024-04-05 22:55:02 +00:00
"name": "linux-gcc-release"
},
{
"type": "test",
"name": "linux-gcc-release"
}
]
},
{
"name": "linux-clang-release",
"displayName": "Build using Clang on Linux",
"description": "Clang workflow preset for Linux",
"steps": [
{
"type": "configure",
"name": "linux-clang-release"
},
{
"type": "build",
"name": "linux-clang-release"
2024-02-04 22:26:38 +00:00
},
{
"type": "test",
2024-04-05 22:55:02 +00:00
"name": "linux-clang-release"
}
]
},
{
"name": "ci-macos-13",
"displayName": "MacOS CI Workflow",
"description": "CI workflow preset for MacOS",
"steps": [
{
"type": "configure",
2024-04-05 22:55:02 +00:00
"name": "macos-release"
2024-02-04 22:26:38 +00:00
},
{
"type": "build",
2024-04-05 22:55:02 +00:00
"name": "macos-release"
},
{
"type": "test",
2024-04-05 22:55:02 +00:00
"name": "macos-release"
2024-02-04 22:26:38 +00:00
}
]
}
]
}