-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,65 @@ | ||
{ | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 23, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "default", | ||
"displayName": "Default Config", | ||
"description": "Default build using Ninja generator", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/default", | ||
"environment": { | ||
"PATH": "$env{HOME}/ninja/bin:$penv{PATH}" | ||
} | ||
"version": 8, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 21, | ||
"patch": 0 | ||
}, | ||
{ | ||
"name": "ninja-multi", | ||
"inherits": "default", | ||
"displayName": "Ninja Multi-Config", | ||
"description": "Default build using Ninja Multi-Config generator", | ||
"generator": "Ninja Multi-Config" | ||
}, | ||
{ | ||
"name": "windows-only", | ||
"inherits": "default", | ||
"displayName": "Windows-only configuration", | ||
"description": "This build is only available on Windows", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "default", | ||
"configurePreset": "default" | ||
} | ||
], | ||
"testPresets": [ | ||
{ | ||
"name": "default", | ||
"configurePreset": "default", | ||
"output": {"outputOnFailure": true}, | ||
"execution": {"noTestsAction": "error", "stopOnFailure": true} | ||
} | ||
], | ||
"packagePresets": [ | ||
{ | ||
"name": "default", | ||
"configurePreset": "default", | ||
"generators": [ | ||
"TGZ" | ||
] | ||
} | ||
], | ||
"workflowPresets": [ | ||
{ | ||
"name": "default", | ||
"steps": [ | ||
"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": [ | ||
{ | ||
"type": "configure", | ||
"name": "default" | ||
"name": "ninja-vcpkg-debug", | ||
"configurePreset": "ninja-multi-vcpkg", | ||
"displayName": "Build (Debug)", | ||
"description": "Build with Ninja/vcpkg (Debug)", | ||
"configuration": "Debug" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default" | ||
"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" | ||
} | ||
], | ||
"testPresets": [ | ||
{ | ||
"name": "test-ninja-vcpkg", | ||
"configurePreset": "ninja-multi-vcpkg", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "test", | ||
"name": "default" | ||
"name": "test-debug", | ||
"description": "Test (Debug)", | ||
"displayName": "Test (Debug)", | ||
"configuration": "Debug", | ||
"inherits": [ | ||
"test-ninja-vcpkg" | ||
] | ||
}, | ||
{ | ||
"type": "package", | ||
"name": "default" | ||
"name": "test-release", | ||
"description": "Test (Release)", | ||
"displayName": "Test (Release)", | ||
"configuration": "Release", | ||
"inherits": [ | ||
"test-ninja-vcpkg" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} |