|
1 | 1 | {
|
2 |
| - "version": 2, |
| 2 | + "version": 5, |
3 | 3 | "cmakeMinimumRequired": {
|
4 | 4 | "major": 3,
|
5 |
| - "minor": 20, |
| 5 | + "minor": 24, |
6 | 6 | "patch": 0
|
7 | 7 | },
|
8 | 8 | "configurePresets": [
|
9 | 9 | {
|
10 | 10 | "name": "default",
|
11 |
| - "description": "Build configuration using Ninja Multi-config", |
| 11 | + "displayName": "Default Config", |
| 12 | + "description": "Base configuration using Ninja Multi-config", |
12 | 13 | "generator": "Ninja Multi-Config",
|
13 | 14 | "binaryDir": "${sourceDir}/out/default",
|
14 | 15 | "cacheVariables": {
|
15 | 16 | "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
16 | 17 | }
|
17 | 18 | },
|
18 | 19 | {
|
19 |
| - "name": "ninja-clang", |
20 |
| - "description": "Build configuration using Ninja Multi-config / clang", |
| 20 | + "name": "base-gcc", |
| 21 | + "hidden": true, |
| 22 | + "inherits": "default", |
| 23 | + "cacheVariables": { |
| 24 | + "CMAKE_C_COMPILER": "gcc", |
| 25 | + "CMAKE_CXX_COMPILER": "g++" |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "name": "base-clang", |
| 30 | + "hidden": true, |
21 | 31 | "inherits": "default",
|
22 |
| - "binaryDir": "${sourceDir}/out/clang", |
23 | 32 | "cacheVariables": {
|
24 | 33 | "CMAKE_C_COMPILER": "clang",
|
25 | 34 | "CMAKE_CXX_COMPILER": "clang++"
|
26 | 35 | }
|
27 | 36 | },
|
| 37 | + { |
| 38 | + "name": "base-msvc", |
| 39 | + "hidden": true, |
| 40 | + "inherits": "default", |
| 41 | + "cacheVariables": { |
| 42 | + "CMAKE_C_COMPILER": "cl", |
| 43 | + "CMAKE_CXX_COMPILER": "cl" |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "name": "ninja-gcc", |
| 48 | + "displayName": "Ninja GCC", |
| 49 | + "description": "Build configuration using Ninja Multi-config / GCC", |
| 50 | + "inherits": "base-gcc", |
| 51 | + "binaryDir": "${sourceDir}/out/gcc", |
| 52 | + "cacheVariables": { |
| 53 | + "CMAKE_CXX_FLAGS_DEBUG_INIT": "-Wall -Wextra -Wpedantic -Werror=return-type", |
| 54 | + "CMAKE_CXX_FLAGS_INIT": "-Wall -Wextra -Wpedantic -Werror" |
| 55 | + } |
| 56 | + }, |
| 57 | + { |
| 58 | + "name": "ninja-clang", |
| 59 | + "displayName": "Ninja Clang", |
| 60 | + "description": "Build configuration using Ninja Multi-config / Clang", |
| 61 | + "inherits": "base-clang", |
| 62 | + "binaryDir": "${sourceDir}/out/clang", |
| 63 | + "cacheVariables": { |
| 64 | + "CMAKE_CXX_FLAGS_DEBUG_INIT": "-Wall -Wextra -Wpedantic -Werror=return-type", |
| 65 | + "CMAKE_CXX_FLAGS_INIT": "-Wall -Wextra -Wpedantic -Werror" |
| 66 | + } |
| 67 | + }, |
| 68 | + { |
| 69 | + "name": "ninja-msvc", |
| 70 | + "displayName": "Ninja MSVC", |
| 71 | + "description": "Build configuration using Ninja Multi-config / MSVC", |
| 72 | + "inherits": "base-msvc", |
| 73 | + "binaryDir": "${sourceDir}/out/msvc", |
| 74 | + "cacheVariables": { |
| 75 | + "CMAKE_CXX_FLAGS_INIT": "/WX" |
| 76 | + } |
| 77 | + }, |
28 | 78 | {
|
29 | 79 | "name": "ninja-ubsan",
|
| 80 | + "displayName": "Ninja UBSan", |
30 | 81 | "description": "UBSan build configuration using Ninja Multi-config",
|
31 | 82 | "inherits": "default",
|
32 | 83 | "binaryDir": "${sourceDir}/out/ubsan",
|
33 | 84 | "cacheVariables": {
|
34 |
| - "CMAKE_C_FLAGS": "-fsanitize=undefined", |
35 |
| - "CMAKE_CXX_FLAGS": "-fsanitize=undefined" |
| 85 | + "CMAKE_CXX_FLAGS_DEBUG_INIT": "-fsanitize=undefined -Wall -Wextra -Wpedantic -Werror=return-type", |
| 86 | + "CMAKE_CXX_FLAGS_INIT": "-fsanitize=undefined -Wall -Wextra -Wpedantic -Werror" |
36 | 87 | }
|
37 | 88 | },
|
38 | 89 | {
|
39 | 90 | "name": "ninja-asan",
|
| 91 | + "displayName": "Ninja ASan", |
40 | 92 | "description": "ASan build configuration using Ninja Multi-config",
|
41 | 93 | "inherits": "default",
|
42 | 94 | "binaryDir": "${sourceDir}/out/asan",
|
43 | 95 | "cacheVariables": {
|
44 |
| - "CMAKE_C_FLAGS": "-fsanitize=address", |
45 |
| - "CMAKE_CXX_FLAGS": "-fsanitize=address" |
| 96 | + "CMAKE_CXX_FLAGS_DEBUG_INIT": "-fsanitize=address -Wall -Wextra -Wpedantic -Werror=return-type", |
| 97 | + "CMAKE_CXX_FLAGS_INIT": "-fsanitize=address -Wall -Wextra -Wpedantic -Werror" |
| 98 | + } |
| 99 | + }, |
| 100 | + { |
| 101 | + "name": "ninja-msvc-asan", |
| 102 | + "displayName": "Ninja MSVC ASan", |
| 103 | + "description": "ASan build configuration using Ninja Multi-config", |
| 104 | + "inherits": "base-msvc", |
| 105 | + "binaryDir": "${sourceDir}/out/asan", |
| 106 | + "cacheVariables": { |
| 107 | + "CMAKE_CXX_FLAGS_INIT": "-fsanitize=address" |
46 | 108 | }
|
47 | 109 | },
|
48 | 110 | {
|
49 | 111 | "name": "ninja-tsan",
|
| 112 | + "displayName": "Ninja TSan", |
50 | 113 | "description": "TSan build configuration using Ninja Multi-config",
|
51 | 114 | "inherits": "default",
|
52 | 115 | "binaryDir": "${sourceDir}/out/tsan",
|
53 | 116 | "cacheVariables": {
|
54 |
| - "CMAKE_C_FLAGS": "-fsanitize=thread", |
55 |
| - "CMAKE_CXX_FLAGS": "-fsanitize=thread" |
| 117 | + "CMAKE_CXX_FLAGS_INIT": "-fsanitize=thread -Wall -Wextra -Wpedantic -Werror=return-type" |
56 | 118 | }
|
57 | 119 | },
|
58 | 120 | {
|
59 | 121 | "name": "vs22",
|
| 122 | + "displayName": "Visual Studio 2022", |
60 | 123 | "description": "Build configuration using Visual Studio 17 (2022)",
|
61 | 124 | "generator": "Visual Studio 17 2022",
|
62 | 125 | "binaryDir": "${sourceDir}/out/vs",
|
| 126 | + "cacheVariables": { |
| 127 | + "CMAKE_CXX_FLAGS_INIT": "/WX" |
| 128 | + }, |
63 | 129 | "architecture": {
|
64 | 130 | "value": "x64",
|
65 | 131 | "strategy": "external"
|
|
82 | 148 | "configurePreset": "default",
|
83 | 149 | "configuration": "RelWithDebInfo"
|
84 | 150 | },
|
| 151 | + { |
| 152 | + "name": "GCC Debug", |
| 153 | + "configurePreset": "ninja-gcc", |
| 154 | + "configuration": "Debug" |
| 155 | + }, |
| 156 | + { |
| 157 | + "name": "GCC RelWithDebInfo", |
| 158 | + "configurePreset": "ninja-gcc", |
| 159 | + "configuration": "RelWithDebInfo" |
| 160 | + }, |
| 161 | + { |
| 162 | + "name": "Clang Debug", |
| 163 | + "configurePreset": "ninja-clang", |
| 164 | + "configuration": "Debug" |
| 165 | + }, |
| 166 | + { |
| 167 | + "name": "Clang RelWithDebInfo", |
| 168 | + "configurePreset": "ninja-clang", |
| 169 | + "configuration": "RelWithDebInfo" |
| 170 | + }, |
| 171 | + { |
| 172 | + "name": "MSVC Debug", |
| 173 | + "configurePreset": "ninja-msvc", |
| 174 | + "configuration": "Debug" |
| 175 | + }, |
| 176 | + { |
| 177 | + "name": "MSVC Release", |
| 178 | + "configurePreset": "ninja-msvc", |
| 179 | + "configuration": "Release" |
| 180 | + }, |
85 | 181 | {
|
86 | 182 | "name": "UBSan Debug",
|
87 | 183 | "configurePreset": "ninja-ubsan",
|
|
107 | 203 | "configuration": "RelWithDebInfo",
|
108 | 204 | "inheritConfigureEnvironment": true
|
109 | 205 | },
|
| 206 | + { |
| 207 | + "name": "GCC Debug", |
| 208 | + "configurePreset": "ninja-gcc", |
| 209 | + "configuration": "Debug", |
| 210 | + "inheritConfigureEnvironment": true |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "GCC RelWithDebInfo", |
| 214 | + "configurePreset": "ninja-gcc", |
| 215 | + "configuration": "RelWithDebInfo", |
| 216 | + "inheritConfigureEnvironment": true |
| 217 | + }, |
| 218 | + { |
| 219 | + "name": "Clang Debug", |
| 220 | + "configurePreset": "ninja-clang", |
| 221 | + "configuration": "Debug", |
| 222 | + "inheritConfigureEnvironment": true |
| 223 | + }, |
| 224 | + { |
| 225 | + "name": "Clang RelWithDebInfo", |
| 226 | + "configurePreset": "ninja-clang", |
| 227 | + "configuration": "RelWithDebInfo", |
| 228 | + "inheritConfigureEnvironment": true |
| 229 | + }, |
| 230 | + { |
| 231 | + "name": "MSVC Debug", |
| 232 | + "configurePreset": "ninja-msvc", |
| 233 | + "configuration": "Debug", |
| 234 | + "inheritConfigureEnvironment": true |
| 235 | + }, |
| 236 | + { |
| 237 | + "name": "MSVC Release", |
| 238 | + "configurePreset": "ninja-msvc", |
| 239 | + "configuration": "Release", |
| 240 | + "inheritConfigureEnvironment": true |
| 241 | + }, |
110 | 242 | {
|
111 | 243 | "name": "UBSan Debug",
|
112 | 244 | "configurePreset": "ninja-ubsan",
|
|
0 commit comments