Add CMake preset for WASM build.

This commit is contained in:
Jean-Philip Desjardins 2025-02-07 09:06:07 -05:00
parent e46557675b
commit 48eb5154cf

View file

@ -93,6 +93,24 @@
},
"hidden": true
},
{
"name": "WASM",
"cacheVariables": {
"BUILD_PSFPLAYER": {
"type": "BOOL",
"value": "ON"
},
"BUILD_TESTS": {
"type": "BOOL",
"value": "OFF"
},
"USE_QT": {
"type": "BOOL",
"value": "OFF"
}
},
"hidden": true
},
{
"name": "windows-x86_32-vs",
"inherits": [
@ -136,6 +154,13 @@
"IOS",
"XCODE"
]
},
{
"name": "wasm-ninja",
"inherits": [
"WASM",
"NINJA"
]
}
],
"buildPresets": [
@ -154,6 +179,26 @@
"targets": [
"Play"
]
},
{
"name": "wasm-ninja-debug",
"configurePreset": "wasm-ninja",
"configuration": "Debug",
"targets": [
"Play",
"PsfPlayer",
"CodeGenTestSuite"
]
},
{
"name": "wasm-ninja-release",
"configurePreset": "wasm-ninja",
"configuration": "Release",
"targets": [
"Play",
"PsfPlayer",
"CodeGenTestSuite"
]
}
]
}