138 lines
3.2 KiB
JSON
138 lines
3.2 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 25,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "base",
|
|
"hidden": true,
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
"cacheVariables": {
|
|
"REXSDK_DIR": "${sourceDir}/third_party/rexglue-sdk",
|
|
"SKATE3_GAME_DATA_ROOT": "${sourceDir}/game"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-base",
|
|
"hidden": true,
|
|
"inherits": "base",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "clang-20",
|
|
"CMAKE_CXX_COMPILER": "clang++-20",
|
|
"CMAKE_LINKER": "ld.lld-20"
|
|
},
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
}
|
|
},
|
|
{
|
|
"name": "macos-base",
|
|
"hidden": true,
|
|
"inherits": "base",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "/opt/homebrew/opt/llvm/bin/clang",
|
|
"CMAKE_CXX_COMPILER": "/opt/homebrew/opt/llvm/bin/clang++",
|
|
"CMAKE_AR": "/opt/homebrew/opt/llvm/bin/llvm-ar",
|
|
"CMAKE_RANLIB": "/opt/homebrew/opt/llvm/bin/llvm-ranlib",
|
|
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0"
|
|
},
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Darwin"
|
|
}
|
|
},
|
|
{
|
|
"name": "debug",
|
|
"displayName": "Debug",
|
|
"inherits": "base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
}
|
|
},
|
|
{
|
|
"name": "release",
|
|
"displayName": "Release",
|
|
"inherits": "base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
}
|
|
},
|
|
{
|
|
"name": "relwithdebinfo",
|
|
"displayName": "RelWithDebInfo",
|
|
"inherits": "base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-relwithdebinfo",
|
|
"displayName": "Linux RelWithDebInfo",
|
|
"inherits": "linux-base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-release",
|
|
"displayName": "Linux Release",
|
|
"inherits": "linux-base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
}
|
|
},
|
|
{
|
|
"name": "macos-relwithdebinfo",
|
|
"displayName": "macOS RelWithDebInfo",
|
|
"inherits": "macos-base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "macos-release",
|
|
"displayName": "macOS Release",
|
|
"inherits": "macos-base",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "debug",
|
|
"configurePreset": "debug"
|
|
},
|
|
{
|
|
"name": "release",
|
|
"configurePreset": "release"
|
|
},
|
|
{
|
|
"name": "relwithdebinfo",
|
|
"configurePreset": "relwithdebinfo"
|
|
},
|
|
{
|
|
"name": "linux-relwithdebinfo",
|
|
"configurePreset": "linux-relwithdebinfo"
|
|
},
|
|
{
|
|
"name": "linux-release",
|
|
"configurePreset": "linux-release"
|
|
},
|
|
{
|
|
"name": "macos-relwithdebinfo",
|
|
"configurePreset": "macos-relwithdebinfo"
|
|
},
|
|
{
|
|
"name": "macos-release",
|
|
"configurePreset": "macos-release"
|
|
}
|
|
]
|
|
}
|