|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": 20, |
| 6 | + "patch": 0 |
| 7 | + }, |
| 8 | + "configurePresets": [ |
| 9 | + { |
| 10 | + "name": "multi-config", |
| 11 | + "hidden": true, |
| 12 | + "generator": "Ninja Multi-Config", |
| 13 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 14 | + "cacheVariables": { |
| 15 | + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", |
| 16 | + "CMAKE_CONFIGURATION_TYPES": "Debug;Release" |
| 17 | + } |
| 18 | + }, |
| 19 | + { |
| 20 | + "name": "msvc-cl16", |
| 21 | + "inherits": "multi-config", |
| 22 | + "displayName": "Ninja Visual C++ 16", |
| 23 | + "description": "Recommended configuration for windows builds", |
| 24 | + "cacheVariables": { |
| 25 | + "CMAKE_CXX_FLAGS": "/EHsc /permissive- /Zc:__cplusplus /Zc:externConstexpr /Zc:inline /Zc:preprocessor /Zc:throwingNew /diagnostics:caret /experimental:external /external:anglebrackets /external:W0 /D_ENABLE_EXTENDED_ALIGNED_STORAGE" |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "name": "gcc", |
| 30 | + "inherits": "multi-config", |
| 31 | + "displayName": "G++", |
| 32 | + "description": "Recommended configuration for GNU GCC", |
| 33 | + "cacheVariables": { |
| 34 | + "CMAKE_CXX_FLAGS": "-fsized-deallocation -Wall -Wextra -Werror --pedantic -ftemplate-backtrace-limit=0" |
| 35 | + } |
| 36 | + }, |
| 37 | + { |
| 38 | + "name": "msbuild-vs16-x64", |
| 39 | + "displayName": "MSBuild cl16 x64", |
| 40 | + "description": "Fallback solution for Visual Studio 16 2019 (x64)", |
| 41 | + "generator": "Visual Studio 16 2019", |
| 42 | + "toolset": "host=x64", |
| 43 | + "architecture": "x64", |
| 44 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 45 | + "cacheVariables": { |
| 46 | + "CMAKE_CXX_FLAGS": "/EHsc /permissive- /Zc:__cplusplus /Zc:externConstexpr /Zc:inline /Zc:preprocessor /Zc:throwingNew /diagnostics:caret /experimental:external /external:anglebrackets /external:W0 /D_ENABLE_EXTENDED_ALIGNED_STORAGE" |
| 47 | + } |
| 48 | + } |
| 49 | + ], |
| 50 | + "buildPresets": [ |
| 51 | + { |
| 52 | + "name": "msvc-cl16-debug", |
| 53 | + "displayName": "Debug", |
| 54 | + "configurePreset": "msvc-cl16", |
| 55 | + "configuration": "Debug" |
| 56 | + }, |
| 57 | + { |
| 58 | + "name": "msvc-cl16-release", |
| 59 | + "displayName": "Release", |
| 60 | + "configurePreset": "msvc-cl16", |
| 61 | + "configuration": "Release" |
| 62 | + }, |
| 63 | + { |
| 64 | + "name": "gcc-debug", |
| 65 | + "displayName": "Debug", |
| 66 | + "configurePreset": "gcc", |
| 67 | + "configuration": "Debug" |
| 68 | + }, |
| 69 | + { |
| 70 | + "name": "gcc-release", |
| 71 | + "displayName": "Release", |
| 72 | + "configurePreset": "gcc", |
| 73 | + "configuration": "Release" |
| 74 | + }, |
| 75 | + { |
| 76 | + "name": "msbuild-vs16-x64-debug", |
| 77 | + "displayName": "Debug", |
| 78 | + "configurePreset": "msbuild-vs16-x64", |
| 79 | + "configuration": "Debug" |
| 80 | + }, |
| 81 | + { |
| 82 | + "name": "msbuild-vs16-x64-release", |
| 83 | + "displayName": "Release", |
| 84 | + "configurePreset": "msbuild-vs16-x64", |
| 85 | + "configuration": "Release" |
| 86 | + } |
| 87 | + ], |
| 88 | + "testPresets": [ |
| 89 | + { |
| 90 | + "name": "test-base", |
| 91 | + "hidden": true, |
| 92 | + "output": { |
| 93 | + "outputOnFailure": true, |
| 94 | + "debug": false |
| 95 | + }, |
| 96 | + "execution": { |
| 97 | + "noTestsAction": "error", |
| 98 | + "stopOnFailure": true |
| 99 | + } |
| 100 | + }, |
| 101 | + { |
| 102 | + "name": "test-msvc-cl16-debug", |
| 103 | + "inherits": "test-base", |
| 104 | + "displayName": "Test Debug", |
| 105 | + "configurePreset": "msvc-cl16", |
| 106 | + "configuration": "Debug" |
| 107 | + }, |
| 108 | + { |
| 109 | + "name": "test-msvc-cl16-release", |
| 110 | + "inherits": "test-base", |
| 111 | + "displayName": "Test Release", |
| 112 | + "configurePreset": "msvc-cl16", |
| 113 | + "configuration": "Release" |
| 114 | + }, |
| 115 | + { |
| 116 | + "name": "test-gcc-debug", |
| 117 | + "inherits": "test-base", |
| 118 | + "displayName": "Test Debug", |
| 119 | + "configurePreset": "gcc", |
| 120 | + "configuration": "Debug" |
| 121 | + }, |
| 122 | + { |
| 123 | + "name": "test-gcc-release", |
| 124 | + "inherits": "test-base", |
| 125 | + "displayName": "Test Release", |
| 126 | + "configurePreset": "gcc", |
| 127 | + "configuration": "Release" |
| 128 | + } |
| 129 | + ] |
| 130 | +} |
0 commit comments