/ CMakePresets.json
CMakePresets.json
1 { 2 "version": 3, 3 "configurePresets": [ 4 { 5 "name": "base", 6 "hidden": true, 7 "cacheVariables": { 8 "CMAKE_TOOLCHAIN_FILE": { 9 "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", 10 "type": "FILEPATH" 11 }, 12 "VCPKG_OVERLAY_TRIPLETS": { 13 "value": "${sourceDir}/deps/vcpkg-triplets", 14 "type": "FILEPATH" 15 }, 16 "VCPKG_OVERLAY_PORTS": { 17 "value": "${sourceDir}/deps/vcpkg-ports", 18 "type": "FILEPATH" 19 } 20 } 21 }, 22 { 23 "name": "base-windows", 24 "hidden": true, 25 "generator": "Visual Studio 17 2022", 26 "cacheVariables": { 27 "CLI_OVPNDCOWIN": { 28 "value": "ON", 29 "type": "BOOL" 30 }, 31 "VCPKG_MANIFEST_DIR": "${sourceDir}/deps/vcpkg_manifests/windows", 32 "VCPKG_HOST_TRIPLET": "x64-windows" 33 }, 34 "vendor": { 35 "microsoft.com/VisualStudioSettings/CMake/1.0": { 36 "hostOS": [ 37 "Windows" 38 ] 39 } 40 } 41 }, 42 { 43 "name": "base-linux", 44 "hidden": true, 45 "generator": "Ninja", 46 "binaryDir": "${sourceDir}/out/build/${presetName}", 47 "cacheVariables": { 48 "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", 49 "CMAKE_C_COMPILER": "/usr/bin/gcc", 50 "CMAKE_CXX_COMPILER": "/usr/bin/g++" 51 } 52 }, 53 { 54 "name": "tunbuilder", 55 "hidden": true, 56 "cacheVariables": { 57 "CLI_TUNBUILDER": { 58 "value": "ON", 59 "type": "BOOL" 60 } 61 } 62 }, 63 { 64 "name": "base-mac", 65 "hidden": true, 66 "binaryDir": "${sourceDir}/out/build/${presetName}", 67 "cacheVariables": { 68 "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", 69 "CMAKE_C_COMPILER": "/usr/bin/clang", 70 "CMAKE_CXX_COMPILER": "/usr/bin/clang++", 71 "CLI_NULLTUN": { 72 "value": "ON", 73 "type": "BOOL" 74 } 75 } 76 }, 77 { 78 "name": "base-mingw", 79 "hidden": true, 80 "generator": "Unix Makefiles", 81 "cacheVariables": { 82 "CMAKE_SYSTEM_NAME": { 83 "value": "Windows", 84 "type": "STRING" 85 }, 86 "CLI_OVPNDCOWIN": { 87 "value": "ON", 88 "type": "BOOL" 89 }, 90 "VCPKG_APPLOCAL_DEPS": { 91 "value": "OFF", 92 "type": "BOOL" 93 }, 94 "VCPKG_MANIFEST_DIR": "${sourceDir}/deps/vcpkg_manifests/mingw" 95 } 96 }, 97 { 98 "name": "x64", 99 "hidden": true, 100 "binaryDir": "build/msvc/amd64", 101 "architecture": { 102 "value": "x64" 103 } 104 }, 105 { 106 "name": "x64-mingw", 107 "hidden": true, 108 "binaryDir": "build/mingw/x64", 109 "cacheVariables": { 110 "CMAKE_C_COMPILER": { 111 "value": "x86_64-w64-mingw32-gcc-posix", 112 "type": "STRING" 113 }, 114 "CMAKE_CXX_COMPILER": { 115 "value": "x86_64-w64-mingw32-g++-posix", 116 "type": "STRING" 117 }, 118 "VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic" 119 } 120 }, 121 { 122 "name": "arm64", 123 "hidden": true, 124 "binaryDir": "build/msvc/arm64", 125 "architecture": { 126 "value": "arm64" 127 } 128 }, 129 { 130 "name": "x86", 131 "hidden": true, 132 "binaryDir": "build/msvc/x86", 133 "architecture": { 134 "value": "Win32" 135 } 136 }, 137 { 138 "name": "i686-mingw", 139 "hidden": true, 140 "binaryDir": "build/mingw/x86", 141 "cacheVariables": { 142 "CMAKE_C_COMPILER": { 143 "value": "i686-w64-mingw32-gcc-posix", 144 "type": "STRING" 145 }, 146 "CMAKE_CXX_COMPILER": { 147 "value": "i686-w64-mingw32-g++-posix", 148 "type": "STRING" 149 }, 150 "VCPKG_TARGET_TRIPLET": "x86-mingw-dynamic" 151 } 152 }, 153 { 154 "name": "debug", 155 "hidden": true, 156 "cacheVariables": { 157 "CMAKE_BUILD_TYPE": "Debug" 158 } 159 }, 160 { 161 "name": "release", 162 "hidden": true, 163 "cacheVariables": { 164 "CMAKE_BUILD_TYPE": "Release" 165 } 166 }, 167 { 168 "name": "asan", 169 "hidden": true, 170 "cacheVariables": { 171 "CMAKE_BUILD_TYPE": "ASAN" 172 } 173 }, 174 { 175 "name": "mingw-x64-debug", 176 "inherits": [ 177 "base", 178 "base-mingw", 179 "x64-mingw", 180 "debug" 181 ] 182 }, 183 { 184 "name": "mingw-x64-release", 185 "inherits": [ 186 "base", 187 "base-mingw", 188 "x64-mingw", 189 "release" 190 ] 191 }, 192 { 193 "name": "mingw-x86-debug", 194 "inherits": [ 195 "base", 196 "base-mingw", 197 "i686-mingw", 198 "debug" 199 ] 200 }, 201 { 202 "name": "mingw-x86-release", 203 "inherits": [ 204 "base", 205 "base-mingw", 206 "i686-mingw", 207 "release" 208 ] 209 }, 210 { 211 "name": "win-amd64-debug", 212 "inherits": [ 213 "base", 214 "base-windows", 215 "x64", 216 "debug" 217 ] 218 }, 219 { 220 "name": "win-arm64-debug", 221 "inherits": [ 222 "base", 223 "base-windows", 224 "arm64", 225 "debug" 226 ] 227 }, 228 { 229 "name": "win-amd64_arm64-debug", 230 "inherits": [ 231 "base", 232 "base-windows", 233 "arm64", 234 "debug" 235 ] 236 }, 237 { 238 "name": "win-x86-debug", 239 "inherits": [ 240 "base", 241 "base-windows", 242 "x86", 243 "debug" 244 ] 245 }, 246 { 247 "name": "win-amd64-release", 248 "inherits": [ 249 "base", 250 "base-windows", 251 "x64", 252 "release" 253 ] 254 }, 255 { 256 "name": "win-arm64-release", 257 "inherits": [ 258 "base", 259 "base-windows", 260 "arm64", 261 "release" 262 ] 263 }, 264 { 265 "name": "win-amd64_arm64-release", 266 "inherits": [ 267 "base", 268 "base-windows", 269 "arm64", 270 "release" 271 ] 272 }, 273 { 274 "name": "win-x86-release", 275 "inherits": [ 276 "base", 277 "base-windows", 278 "x86", 279 "release" 280 ] 281 }, 282 { 283 "name": "linux-x64-debug", 284 "inherits": [ 285 "base-linux", 286 "debug" 287 ] 288 }, 289 { 290 "name": "linux-x64-release", 291 "inherits": [ 292 "base-linux", 293 "release" 294 ] 295 }, 296 { 297 "name": "linux-x64-debug-tunbuilder", 298 "inherits": [ 299 "base-linux", 300 "debug", 301 "tunbuilder" 302 ] 303 }, 304 { 305 "name": "mac-debug", 306 "inherits": [ 307 "base-mac", 308 "debug" 309 ] 310 }, 311 { 312 "name": "mac-release", 313 "inherits": [ 314 "base-mac", 315 "release" 316 ] 317 } 318 ], 319 "buildPresets": [ 320 { 321 "name": "mingw-x64-debug", 322 "configurePreset": "mingw-x64-debug", 323 "configuration": "Debug" 324 }, 325 { 326 "name": "mingw-x86-debug", 327 "configurePreset": "mingw-x86-debug", 328 "configuration": "Debug" 329 }, 330 { 331 "name": "mingw-x64-release", 332 "configurePreset": "mingw-x64-release", 333 "configuration": "Release" 334 }, 335 { 336 "name": "mingw-x86-release", 337 "configurePreset": "mingw-x86-release", 338 "configuration": "Release" 339 }, 340 { 341 "name": "win-amd64-debug", 342 "configurePreset": "win-amd64-debug", 343 "configuration": "Debug" 344 }, 345 { 346 "name": "win-arm64-debug", 347 "configurePreset": "win-arm64-debug", 348 "configuration": "Debug" 349 }, 350 { 351 "name": "win-x86-debug", 352 "configurePreset": "win-x86-debug", 353 "configuration": "Debug" 354 }, 355 { 356 "name": "win-amd64-release", 357 "configurePreset": "win-amd64-release", 358 "configuration": "Release" 359 }, 360 { 361 "name": "win-arm64-release", 362 "configurePreset": "win-arm64-release", 363 "configuration": "Release" 364 }, 365 { 366 "name": "win-amd64_arm64-release", 367 "configurePreset": "win-arm64-release", 368 "configuration": "Release" 369 }, 370 { 371 "name": "win-x86-release", 372 "configurePreset": "win-x86-release", 373 "configuration": "Release" 374 }, 375 { 376 "name": "linux-x64-debug", 377 "configurePreset": "linux-x64-debug", 378 "configuration": "Debug" 379 }, 380 { 381 "name": "linux-x64-release", 382 "configurePreset": "linux-x64-release", 383 "configuration": "Release" 384 }, 385 { 386 "name": "linux-x64-debug-tunbuilder", 387 "configurePreset": "linux-x64-debug-tunbuilder", 388 "configuration": "Debug" 389 }, 390 { 391 "name": "mac-debug", 392 "configurePreset": "mac-debug", 393 "configuration": "Debug" 394 }, 395 { 396 "name": "mac-release", 397 "configurePreset": "mac-release", 398 "configuration": "Release" 399 } 400 ], 401 "testPresets": [ 402 { 403 "name": "win-amd64-debug", 404 "configurePreset": "win-amd64-debug", 405 "configuration": "Debug" 406 }, 407 { 408 "name": "win-x86-debug", 409 "configurePreset": "win-x86-debug", 410 "configuration": "Debug" 411 }, 412 { 413 "name": "win-amd64-release", 414 "configurePreset": "win-amd64-release", 415 "configuration": "Release" 416 }, 417 { 418 "name": "win-x86-release", 419 "configurePreset": "win-x86-release", 420 "configuration": "Release" 421 } 422 ] 423 }