|
| 1 | +{ |
| 2 | + "version": 6, |
| 3 | + "configurePresets": [ |
| 4 | + { |
| 5 | + "name": "base", |
| 6 | + "hidden": true, |
| 7 | + "generator": "Ninja", |
| 8 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 9 | + "installDir": "${sourceDir}/install/${presetName}", |
| 10 | + "cacheVariables": { |
| 11 | + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", |
| 12 | + "CMAKE_CXX_FLAGS": "-Wall -ftemplate-backtrace-limit=0 -fvisibility=hidden -fvisibility-inlines-hidden" |
| 13 | + } |
| 14 | + }, |
| 15 | + { |
| 16 | + "name": "linux-debug", |
| 17 | + "inherits": "base", |
| 18 | + "displayName": "Linux Debug", |
| 19 | + "cacheVariables": { |
| 20 | + "CMAKE_BUILD_TYPE": "Debug", |
| 21 | + "CMAKE_CXX_FLAGS_DEBUG": "-ggdb3 -O0 -fno-omit-frame-pointer -fno-inline -fno-optimize-sibling-calls" |
| 22 | + }, |
| 23 | + "condition": { |
| 24 | + "type": "equals", |
| 25 | + "lhs": "${hostSystemName}", |
| 26 | + "rhs": "Linux" |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "linux-release", |
| 31 | + "inherits": "base", |
| 32 | + "displayName": "Linux Release", |
| 33 | + "cacheVariables": { |
| 34 | + "CMAKE_BUILD_TYPE": "Release", |
| 35 | + "CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG", |
| 36 | + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", |
| 37 | + "CMAKE_SHARED_LINKER_FLAGS_RELEASE": "-Wl,--exclude-libs,ALL -Wl,--strip-all" |
| 38 | + }, |
| 39 | + "condition": { |
| 40 | + "type": "equals", |
| 41 | + "lhs": "${hostSystemName}", |
| 42 | + "rhs": "Linux" |
| 43 | + } |
| 44 | + }, |
| 45 | + { |
| 46 | + "name": "macos-debug", |
| 47 | + "inherits": "base", |
| 48 | + "displayName": "macOS Debug", |
| 49 | + "cacheVariables": { |
| 50 | + "CMAKE_BUILD_TYPE": "Debug", |
| 51 | + "CMAKE_CXX_FLAGS": "-Wall -Wno-unused-private-field -ftemplate-backtrace-limit=0 -fvisibility=hidden -fvisibility-inlines-hidden", |
| 52 | + "CMAKE_CXX_FLAGS_DEBUG": "-g3 -Og -fno-omit-frame-pointer -fno-inline -gsplit-dwarf" |
| 53 | + }, |
| 54 | + "condition": { |
| 55 | + "type": "equals", |
| 56 | + "lhs": "${hostSystemName}", |
| 57 | + "rhs": "Darwin" |
| 58 | + } |
| 59 | + }, |
| 60 | + { |
| 61 | + "name": "macos-release", |
| 62 | + "inherits": "base", |
| 63 | + "displayName": "macOS Release", |
| 64 | + "cacheVariables": { |
| 65 | + "CMAKE_BUILD_TYPE": "Release", |
| 66 | + "CMAKE_CXX_FLAGS": "-Wall -Wno-unused-private-field -ftemplate-backtrace-limit=0 -fvisibility=hidden -fvisibility-inlines-hidden", |
| 67 | + "CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG", |
| 68 | + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", |
| 69 | + "CMAKE_SHARED_LINKER_FLAGS_RELEASE": "-Wl,-dead_strip -Wl,-x" |
| 70 | + }, |
| 71 | + "condition": { |
| 72 | + "type": "equals", |
| 73 | + "lhs": "${hostSystemName}", |
| 74 | + "rhs": "Darwin" |
| 75 | + } |
| 76 | + }, |
| 77 | + { |
| 78 | + "name": "mingw-debug", |
| 79 | + "inherits": "base", |
| 80 | + "displayName": "Mingw x64 Debug", |
| 81 | + "cacheVariables": { |
| 82 | + "CMAKE_BUILD_TYPE": "Debug", |
| 83 | + "CMAKE_CXX_COMPILER": "g++.exe", |
| 84 | + "CMAKE_CXX_FLAGS": "-Wall -ftemplate-backtrace-limit=0 -Wa,-mbig-obj -fvisibility=hidden -fvisibility-inlines-hidden", |
| 85 | + "CMAKE_CXX_FLAGS_DEBUG": "-g3 -Og -fno-omit-frame-pointer -fno-inline -gsplit-dwarf" |
| 86 | + }, |
| 87 | + "condition": { |
| 88 | + "type": "equals", |
| 89 | + "lhs": "${hostSystemName}", |
| 90 | + "rhs": "Windows" |
| 91 | + } |
| 92 | + }, |
| 93 | + { |
| 94 | + "name": "mingw-release", |
| 95 | + "inherits": "base", |
| 96 | + "displayName": "Mingw x64 Release", |
| 97 | + "cacheVariables": { |
| 98 | + "CMAKE_BUILD_TYPE": "Release", |
| 99 | + "CMAKE_CXX_COMPILER": "g++.exe", |
| 100 | + "CMAKE_CXX_FLAGS": "-Wall -ftemplate-backtrace-limit=0 -Wa,-mbig-obj -fvisibility=hidden -fvisibility-inlines-hidden", |
| 101 | + "CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG", |
| 102 | + "CMAKE_SHARED_LINKER_FLAGS_RELEASE": "-Wl,--exclude-all-symbols" |
| 103 | + }, |
| 104 | + "condition": { |
| 105 | + "type": "equals", |
| 106 | + "lhs": "${hostSystemName}", |
| 107 | + "rhs": "Windows" |
| 108 | + } |
| 109 | + }, |
| 110 | + { |
| 111 | + "name": "windows-base", |
| 112 | + "hidden": true, |
| 113 | + "generator": "Ninja", |
| 114 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 115 | + "installDir": "${sourceDir}/install/${presetName}", |
| 116 | + "toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake", |
| 117 | + "cacheVariables": { |
| 118 | + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", |
| 119 | + "CMAKE_CXX_FLAGS": "/EHs /W4 /bigobj /utf-8 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE" |
| 120 | + }, |
| 121 | + "condition": { |
| 122 | + "type": "equals", |
| 123 | + "lhs": "${hostSystemName}", |
| 124 | + "rhs": "Windows" |
| 125 | + } |
| 126 | + }, |
| 127 | + { |
| 128 | + "name": "msvc-debug", |
| 129 | + "inherits": "windows-base", |
| 130 | + "displayName": "MSVC x64 Debug", |
| 131 | + "cacheVariables": { |
| 132 | + "CMAKE_BUILD_TYPE": "Debug", |
| 133 | + "CMAKE_CXX_COMPILER": "cl.exe", |
| 134 | + "CMAKE_CXX_FLAGS_DEBUG": "/Od", |
| 135 | + "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "ProgramDatabase" |
| 136 | + } |
| 137 | + }, |
| 138 | + { |
| 139 | + "name": "msvc-release", |
| 140 | + "inherits": "windows-base", |
| 141 | + "displayName": "MSVC x64 Release", |
| 142 | + "cacheVariables": { |
| 143 | + "CMAKE_BUILD_TYPE": "Release", |
| 144 | + "CMAKE_CXX_COMPILER": "cl.exe", |
| 145 | + "CMAKE_CXX_FLAGS_RELEASE": "/O2 /DNDEBUG", |
| 146 | + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", |
| 147 | + "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "ProgramDatabase" |
| 148 | + } |
| 149 | + }, |
| 150 | + { |
| 151 | + "name": "clang-windows-debug", |
| 152 | + "inherits": "windows-base", |
| 153 | + "displayName": "Clang Windows Debug", |
| 154 | + "cacheVariables": { |
| 155 | + "CMAKE_BUILD_TYPE": "Debug", |
| 156 | + "CMAKE_CXX_COMPILER": "clang-cl.exe", |
| 157 | + "CMAKE_CXX_FLAGS": "/EHs /W4 /bigobj /utf-8 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /clang:-Wno-unused-private-field", |
| 158 | + "CMAKE_CXX_FLAGS_DEBUG": "/Od /Zi" |
| 159 | + } |
| 160 | + }, |
| 161 | + { |
| 162 | + "name": "clang-windows-release", |
| 163 | + "inherits": "windows-base", |
| 164 | + "displayName": "Clang Windows Release", |
| 165 | + "cacheVariables": { |
| 166 | + "CMAKE_BUILD_TYPE": "Release", |
| 167 | + "CMAKE_CXX_COMPILER": "clang-cl.exe", |
| 168 | + "CMAKE_CXX_FLAGS": "/EHs /W4 /bigobj /utf-8 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /clang:-Wno-unused-private-field", |
| 169 | + "CMAKE_CXX_FLAGS_RELEASE": "/O2 /DNDEBUG", |
| 170 | + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON" |
| 171 | + } |
| 172 | + } |
| 173 | + ], |
| 174 | + "buildPresets": [ |
| 175 | + { |
| 176 | + "name": "linux-debug", |
| 177 | + "displayName": "Build Linux Debug", |
| 178 | + "configurePreset": "linux-debug", |
| 179 | + "jobs": 6 |
| 180 | + }, |
| 181 | + { |
| 182 | + "name": "linux-release", |
| 183 | + "displayName": "Build Linux Release", |
| 184 | + "configurePreset": "linux-release", |
| 185 | + "jobs": 6 |
| 186 | + }, |
| 187 | + { |
| 188 | + "name": "macos-debug", |
| 189 | + "displayName": "Build macOS Debug", |
| 190 | + "configurePreset": "macos-debug" |
| 191 | + }, |
| 192 | + { |
| 193 | + "name": "macos-release", |
| 194 | + "displayName": "Build macOS Release", |
| 195 | + "configurePreset": "macos-release" |
| 196 | + }, |
| 197 | + { |
| 198 | + "name": "msvc-debug", |
| 199 | + "displayName": "Build MSVC x64 Debug", |
| 200 | + "configurePreset": "msvc-debug" |
| 201 | + }, |
| 202 | + { |
| 203 | + "name": "msvc-release", |
| 204 | + "displayName": "Build MSVC x64 Release", |
| 205 | + "configurePreset": "msvc-release" |
| 206 | + }, |
| 207 | + { |
| 208 | + "name": "clang-windows-debug", |
| 209 | + "displayName": "Build Clang Windows Debug", |
| 210 | + "configurePreset": "clang-windows-debug" |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "clang-windows-release", |
| 214 | + "displayName": "Build Clang Windows Release", |
| 215 | + "configurePreset": "clang-windows-release" |
| 216 | + }, |
| 217 | + { |
| 218 | + "name": "mingw-debug", |
| 219 | + "displayName": "Build Mingw x64 Debug", |
| 220 | + "configurePreset": "mingw-debug" |
| 221 | + }, |
| 222 | + { |
| 223 | + "name": "mingw-release", |
| 224 | + "displayName": "Build Mingw x64 Release", |
| 225 | + "configurePreset": "mingw-release" |
| 226 | + } |
| 227 | + ] |
| 228 | +} |
0 commit comments