|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "configurePresets": [ |
| 4 | + { |
| 5 | + "name": "ninja-base", |
| 6 | + "displayName": "Ninja with vcpkg (base)", |
| 7 | + "description": "Base preset for Ninja builds with vcpkg and local overlay triplets", |
| 8 | + "hidden": true, |
| 9 | + "generator": "Ninja", |
| 10 | + "cacheVariables": { |
| 11 | + "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake", |
| 12 | + "VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/triplets", |
| 13 | + "VCPKG_ROOT": "${sourceDir}/vcpkg", |
| 14 | + "VCPKG_INSTALLED_DIR": "${sourceDir}/build/vcpkg_installed", |
| 15 | + "CMAKE_VERBOSE_MAKEFILE": "ON" |
| 16 | + } |
| 17 | + }, |
| 18 | + { |
| 19 | + "name": "posix-ninja-debug", |
| 20 | + "displayName": "Linux/MacOS Debug (Ninja)", |
| 21 | + "inherits": [ |
| 22 | + "ninja-base" |
| 23 | + ], |
| 24 | + "binaryDir": "${sourceDir}/build/Debug", |
| 25 | + "cacheVariables": { |
| 26 | + "CMAKE_BUILD_TYPE": "Debug" |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "posix-ninja-release", |
| 31 | + "displayName": "Linux/MacOS Release (Ninja)", |
| 32 | + "inherits": [ |
| 33 | + "ninja-base" |
| 34 | + ], |
| 35 | + "binaryDir": "${sourceDir}/build/Release", |
| 36 | + "cacheVariables": { |
| 37 | + "CMAKE_BUILD_TYPE": "Release" |
| 38 | + } |
| 39 | + }, |
| 40 | + { |
| 41 | + "name": "windows-vs2022", |
| 42 | + "displayName": "Windows (Visual Studio 2022)", |
| 43 | + "description": "Multi-config build with the Visual Studio 17 2022 generator", |
| 44 | + "generator": "Visual Studio 17 2022", |
| 45 | + "architecture": { |
| 46 | + "value": "x64", |
| 47 | + "strategy": "external" |
| 48 | + }, |
| 49 | + "binaryDir": "${sourceDir}/build", |
| 50 | + "cacheVariables": { |
| 51 | + "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake", |
| 52 | + "VCPKG_ROOT": "${sourceDir}/vcpkg" |
| 53 | + } |
| 54 | + } |
| 55 | + ], |
| 56 | + "buildPresets": [ |
| 57 | + { |
| 58 | + "name": "posix-ninja-debug", |
| 59 | + "configurePreset": "posix-ninja-debug" |
| 60 | + }, |
| 61 | + { |
| 62 | + "name": "posix-ninja-release", |
| 63 | + "configurePreset": "posix-ninja-release" |
| 64 | + }, |
| 65 | + { |
| 66 | + "name": "windows-vs2022-debug", |
| 67 | + "configurePreset": "windows-vs2022", |
| 68 | + "configuration": "Debug" |
| 69 | + }, |
| 70 | + { |
| 71 | + "name": "windows-vs2022-release", |
| 72 | + "configurePreset": "windows-vs2022", |
| 73 | + "configuration": "Release" |
| 74 | + } |
| 75 | + ], |
| 76 | + "testPresets": [ |
| 77 | + { |
| 78 | + "name": "posix-ninja-debug", |
| 79 | + "configurePreset": "posix-ninja-debug" |
| 80 | + }, |
| 81 | + { |
| 82 | + "name": "posix-ninja-release", |
| 83 | + "configurePreset": "posix-ninja-release" |
| 84 | + }, |
| 85 | + { |
| 86 | + "name": "windows-vs2022-debug", |
| 87 | + "configurePreset": "windows-vs2022", |
| 88 | + "configuration": "Debug" |
| 89 | + }, |
| 90 | + { |
| 91 | + "name": "windows-vs2022-release", |
| 92 | + "configurePreset": "windows-vs2022", |
| 93 | + "configuration": "Release" |
| 94 | + } |
| 95 | + ] |
| 96 | +} |
0 commit comments