Skip to content

Commit

Permalink
Add emscripten configure option for macOS/homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Dec 1, 2024
1 parent e260942 commit 47c5278
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,22 @@
{
"name": "emscripten-linux",
"hidden": true,
"toolchainFile": "/usr/lib/emscripten/cmake/Modules/Platform/Emscripten.cmake"
"toolchainFile": "/usr/lib/emscripten/cmake/Modules/Platform/Emscripten.cmake",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "emscripten-macOS",
"hidden": true,
"toolchainFile": "/opt/homebrew/Cellar/emscripten/3.1.73/libexec/cmake/Modules/Platform/Emscripten.cmake",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "vcpkg",
Expand Down Expand Up @@ -112,12 +127,20 @@
]
},
{
"name": "ninja-emscripten-headless",
"name": "ninja-emscripten-linux-headless",
"description": "Ninja + System Libraries + Headless / WASM",
"binaryDir": "${sourceDir}/builds/${presetName}",
"inherits": [
"base", "headless", "emscripten-linux"
]
},
{
"name": "ninja-emscripten-macOS-headless",
"description": "Ninja + System Libraries + Headless / WASM",
"binaryDir": "${sourceDir}/builds/${presetName}",
"inherits": [
"base", "headless", "emscripten-macOS"
]
}
],
"buildPresets": [
Expand Down Expand Up @@ -154,10 +177,16 @@
"configurePreset": "ninja-wasi-headless"
},
{
"name": "ninja-emscripten-headless",
"name": "ninja-emscripten-linux-headless",
"inherits": "base",
"description": "Build using Ninja and system libraries (headless)",
"configurePreset": "ninja-emscripten-linux-headless"
},
{
"name": "ninja-emscripten-macOS-headless",
"inherits": "base",
"description": "Build using Ninja and system libraries (headless)",
"configurePreset": "ninja-emscripten-headless"
"configurePreset": "ninja-emscripten-macOS-headless"
},
{
"name": "vs-vcpkg",
Expand Down

0 comments on commit 47c5278

Please sign in to comment.