Add WASM support

This commit is contained in:
Saikari
2025-12-16 19:40:40 +03:00
parent 082b5f69b8
commit 82b9b671f6
2 changed files with 92 additions and 0 deletions

View File

@@ -327,6 +327,44 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "wasm-base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/cmake-build/build/${presetName}",
"installDir": "${sourceDir}/cmake-build/install/${presetName}",
"cacheVariables": {
"CMAKE_MAKE_PROGRAM": "ninja"
}
},
{
"name": "wasm-base-vcpkg",
"hidden": true,
"inherits": "wasm-base",
"cacheVariables": {
"OMATH_BUILD_VIA_VCPKG": "ON",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake",
"VCPKG_INSTALLED_DIR": "${sourceDir}/cmake-build/vcpkg_installed",
"VCPKG_TARGET_TRIPLET": "wasm32-emscripten"
}
},
{
"name": "wasm-debug-vcpkg",
"displayName": "WASM Debug Vcpkg",
"inherits": "wasm-base-vcpkg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "wasm-release-vcpkg",
"displayName": "WASM Release Vcpkg",
"inherits": "wasm-base-vcpkg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}