112 lines
No EOL
2.6 KiB
JSON
112 lines
No EOL
2.6 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 21,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "ninja-multi-vcpkg",
|
|
"displayName": "Ninja Multi-Config",
|
|
"description": "Configure with vcpkg toolchain and generate Ninja project files for all configurations",
|
|
"binaryDir": "${sourceDir}/builds/${presetName}",
|
|
"generator": "Ninja Multi-Config",
|
|
"toolchainFile": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "ninja-vcpkg-debug",
|
|
"configurePreset": "ninja-multi-vcpkg",
|
|
"displayName": "Build (Debug)",
|
|
"description": "Build with Ninja/vcpkg (Debug)",
|
|
"configuration": "Debug"
|
|
},
|
|
{
|
|
"name": "ninja-vcpkg-release",
|
|
"configurePreset": "ninja-multi-vcpkg",
|
|
"displayName": "Build (Release)",
|
|
"description": "Build with Ninja/vcpkg (Release)",
|
|
"configuration": "Release"
|
|
},
|
|
{
|
|
"name": "ninja-vcpkg",
|
|
"configurePreset": "ninja-multi-vcpkg",
|
|
"displayName": "Build",
|
|
"description": "Build with Ninja/vcpkg",
|
|
"hidden": true
|
|
},
|
|
{
|
|
"name": "ninja-vcpkg-check-format",
|
|
"configurePreset": "ninja-multi-vcpkg",
|
|
"displayName": "Build",
|
|
"targets": [
|
|
"check-format"
|
|
],
|
|
"description": "Build with Ninja/vcpkg check-format"
|
|
},
|
|
{
|
|
"name": "ninja-vcpkg-format",
|
|
"configurePreset": "ninja-multi-vcpkg",
|
|
"displayName": "Build",
|
|
"targets": [
|
|
"format"
|
|
],
|
|
"description": "Build with Ninja/vcpkg format"
|
|
}
|
|
],
|
|
"workflowPresets": [
|
|
{
|
|
"name": "format",
|
|
"steps": [
|
|
{
|
|
"name": "ninja-multi-vcpkg",
|
|
"type": "configure"
|
|
},
|
|
{
|
|
"name": "ninja-vcpkg-format",
|
|
"type": "build"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "check-format",
|
|
"steps": [
|
|
{
|
|
"name": "ninja-multi-vcpkg",
|
|
"type": "configure"
|
|
},
|
|
{
|
|
"name": "ninja-vcpkg-check-format",
|
|
"type": "build"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "test-ninja-vcpkg",
|
|
"configurePreset": "ninja-multi-vcpkg",
|
|
"hidden": true
|
|
},
|
|
{
|
|
"name": "test-debug",
|
|
"description": "Test (Debug)",
|
|
"displayName": "Test (Debug)",
|
|
"configuration": "Debug",
|
|
"inherits": [
|
|
"test-ninja-vcpkg"
|
|
]
|
|
},
|
|
{
|
|
"name": "test-release",
|
|
"description": "Test (Release)",
|
|
"displayName": "Test (Release)",
|
|
"configuration": "Release",
|
|
"inherits": [
|
|
"test-ninja-vcpkg"
|
|
]
|
|
}
|
|
]
|
|
} |