89 lines
2.2 KiB
JSON
89 lines
2.2 KiB
JSON
{
|
|
"version": 3,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 28
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "base-common",
|
|
"hidden": true,
|
|
"generator": "Ninja Multi-Config",
|
|
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "clang",
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
|
"VCPKG_MANIFEST_MODE": "ON",
|
|
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/CMake/Triplets",
|
|
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
|
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/CMake/Toolchains/${presetName}.cmake"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-x64",
|
|
"displayName": "Linux x64 (Clang)",
|
|
"inherits": "base-common",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "linux-x64-clang"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-arm64",
|
|
"displayName": "Linux ARM64 (Clang Cross)",
|
|
"inherits": "base-common",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "linux-arm64-clang"
|
|
}
|
|
},
|
|
{
|
|
"name": "windows-x64",
|
|
"displayName": "Windows x64 (Clang)",
|
|
"inherits": "base-common",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "windows-x64-clang",
|
|
"CMAKE_C_COMPILER": "clang-cl",
|
|
"CMAKE_CXX_COMPILER": "clang-cl"
|
|
}
|
|
},
|
|
{
|
|
"name": "windows-arm64",
|
|
"displayName": "Windows ARM64 (Clang Cross)",
|
|
"inherits": "base-common",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "windows-arm64-clang",
|
|
"CMAKE_C_COMPILER": "clang-cl",
|
|
"CMAKE_CXX_COMPILER": "clang-cl"
|
|
}
|
|
},
|
|
{
|
|
"name": "wasm",
|
|
"displayName": "WebAssembly (Clang)",
|
|
"inherits": "base-common",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "wasm32-emscripten-clang"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "linux-x64",
|
|
"configurePreset": "linux-x64"
|
|
},
|
|
{
|
|
"name": "linux-arm64",
|
|
"configurePreset": "linux-arm64"
|
|
},
|
|
{
|
|
"name": "windows-x64",
|
|
"configurePreset": "windows-x64"
|
|
},
|
|
{
|
|
"name": "windows-arm64",
|
|
"configurePreset": "windows-arm64"
|
|
},
|
|
{
|
|
"name": "wasm",
|
|
"configurePreset": "wasm"
|
|
}
|
|
]
|
|
} |