53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
{
|
|
"version": 3,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 21,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "emscripten",
|
|
"displayName": "Emscripten",
|
|
"binaryDir": "build-wasm",
|
|
"generator": "Ninja Multi-Config",
|
|
"toolchainFile": "c:/dev/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake"
|
|
},
|
|
{
|
|
"name": "VS",
|
|
"displayName": "Visual Studio 17 2022",
|
|
"description": "Using compilers for Visual Studio 17 2022 (x64 architecture)",
|
|
"generator": "Visual Studio 17 2022",
|
|
"toolset": "host=x64",
|
|
"architecture": "x64",
|
|
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
|
|
"CMAKE_C_COMPILER": "cl.exe",
|
|
"CMAKE_CXX_COMPILER": "cl.exe"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "Emscripten Debug",
|
|
"configurePreset": "emscripten",
|
|
"configuration": "Debug"
|
|
},
|
|
{
|
|
"name": "Emscripten Release",
|
|
"configurePreset": "emscripten",
|
|
"configuration": "Release"
|
|
},
|
|
{
|
|
"name": "VS Debug",
|
|
"configurePreset": "VS",
|
|
"configuration": "Debug"
|
|
},
|
|
{
|
|
"name": "VS Release",
|
|
"configurePreset": "VS",
|
|
"configuration": "Release"
|
|
}
|
|
]
|
|
} |