|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": 10, |
| 6 | + "patch": 0 |
| 7 | + }, |
| 8 | + "configurePresets": [ |
| 9 | + { |
| 10 | + "name": "debug", |
| 11 | + "displayName": "Debug-Base", |
| 12 | + "description": "Debug Config.", |
| 13 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 14 | + "cacheVariables": { |
| 15 | + "CMAKE_BUILD_TYPE": "Debug", |
| 16 | + "LLVM_ENABLE_PROJECTS": "clang", |
| 17 | + "LLVM_TARGETS_TO_BUILD": "X86", |
| 18 | + "LLVM_UNREACHABLE_OPTIMIZE": false, |
| 19 | + "LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION": false, |
| 20 | + "LLVM_ENABLE_RTTI": true, |
| 21 | + "LLVM_ENABLE_ASSERTIONS": true, |
| 22 | + "LLVM_ENABLE_OCAMLDOC": false, |
| 23 | + "LLVM_ENABLE_BINDINGS": false, |
| 24 | + "LLVM_ENABLE_DIA_SDK": false, |
| 25 | + "LLVM_INCLUDE_BENCHMARKS": false, |
| 26 | + "LLVM_INCLUDE_DOCS": false, |
| 27 | + "LLVM_INCLUDE_EXAMPLES": false, |
| 28 | + "LLVM_INCLUDE_RUNTIMES": false, |
| 29 | + "LLVM_INCLUDE_TESTS": false, |
| 30 | + "LLVM_INCLUDE_TOOLS": true, |
| 31 | + "LLVM_INCLUDE_UTILS": true, |
| 32 | + "LLVM_BUILD_TOOLS": false, |
| 33 | + "LLVM_BUILD_UTILS": false, |
| 34 | + "LLVM_BUILD_RUNTIME": false, |
| 35 | + "LLVM_BUILD_RUNTIMES": false, |
| 36 | + "LLVM_BUILD_LLVM_C_DYLIB": false, |
| 37 | + "LLVM_BUILD_TESTS": false, |
| 38 | + "LLVM_BUILD_DOCS": false, |
| 39 | + "LLVM_BUILD_EXAMPLES": false, |
| 40 | + "CLANG_ENABLE_ARCMT": true, |
| 41 | + "CLANG_ENABLE_HLSL": false, |
| 42 | + "CLANG_ENABLE_OBJC_REWRITER": false, |
| 43 | + "CLANG_ENABLE_PROTO_FUZZER": false, |
| 44 | + "CLANG_ENABLE_STATIC_ANALYZER": true, |
| 45 | + "CLANG_INCLUDE_TESTS": false, |
| 46 | + "CLANG_INCLUDE_DOCS": false, |
| 47 | + "CLANG_BUILD_EXAMPLES": false, |
| 48 | + "CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}" |
| 49 | + } |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "debwithopt", |
| 53 | + "inherits": "debug", |
| 54 | + "displayName": "DebWithOpt-Base", |
| 55 | + "description": "Debug Config with Release Optimization", |
| 56 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 57 | + "cacheVariables": { |
| 58 | + "CMAKE_BUILD_TYPE": "Debug" |
| 59 | + } |
| 60 | + }, |
| 61 | + { |
| 62 | + "name": "release", |
| 63 | + "inherits": "debug", |
| 64 | + "displayName": "Release-Base", |
| 65 | + "description": "Release Config.", |
| 66 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 67 | + "cacheVariables": { |
| 68 | + "CMAKE_BUILD_TYPE": "Release" |
| 69 | + } |
| 70 | + }, |
| 71 | + { |
| 72 | + "name": "relwithdebinfo", |
| 73 | + "inherits": "release", |
| 74 | + "displayName": "RelWithDebInfo-Base", |
| 75 | + "description": "Release Config with Debug Info.", |
| 76 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 77 | + "cacheVariables": { |
| 78 | + "CMAKE_BUILD_TYPE": "RelWithDebInfo" |
| 79 | + } |
| 80 | + }, |
| 81 | + { |
| 82 | + "name": "debug-win", |
| 83 | + "inherits": "debug", |
| 84 | + "displayName": "Debug-Base-Win", |
| 85 | + "description": "Debug Config without any extras and windows flags", |
| 86 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 87 | + "cacheVariables": { |
| 88 | + "CMAKE_BUILD_TYPE": "Debug", |
| 89 | + "CMAKE_CONFIGURATION_TYPES": "Debug", |
| 90 | + "CMAKE_C_FLAGS": "/DWIN32 /D_WINDOWS", |
| 91 | + "CMAKE_CXX_FLAGS": "/DWIN32 /D_WINDOWS /EHsc", |
| 92 | + "CMAKE_C_FLAGS_DEBUG": "/MDd /Zi /Ob0 /Od /RTC1", |
| 93 | + "CMAKE_CXX_FLAGS_DEBUG": "/MDd /Zi /Ob0 /Od /RTC1", |
| 94 | + "CMAKE_C_FLAGS_RELEASE": "/MD /O2 /Ob2 /DNDEBUG", |
| 95 | + "CMAKE_CXX_FLAGS_RELEASE": "/MD /O2 /Ob2 /DNDEBUG", |
| 96 | + "CMAKE_C_FLAGS_MINSIZEREL": "/MD /O1 /Ob1 /DNDEBUG", |
| 97 | + "CMAKE_CXX_FLAGS_MINSIZEREL": "/MD /O1 /Ob1 /DNDEBUG", |
| 98 | + "CMAKE_C_FLAGS_RELWITHDEBINFO": "/MD /Zi /O2 /Ob1", |
| 99 | + "CMAKE_CXX_FLAGS_RELWITHDEBINFO": "/MD /Zi /O2 /Ob1" |
| 100 | + } |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "debwithopt-win", |
| 104 | + "inherits": [ |
| 105 | + "debug-win", |
| 106 | + "debwithopt" |
| 107 | + ], |
| 108 | + "displayName": "DebWithOptde-Base-Win", |
| 109 | + "description": "Debug Config with Release Optimization", |
| 110 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 111 | + "cacheVariables": { |
| 112 | + "CMAKE_BUILD_TYPE": "Debug", |
| 113 | + "CMAKE_CONFIGURATION_TYPES": "Debug", |
| 114 | + "CMAKE_C_FLAGS": "/DWIN32 /D_WINDOWS /Ob1 /O2 /Zi", |
| 115 | + "CMAKE_CXX_FLAGS": "/DWIN32 /D_WINDOWS /Ob1 /O2 /Zi", |
| 116 | + "CMAKE_C_FLAGS_DEBUG": "/Ob1 /O2 /Zi", |
| 117 | + "CMAKE_CXX_FLAGS_DEBUG": "/Ob1 /O2 /Zi" |
| 118 | + } |
| 119 | + }, |
| 120 | + { |
| 121 | + "name": "release-win", |
| 122 | + "inherits": [ |
| 123 | + "debug-win", |
| 124 | + "release" |
| 125 | + ], |
| 126 | + "displayName": "Release-Base-Win", |
| 127 | + "description": "Release Config.", |
| 128 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 129 | + "cacheVariables": { |
| 130 | + "CMAKE_BUILD_TYPE": "Release", |
| 131 | + "CMAKE_CONFIGURATION_TYPES": "Release" |
| 132 | + } |
| 133 | + }, |
| 134 | + { |
| 135 | + "name": "relwithdebinfo-win", |
| 136 | + "inherits": "release", |
| 137 | + "displayName": "RelWithDebInfo-Base-Unix", |
| 138 | + "description": "Release Config with Debug Info.", |
| 139 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 140 | + "cacheVariables": { |
| 141 | + "CMAKE_BUILD_TYPE": "RelWithDebInfo", |
| 142 | + "CMAKE_CONFIGURATION_TYPES": "RelWithDebInfo" |
| 143 | + } |
| 144 | + }, |
| 145 | + { |
| 146 | + "name": "debug-unix", |
| 147 | + "inherits": "debug", |
| 148 | + "displayName": "Debug-Base-Unix", |
| 149 | + "description": "Debug Config without any extras and windows flags", |
| 150 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 151 | + "cacheVariables": { |
| 152 | + "CMAKE_BUILD_TYPE": "Debug" |
| 153 | + } |
| 154 | + }, |
| 155 | + { |
| 156 | + "name": "debwithopt-unix", |
| 157 | + "inherits": [ |
| 158 | + "debug-unix", |
| 159 | + "debwithopt" |
| 160 | + ], |
| 161 | + "displayName": "DebWithOpt-Base-Unix", |
| 162 | + "description": "Debug Config with Release Optimization", |
| 163 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 164 | + "cacheVariables": { |
| 165 | + "CMAKE_BUILD_TYPE": "Debug", |
| 166 | + "CMAKE_C_FLAGS": "-Og -g", |
| 167 | + "CMAKE_CXX_FLAGS": "-Og -g", |
| 168 | + "CMAKE_C_FLAGS_DEBUG": "-Og -g", |
| 169 | + "CMAKE_CXX_FLAGS_DEBUG": "-Og -g" |
| 170 | + } |
| 171 | + }, |
| 172 | + { |
| 173 | + "name": "release-unix", |
| 174 | + "inherits": [ |
| 175 | + "debug-unix", |
| 176 | + "release" |
| 177 | + ], |
| 178 | + "displayName": "Release-Base-Unix", |
| 179 | + "description": "Release Config.", |
| 180 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 181 | + "cacheVariables": { |
| 182 | + "CMAKE_BUILD_TYPE": "Release" |
| 183 | + } |
| 184 | + }, |
| 185 | + { |
| 186 | + "name": "relwithdebinfo-unix", |
| 187 | + "inherits": "release", |
| 188 | + "displayName": "RelWithDebInfo-Base-Unix", |
| 189 | + "description": "Release Config with Debug Info.", |
| 190 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 191 | + "cacheVariables": { |
| 192 | + "CMAKE_BUILD_TYPE": "RelWithDebInfo" |
| 193 | + } |
| 194 | + } |
| 195 | + ] |
| 196 | +} |
0 commit comments