-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Debug and Relese workflow presets use Ninja Multi-Config generator for Debug
- Loading branch information
1 parent
3e282e3
commit b96c595
Showing
4 changed files
with
162 additions
and
149 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
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,128 +1,141 @@ | ||
{ | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 25, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "default", | ||
"displayName": "Default user Config", | ||
"description": "Default build using Ninja generator", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build", | ||
"installDir": "${sourceDir}/stagedir", | ||
"cacheVariables": { | ||
"CMAKE_PREFIX_PATH": { | ||
"type": "path", | ||
"value": "${sourceDir}/stagedir" | ||
}, | ||
"CMAKE_CXX_STANDARD": "20", | ||
"CMAKE_BUILD_TYPE": "Release", | ||
"CMAKE_DEBUG_POSTFIX": "D", | ||
"BUILD_SHARED_LIBS": true | ||
}, | ||
"environment": { | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES", | ||
"CPM_USE_LOCAL_PACKAGES": "NO", | ||
"CPM_SOURCE_CACHE": "$env{HOME}/.cache/CPM", | ||
"PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}" | ||
}, | ||
"warnings": { | ||
"deprecated": true, | ||
"uninitialized": true | ||
} | ||
}, | ||
{ | ||
"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" | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 25, | ||
"patch": 0 | ||
}, | ||
{ | ||
"name": "install", | ||
"configurePreset": "default", | ||
"targets": ["install"] | ||
} | ||
], | ||
"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": [ | ||
{ | ||
"type": "configure", | ||
"name": "default" | ||
"name": "Release", | ||
"displayName": "Release user Config", | ||
"description": "Release build using Ninja generator", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/{presetName}", | ||
"installDir": "${sourceDir}/stagedir", | ||
"cacheVariables": { | ||
"CMAKE_PREFIX_PATH": { | ||
"type": "path", | ||
"value": "${sourceDir}/stagedir" | ||
}, | ||
"CMAKE_CXX_STANDARD": "20", | ||
"CMAKE_BUILD_TYPE": "Release", | ||
"CMAKE_DEBUG_POSTFIX": "D", | ||
"BUILD_SHARED_LIBS": true | ||
}, | ||
"environment": { | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES", | ||
"CPM_USE_LOCAL_PACKAGES": "NO", | ||
"CPM_SOURCE_CACHE": "$env{HOME}/.cache/CPM", | ||
"PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}" | ||
}, | ||
"warnings": { | ||
"deprecated": true, | ||
"uninitialized": true | ||
} | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default" | ||
}, | ||
"name": "Debug", | ||
"inherits": "Release", | ||
"displayName": "Ninja Multi-Config", | ||
"description": "Debug build using Ninja Multi-Config generator", | ||
"generator": "Ninja Multi-Config" | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"type": "test", | ||
"name": "default" | ||
"name": "Debug", | ||
"configurePreset": "Debug", | ||
"configuration": "Debug" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "install" | ||
"name": "Release", | ||
"configurePreset": "Release" | ||
}, | ||
{ | ||
"type": "package", | ||
"name": "default" | ||
"name": "install", | ||
"configurePreset": "Release", | ||
"targets": [ | ||
"install" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "debug", | ||
"steps": [ | ||
], | ||
"testPresets": [ | ||
{ | ||
"type": "configure", | ||
"name": "default" | ||
"name": "Release", | ||
"configurePreset": "Release", | ||
"output": { | ||
"outputOnFailure": true | ||
}, | ||
"execution": { | ||
"noTestsAction": "error", | ||
"stopOnFailure": true | ||
} | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default" | ||
"name": "Debug", | ||
"configurePreset": "Debug", | ||
"configuration": "Debug", | ||
"output": { | ||
"outputOnFailure": true | ||
}, | ||
"execution": { | ||
"noTestsAction": "error", | ||
"stopOnFailure": true | ||
} | ||
} | ||
], | ||
"packagePresets": [ | ||
{ | ||
"name": "Release", | ||
"configurePreset": "Release", | ||
"generators": [ | ||
"TGZ" | ||
] | ||
} | ||
], | ||
"workflowPresets": [ | ||
{ | ||
"name": "Release", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "Release" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "Release" | ||
}, | ||
{ | ||
"type": "test", | ||
"name": "Release" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "install" | ||
}, | ||
{ | ||
"type": "package", | ||
"name": "Release" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "test", | ||
"name": "default" | ||
"name": "Debug", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "Debug" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "Debug" | ||
}, | ||
{ | ||
"type": "test", | ||
"name": "Debug" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} |
Oops, something went wrong.