Warning, /sdk/kde-dev-scripts/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": "base-qt6",
0014             "displayName": "base preset",
0015             "generator": "Ninja",
0016             "binaryDir": "${sourceDir}/build-${presetName}",
0017             "installDir": "$env{KF6}",
0018             "hidden": true
0019         },      
0020         {
0021             "name": "dev-mold",
0022             "displayName": "Build as debug + using mold linker",
0023             "cacheVariables": {
0024                 "CMAKE_BUILD_TYPE": "Debug",
0025                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
0026                 "CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=mold"
0027             },
0028             "inherits": [
0029                 "base"
0030             ]
0031         },
0032         {
0033             "name": "dev",
0034             "displayName": "Build as debug",
0035             "cacheVariables": {
0036                 "CMAKE_BUILD_TYPE": "Debug",
0037                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0038             },
0039             "inherits": [
0040                 "base"
0041             ]
0042         },
0043         {
0044             "name": "dev-qt6",
0045             "displayName": "Build against qt6",
0046             "binaryDir": "${sourceDir}/build-qt6",
0047             "cacheVariables": {
0048                 "CMAKE_BUILD_TYPE": "Debug",
0049                 "BUILD_WITH_QT6": "ON",
0050                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0051             },
0052             "inherits": [
0053                 "base-qt6"
0054             ]
0055         },
0056         {
0057             "name": "dev-qt6-database",
0058             "displayName": "Build against qt6 with database support (experimental)",
0059             "binaryDir": "${sourceDir}/build-qt6-database",
0060             "cacheVariables": {
0061                 "CMAKE_BUILD_TYPE": "Debug",
0062                 "BUILD_WITH_QT6": "ON",
0063                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
0064                 "EXPERIMENTAL_DATABASE_SUPPORT": "ON"
0065             },
0066             "inherits": [
0067                 "base-qt6"
0068             ]
0069         },
0070         {
0071             "name": "release-qt6",
0072             "displayName": "Build as release mode.",
0073             "cacheVariables": {
0074                 "CMAKE_BUILD_TYPE": "Release",
0075                 "BUILD_WITH_QT6": "ON",
0076                 "BUILD_TESTING": "OFF"
0077             },
0078             "inherits": [
0079                 "base-qt6"
0080             ]
0081         },      
0082         {
0083             "name": "asan",
0084             "displayName": "Build with Asan support.",
0085             "cacheVariables": {
0086                 "CMAKE_BUILD_TYPE": "Debug",
0087                 "ECM_ENABLE_SANITIZERS" : "'address;undefined'"
0088             },
0089             "inherits": [
0090                 "base"
0091             ]
0092         },
0093         {
0094             "name": "dev-clang",
0095             "displayName": "dev-clang",
0096             "cacheVariables": {
0097                 "CMAKE_BUILD_TYPE": "Debug",
0098                 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
0099             },
0100             "environment": {
0101                 "CXX": "clang++",
0102                 "CCACHE_DISABLE": "ON"
0103             },
0104             "inherits": [
0105                 "base"
0106             ]
0107         },
0108         {
0109             "name": "unity",
0110             "displayName": "Build with CMake unity support.",
0111             "cacheVariables": {
0112                 "CMAKE_BUILD_TYPE": "Debug",
0113                 "USE_UNITY_CMAKE_SUPPORT": "ON"
0114             },
0115             "inherits": [
0116                 "base"
0117             ]
0118         },
0119         {
0120             "name": "release",
0121             "displayName": "Build as release mode.",
0122             "cacheVariables": {
0123                 "CMAKE_BUILD_TYPE": "Release",
0124                 "BUILD_TESTING": "OFF"
0125             },
0126             "inherits": [
0127                 "base"
0128             ]
0129         },
0130         {
0131             "name": "profile",
0132             "displayName": "profile",
0133             "cacheVariables": {
0134                 "CMAKE_BUILD_TYPE": "RelWithDebInfo"
0135             },
0136             "inherits": [
0137                 "base"
0138             ]
0139         },
0140         {
0141             "name": "coverage",
0142             "displayName": "coverage",
0143             "cacheVariables": {
0144                 "CMAKE_BUILD_TYPE": "Debug",
0145                 "USE_UNITY_CMAKE_SUPPORT": "OFF",
0146                 "BUILD_COVERAGE": "ON" 
0147             },
0148             "inherits": [
0149                 "base"
0150             ]
0151         },
0152         {
0153             "name": "clazy",
0154             "displayName": "clazy",
0155             "cacheVariables": {
0156                 "CMAKE_BUILD_TYPE": "Debug"
0157             },
0158             "environment": {
0159                 "CXX": "clazy",
0160                 "CCACHE_DISABLE": "ON"
0161             },
0162             "inherits": [
0163                 "base"
0164             ]
0165         },
0166         {
0167             "name": "pch",
0168             "displayName": "pch",
0169             "cacheVariables": {
0170                 "CMAKE_BUILD_TYPE": "Debug",
0171                 "USE_PRECOMPILED_HEADERS": "ON",
0172                 "BUILD_COVERAGE": "ON"
0173             },
0174             "inherits": [
0175                 "base"
0176             ]
0177         }
0178     ],
0179     "buildPresets": [
0180         {
0181             "name": "dev-qt6-database",
0182             "configurePreset": "dev-qt6-database"
0183         },
0184         {
0185             "name": "dev",
0186             "configurePreset": "dev"
0187         },
0188         {
0189             "name": "dev-mold",
0190             "configurePreset": "dev-mold"
0191         },
0192         {
0193             "name": "dev-qt6",
0194             "configurePreset": "dev-qt6"
0195         },
0196         {       
0197             "name": "release-qt6",
0198             "configurePreset": "release-qt6"
0199         },
0200         {
0201             "name": "dev-clang",
0202             "configurePreset": "dev-clang"
0203         },
0204         {
0205             "name": "pch",
0206             "configurePreset": "pch"
0207         },
0208         {
0209             "name": "release",
0210             "configurePreset": "release"
0211         },
0212         {
0213             "name": "unity",
0214             "configurePreset": "unity"
0215         },
0216         {
0217             "name": "coverage",
0218             "configurePreset": "coverage"
0219         },
0220         {
0221             "name": "asan",
0222             "configurePreset": "asan"
0223         },
0224         {
0225             "name": "clazy",
0226             "configurePreset": "clazy",
0227             "environment": {
0228                 "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",
0229                 "CCACHE_DISABLE" : "ON"
0230             }
0231         }
0232     ],
0233     "testPresets": [
0234     {
0235       "name": "dev",
0236       "configurePreset": "dev",
0237       "output": {"outputOnFailure": true},
0238       "execution": {"noTestsAction": "error", "stopOnFailure": false}
0239     },
0240     {
0241       "name": "asan",
0242       "configurePreset": "asan",
0243       "output": {"outputOnFailure": true},
0244       "execution": {"noTestsAction": "error", "stopOnFailure": true}
0245     },
0246     {
0247       "name": "unity",
0248       "configurePreset": "unity",
0249       "output": {"outputOnFailure": true},
0250       "execution": {"noTestsAction": "error", "stopOnFailure": true}
0251     },
0252     {
0253       "name": "coverage",
0254       "configurePreset": "coverage",
0255       "output": {"outputOnFailure": true},
0256       "execution": {"noTestsAction": "error", "stopOnFailure": true}
0257     }
0258   ]
0259 }