Add macos-metal cmake preset (#3901)

This commit is contained in:
Birk Skyum
2025-10-19 11:35:56 +02:00
committed by GitHub
parent dff8ce3a68
commit e4d13edc33
2 changed files with 17 additions and 15 deletions

View File

@@ -30,18 +30,26 @@
"CMAKE_SYSTEM_NAME": "Darwin",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_OSX_DEPLOYMENT_TARGET": "14.3",
"MLN_WITH_METAL": "ON",
"MLN_WITH_OPENGL": "OFF",
"CMAKE_BUILD_TYPE": "Debug",
"MLN_DARWIN_USE_LIBUV": "ON"
}
},
{
"name": "macos-xcode",
"name": "macos-metal",
"displayName": "macOS Metal",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-macos-metal",
"inherits": "macos",
"cacheVariables": {
"MLN_WITH_METAL": "ON"
}
},
{
"name": "macos-metal-xcode",
"displayName": "macOS (Xcode)",
"generator": "Xcode",
"binaryDir": "${sourceDir}/build-macos-xcode",
"inherits": "macos"
"binaryDir": "${sourceDir}/build-macos-metal-xcode",
"inherits": "macos-metal"
},
{
"name": "macos-vulkan",
@@ -50,9 +58,7 @@
"binaryDir": "${sourceDir}/build-macos-vulkan",
"inherits": "macos",
"cacheVariables": {
"MLN_WITH_VULKAN": "ON",
"MLN_WITH_METAL": "OFF",
"MLN_WITH_OPENGL": "OFF"
"MLN_WITH_VULKAN": "ON"
}
},
{
@@ -64,7 +70,7 @@
},
{
"name": "macos-metal-node",
"inherits": "macos",
"inherits": "macos-metal",
"binaryDir": "${sourceDir}/build",
"displayName": "MacOS Node",
"description": "MacOS Node build (Metal renderer)",
@@ -82,8 +88,6 @@
"binaryDir": "${sourceDir}/build-macos-webgpu-dawn",
"inherits": "macos",
"cacheVariables": {
"MLN_WITH_METAL": "OFF",
"MLN_WITH_OPENGL": "OFF",
"MLN_WITH_WEBGPU": "ON",
"MLN_WEBGPU_IMPL": "dawn",
"MLN_DARWIN_USE_LIBUV": "ON"
@@ -96,8 +100,6 @@
"binaryDir": "${sourceDir}/build-macos-webgpu-wgpu",
"inherits": "macos",
"cacheVariables": {
"MLN_WITH_METAL": "OFF",
"MLN_WITH_OPENGL": "OFF",
"MLN_WITH_WEBGPU": "ON",
"MLN_WEBGPU_IMPL": "wgpu",
"MLN_DARWIN_USE_LIBUV": "ON"