forked from lthn/blockchain
Introduces CMakePresets.json and ConanPresets.json for standardized build configuration. Updates Makefile to use CMake presets, modifies .gitignore for IDE files, and refines conanfile.py to support CI option and preset integration.
98 lines
No EOL
2.1 KiB
JSON
98 lines
No EOL
2.1 KiB
JSON
{
|
|
"version": 10,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 23,
|
|
"patch": 0
|
|
},
|
|
"$comment": "Lethean presets",
|
|
"include": [
|
|
"ConanPresets.json"
|
|
|
|
],
|
|
"configurePresets": [
|
|
{
|
|
"name": "default",
|
|
"displayName": "Default Config",
|
|
"description": "Default build using Ninja generator",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/default",
|
|
"cacheVariables": {
|
|
"TESTNET": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "windows-default",
|
|
"displayName": "Windows x64 Debug",
|
|
"description": "Sets Ninja generator, compilers, x64 architecture, build and install directory, debug build type",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"architecture": {
|
|
"value": "x64",
|
|
"strategy": "external"
|
|
},
|
|
"cacheVariables": {
|
|
"TESTNET": "ON",
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}"
|
|
},
|
|
"vendor": {
|
|
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
|
"hostOS": [ "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",
|
|
"ZIP"
|
|
]
|
|
}
|
|
],
|
|
"workflowPresets": [
|
|
{
|
|
"name": "default",
|
|
"steps": [
|
|
{
|
|
"type": "configure",
|
|
"name": "default"
|
|
},
|
|
{
|
|
"type": "build",
|
|
"name": "default"
|
|
},
|
|
{
|
|
"type": "test",
|
|
"name": "default"
|
|
},
|
|
{
|
|
"type": "package",
|
|
"name": "default"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |