mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-29 08:34:50 +08:00
153 lines
3.1 KiB
JSON
153 lines
3.1 KiB
JSON
{
|
|
"version": 3,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 25,
|
|
"patch": 1
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "ninja",
|
|
"hidden": true,
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"warnings": {
|
|
"deprecated": true,
|
|
"unusedCli": true
|
|
}
|
|
},
|
|
{
|
|
"name": "debug",
|
|
"inherits": ["ninja"],
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
}
|
|
},
|
|
{
|
|
"name": "release",
|
|
"inherits": ["ninja"],
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "debug-portable",
|
|
"inherits": ["debug", "config-portable"]
|
|
},
|
|
{
|
|
"name": "release-portable",
|
|
"inherits": ["release", "config-portable"]
|
|
},
|
|
{
|
|
"name": "dev",
|
|
"inherits": ["release"],
|
|
"cacheVariables": {
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
|
|
"ZEAL_DEPLOY_QT_ON_BUILD": "ON",
|
|
"ZEAL_USE_COMPILER_CACHE": "ON"
|
|
},
|
|
"warnings": {
|
|
"dev": true,
|
|
"uninitialized": true
|
|
}
|
|
},
|
|
{
|
|
"name": "dev-portable",
|
|
"inherits": ["dev", "config-portable"]
|
|
},
|
|
{
|
|
"name": "config-portable",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"ZEAL_PORTABLE_BUILD": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "config-testing",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"BUILD_TESTING": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "testing",
|
|
"inherits": ["debug", "config-testing"]
|
|
},
|
|
{
|
|
"name": "timetrace-windows",
|
|
"inherits": ["release"],
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "clang-cl",
|
|
"CMAKE_CXX_COMPILER": "clang-cl",
|
|
"CMAKE_CXX_FLAGS": "/clang:-ftime-trace /EHsc"
|
|
}
|
|
},
|
|
{
|
|
"name": "timetrace-unix",
|
|
"inherits": ["release"],
|
|
"condition": {
|
|
"type": "notEquals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "clang",
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
|
"CMAKE_CXX_FLAGS": "-ftime-trace"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "debug",
|
|
"configurePreset": "debug"
|
|
},
|
|
{
|
|
"name": "release",
|
|
"configurePreset": "release"
|
|
},
|
|
{
|
|
"name": "debug-portable",
|
|
"configurePreset": "debug-portable"
|
|
},
|
|
{
|
|
"name": "release-portable",
|
|
"configurePreset": "release-portable"
|
|
},
|
|
{
|
|
"name": "dev",
|
|
"configurePreset": "dev"
|
|
},
|
|
{
|
|
"name": "dev-portable",
|
|
"configurePreset": "dev-portable"
|
|
},
|
|
{
|
|
"name": "testing",
|
|
"configurePreset": "testing"
|
|
},
|
|
{
|
|
"name": "timetrace-windows",
|
|
"configurePreset": "timetrace-windows"
|
|
},
|
|
{
|
|
"name": "timetrace-unix",
|
|
"configurePreset": "timetrace-unix"
|
|
}
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "testing",
|
|
"configurePreset": "testing",
|
|
"output": {
|
|
"outputOnFailure": true
|
|
}
|
|
}
|
|
]
|
|
}
|