Warning, /sdk/kompare/CMakePresets.json is written in an unsupported language. File is not indexed.

0001 {
0002     "version": 3,
0003     "configurePresets": [
0004         {
0005             "name": "base",
0006             "displayName": "base preset",
0007             "generator": "Ninja",
0008             "binaryDir": "${sourceDir}/build-${presetName}",
0009             "installDir": "$env{KF5}",
0010             "hidden": true
0011         },
0012         {
0013             "name": "dev",
0014             "displayName": "Build as debug",
0015             "cacheVariables": {
0016                 "CMAKE_BUILD_TYPE": "Debug",
0017                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0018             },
0019             "inherits": [
0020                 "base"
0021             ]
0022 
0023         },
0024         {
0025             "name": "coverage",
0026             "displayName": "Build as debug",
0027             "cacheVariables": {
0028                 "CMAKE_BUILD_TYPE": "Debug",
0029                 "BUILD_COVERAGE": "ON",
0030                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0031             },
0032             "inherits": [
0033                 "base"
0034             ]
0035         },
0036         {
0037             "name": "dev-qt6",
0038             "displayName": "Build against qt6",
0039             "binaryDir": "${sourceDir}/build-qt6",
0040             "cacheVariables": {
0041                 "CMAKE_BUILD_TYPE": "Debug",
0042                 "BUILD_WITH_QT6": "ON",
0043                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0044             },
0045             "inherits": [
0046                 "base"
0047             ]
0048         },
0049         {
0050             "name": "dev-disable-deprecated",
0051             "displayName": "Build as without deprecated methods",
0052             "cacheVariables": {
0053                 "CMAKE_BUILD_TYPE": "Debug",
0054                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
0055                 "CMAKE_CXX_FLAGS_INIT": "-DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000"
0056             },
0057             "inherits": [
0058                 "base"
0059             ]
0060         },
0061         {
0062             "name": "asan",
0063             "displayName": "Build with Asan support.",
0064             "cacheVariables": {
0065                 "CMAKE_BUILD_TYPE": "Debug",
0066                 "ECM_ENABLE_SANITIZERS" : "'address;undefined'",
0067                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0068             },
0069             "inherits": [
0070                 "base"
0071             ]
0072         },
0073         {
0074             "name": "pch",
0075             "displayName": "Build with PCH support.",
0076             "cacheVariables": {
0077                 "CMAKE_BUILD_TYPE": "Debug",
0078                 "COMPILE_WITH_CMAKE_PCH_SUPPORT": "ON",
0079                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0080             },
0081             "inherits": [
0082                 "base"
0083             ]
0084         },
0085         {
0086             "name": "dev-clang",
0087             "displayName": "dev-clang",
0088             "cacheVariables": {
0089                 "CMAKE_BUILD_TYPE": "Debug",
0090                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0091             },
0092             "environment": {
0093                 "CXX": "clang++",
0094                 "CCACHE_DISABLE": "ON"
0095             },
0096             "inherits": [
0097                 "base"
0098             ]
0099         },
0100         {
0101             "name": "unity",
0102             "displayName": "Build with CMake unity support.",
0103             "cacheVariables": {
0104                 "CMAKE_BUILD_TYPE": "Debug",
0105                 "USE_UNITY_CMAKE_SUPPORT": "ON",
0106                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0107             },
0108             "inherits": [
0109                 "base"
0110             ]
0111         },
0112         {
0113             "name": "release",
0114             "displayName": "Build as release mode.",
0115             "cacheVariables": {
0116                 "CMAKE_BUILD_TYPE": "Release"
0117             },
0118             "inherits": [
0119                 "base"
0120             ]
0121         },
0122         {
0123             "name": "profile",
0124             "displayName": "profile",
0125             "cacheVariables": {
0126                 "CMAKE_BUILD_TYPE": "RelWithDebInfo",
0127                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0128             },
0129             "inherits": [
0130                 "base"
0131             ]
0132         },
0133         {
0134             "name": "clazy",
0135             "displayName": "clazy",
0136             "cacheVariables": {
0137                 "CMAKE_BUILD_TYPE": "Debug"
0138             },
0139             "environment": {
0140                 "CXX": "clazy",
0141                 "CCACHE_DISABLE": "ON"
0142             },
0143             "inherits": [
0144                 "base"
0145             ]
0146         }
0147 
0148     ],
0149     "buildPresets": [
0150         {
0151             "name": "dev",
0152             "configurePreset": "dev"
0153         },
0154         {
0155             "name": "dev-qt6",
0156             "configurePreset": "dev-qt6"
0157         },
0158         {
0159             "name": "dev-disable-deprecated",
0160             "configurePreset": "dev-disable-deprecated"
0161         },
0162         {
0163             "name": "pch",
0164             "configurePreset": "pch"
0165         },
0166         {
0167             "name": "release",
0168             "configurePreset": "release"
0169         },
0170         {
0171             "name": "coverage",
0172             "configurePreset": "coverage"
0173         },
0174         {
0175             "name": "dev-clang",
0176             "configurePreset": "dev-clang"
0177         },
0178         {
0179             "name": "asan",
0180             "configurePreset": "asan"
0181         },
0182         {
0183             "name": "unity",
0184             "configurePreset": "unity"
0185         },
0186         {
0187             "name": "clazy",
0188             "configurePreset": "clazy",
0189             "environment": {
0190                 "CLAZY_CHECKS" : "level0,level1,detaching-member,ifndef-define-typo,isempty-vs-count,qrequiredresult-candidates,reserve-candidates,signal-with-return-value,unneeded-cast,function-args-by-ref,function-args-by-value,returning-void-expression,no-ctor-missing-parent-argument,isempty-vs-count,qhash-with-char-pointer-key,raw-environment-function,qproperty-type-mismatch,old-style-connect,qstring-allocations,container-inside-loop,heap-allocated-small-trivial-type,inefficient-qlist,qstring-varargs,level2,detaching-member,heap-allocated-small-trivial-type,isempty-vs-count,qstring-varargs,qvariant-template-instantiation,raw-environment-function,reserve-candidates,signal-with-return-value,thread-with-slots,no-ctor-missing-parent-argument,no-missing-typeinfo",
0191                 "CCACHE_DISABLE" : "ON"
0192             }
0193         }
0194     ],
0195     "testPresets": [
0196     { 
0197       "name": "dev",
0198       "configurePreset": "dev",
0199       "output": {"outputOnFailure": true},
0200       "execution": {"noTestsAction": "error", "stopOnFailure": false}
0201     },
0202     { 
0203       "name": "asan",
0204       "configurePreset": "asan",
0205       "output": {"outputOnFailure": true},
0206       "execution": {"noTestsAction": "error", "stopOnFailure": true}
0207     }
0208     ]
0209 }