|
165 | 165 | "CMAKE_BUILD_TYPE": "Release", |
166 | 166 | "CMAKE_INTERPROCEDURAL_OPTIMIZATION": true |
167 | 167 | } |
| 168 | + }, |
| 169 | + { |
| 170 | + "name": "ios-base", |
| 171 | + "hidden": true, |
| 172 | + "generator": "Ninja", |
| 173 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 174 | + "installDir": "${sourceDir}/out/install/${presetName}", |
| 175 | + "cacheVariables": { |
| 176 | + "CMAKE_SYSTEM_NAME": "iOS", |
| 177 | + "CMAKE_OSX_SYSROOT": "iphoneos", |
| 178 | + "CMAKE_OSX_ARCHITECTURES": "arm64", |
| 179 | + "CMAKE_OSX_DEPLOYMENT_TARGET": "16.4", |
| 180 | + "DEPLOYMENT_TARGET": "16.4", |
| 181 | + "PLATFORM": "OS64", |
| 182 | + "CMAKE_TOOLCHAIN_FILE": { |
| 183 | + "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", |
| 184 | + "type": "FILEPATH" |
| 185 | + }, |
| 186 | + "VCPKG_CHAINLOAD_TOOLCHAIN_FILE": { |
| 187 | + "value": "${sourceDir}/toolchains/ios.toolchain.cmake", |
| 188 | + "type": "FILEPATH" |
| 189 | + }, |
| 190 | + "VCPKG_TARGET_TRIPLET": { |
| 191 | + "value": "arm64-ios", |
| 192 | + "type": "STRING" |
| 193 | + } |
| 194 | + }, |
| 195 | + "environment": { |
| 196 | + "VCPKG_ROOT": "${sourceDir}/thirdparty/vcpkg" |
| 197 | + }, |
| 198 | + "condition": { |
| 199 | + "type": "equals", |
| 200 | + "lhs": "${hostSystemName}", |
| 201 | + "rhs": "Darwin" |
| 202 | + } |
| 203 | + }, |
| 204 | + { |
| 205 | + "name": "ios-device-debug", |
| 206 | + "displayName": "iOS Device Debug", |
| 207 | + "inherits": "ios-base", |
| 208 | + "cacheVariables": { |
| 209 | + "CMAKE_BUILD_TYPE": "Debug" |
| 210 | + } |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "ios-device-relwithdebinfo", |
| 214 | + "displayName": "iOS Device RelWithDebInfo", |
| 215 | + "inherits": "ios-base", |
| 216 | + "cacheVariables": { |
| 217 | + "CMAKE_BUILD_TYPE": "RelWithDebInfo" |
| 218 | + } |
| 219 | + }, |
| 220 | + { |
| 221 | + "name": "ios-device-release", |
| 222 | + "displayName": "iOS Device Release", |
| 223 | + "inherits": "ios-base", |
| 224 | + "cacheVariables": { |
| 225 | + "CMAKE_BUILD_TYPE": "Release", |
| 226 | + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": true |
| 227 | + } |
168 | 228 | } |
169 | 229 | ] |
170 | 230 | } |
0 commit comments