Commit bb05f7e5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Update CMakePresets.json

parent d21d341a
Pipeline #196788 passed with stage
in 1 minute and 40 seconds
{
"version": 2,
"version": 3,
"configurePresets": [
{
"name": "base",
"displayName": "base preset",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"installDir": "$env{KF5}",
"hidden": true
},
{
"name": "dev",
"displayName": "Build as debug",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"inherits": [
"base"
]
},
{
"name": "dev-disable-deprecated",
"displayName": "Build as without deprecated methods",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-disable-deprecated",
"name": "dev-qt6",
"displayName": "Build against qt6",
"binaryDir": "${sourceDir}/build-qt6",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS_INIT": "-DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000"
}
"BUILD_WITH_QT6": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"inherits": [
"base"
]
},
{
"name": "asan",
"displayName": "Build with Asan support.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ECM_ENABLE_SANITIZERS" : "'address;undefined'",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
"ECM_ENABLE_SANITIZERS" : "'address;undefined'"
},
"inherits": [
"base"
]
},
{
"name": "dev-clang",
"displayName": "dev-clang",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"environment": {
"CXX": "clang++",
"CCACHE_DISABLE": "ON"
},
"inherits": [
"base"
]
},
{
"name": "unity",
"displayName": "Build with CMake unity support.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-unity",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_UNITY_BUILD": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
"USE_UNITY_CMAKE_SUPPORT": "ON"
},
"inherits": [
"base"
]
},
{
"name": "release",
"displayName": "Build as release mode.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
"inherits": [
"base"
]
},
{
"name": "profile",
"displayName": "profile",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-profile",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
},
"inherits": [
"base"
]
},
{
"name": "coverage",
"displayName": "coverage",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_UNITY_CMAKE_SUPPORT": "OFF",
"BUILD_COVERAGE": "ON"
},
"inherits": [
"base"
]
},
{
"name": "clazy",
"displayName": "clazy",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-clazy",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"environment": {
"CXX": "clazy",
"CCACHE_DISABLE": "ON"
}
},
"inherits": [
"base"
]
},
{
"name": "pch",
"displayName": "pch",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_PRECOMPILED_HEADERS": "ON",
"BUILD_COVERAGE": "ON"
},
"inherits": [
"base"
]
}
],
"buildPresets": [
......@@ -83,17 +135,33 @@
"configurePreset": "dev"
},
{
"name": "asan",
"configurePreset": "asan"
"name": "dev-qt6",
"configurePreset": "dev-qt6"
},
{
"name": "dev-disable-deprecated",
"configurePreset": "dev-disable-deprecated"
{
"name": "dev-clang",
"configurePreset": "dev-clang"
},
{
{
"name": "pch",
"configurePreset": "pch"
},
{
"name": "release",
"configurePreset": "release"
},
{
"name": "unity",
"configurePreset": "unity"
},
{
"name": "coverage",
"configurePreset": "coverage"
},
{
"name": "asan",
"configurePreset": "asan"
},
{
"name": "clazy",
"configurePreset": "clazy",
......@@ -102,5 +170,31 @@
"CCACHE_DISABLE" : "ON"
}
}
]
],
"testPresets": [
{
"name": "dev",
"configurePreset": "dev",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": false}
},
{
"name": "asan",
"configurePreset": "asan",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "unity",
"configurePreset": "unity",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "coverage",
"configurePreset": "coverage",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
}
]
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment