|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
{ |
|
|
|
|
"version": 1, |
|
|
|
|
"version": 2, |
|
|
|
|
"configurePresets": [ |
|
|
|
|
{ |
|
|
|
|
"name": "dev", |
|
|
|
|
@ -11,6 +11,17 @@ |
|
|
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "dev-disable-deprecated", |
|
|
|
|
"displayName": "Build as without deprecated methods", |
|
|
|
|
"generator": "Ninja", |
|
|
|
|
"binaryDir": "${sourceDir}/build-disable-deprecated", |
|
|
|
|
"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" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "asan", |
|
|
|
|
"displayName": "Build with Asan support.", |
|
|
|
|
@ -22,6 +33,17 @@ |
|
|
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"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" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "release", |
|
|
|
|
"displayName": "Build as release mode.", |
|
|
|
|
@ -40,16 +62,44 @@ |
|
|
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo", |
|
|
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "unity", |
|
|
|
|
"displayName": "Build with CMake unity support.", |
|
|
|
|
"name": "clazy", |
|
|
|
|
"displayName": "clazy", |
|
|
|
|
"generator": "Ninja", |
|
|
|
|
"binaryDir": "${sourceDir}/build-unity", |
|
|
|
|
"binaryDir": "${sourceDir}/build-clazy", |
|
|
|
|
"cacheVariables": { |
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug", |
|
|
|
|
"CMAKE_UNITY_BUILD": "ON", |
|
|
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug" |
|
|
|
|
}, |
|
|
|
|
"environment": { |
|
|
|
|
"CXX": "clazy", |
|
|
|
|
"CCACHE_DISABLE": "ON" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"buildPresets": [ |
|
|
|
|
{ |
|
|
|
|
"name": "dev", |
|
|
|
|
"configurePreset": "dev" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "asan", |
|
|
|
|
"configurePreset": "asan" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "dev-disable-deprecated", |
|
|
|
|
"configurePreset": "dev-disable-deprecated" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "unity", |
|
|
|
|
"configurePreset": "unity" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "clazy", |
|
|
|
|
"configurePreset": "clazy", |
|
|
|
|
"environment": { |
|
|
|
|
"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", |
|
|
|
|
"CCACHE_DISABLE" : "ON" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
|