1
0
mirror of https://github.com/shadowsocks/shadowsocks-libev.git synced 2026-09-24 00:45:06 +00:00
Files
shadowsocks-libev/CMakePresets.json
Max Lv 201e70c4bd Modernize C builds with offline dependencies and portable runtime helpers (#3050)
Bundle pinned offline dependencies, remove libcork/libipset and submodule requirements, and add portable runtime helpers with relocatable static/shared library installations.

Add Clang static build validation for Linux/musl, macOS and Windows, real TCP/UDP and SIP003 interoperability coverage, and recorded performance tradeoffs. All 21 hosted checks pass at the reviewed PR head 8d504e6218.
2026-09-11 13:42:11 +08:00

144 lines
2.8 KiB
JSON

{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "system",
"displayName": "System dependencies",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-system",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WITH_STATIC": "OFF",
"WITH_DOC_MAN": "OFF",
"WITH_DOC_HTML": "OFF",
"SS_DEPENDENCY_MODE": "system"
}
},
{
"name": "system-static",
"inherits": "system",
"binaryDir": "${sourceDir}/build-system-static",
"cacheVariables": {
"WITH_STATIC": "ON",
"SS_BUILD_SHARED_LIBRARY": "OFF"
}
},
{
"name": "asan",
"inherits": "system",
"binaryDir": "${sourceDir}/build-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ENABLE_SANITIZERS": "ON"
}
},
{
"name": "bundled",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-bundled",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"SS_DEPENDENCY_MODE": "bundled",
"WITH_STATIC": "ON"
}
},
{
"name": "minimal",
"inherits": "bundled",
"binaryDir": "${sourceDir}/build-minimal",
"cacheVariables": {
"SS_MINIMAL": "ON"
}
}
],
"buildPresets": [
{
"name": "system",
"configurePreset": "system"
},
{
"name": "system-static",
"configurePreset": "system-static"
},
{
"name": "asan",
"configurePreset": "asan"
},
{
"name": "bundled",
"configurePreset": "bundled"
},
{
"name": "minimal",
"configurePreset": "minimal"
}
],
"testPresets": [
{
"name": "system",
"configurePreset": "system",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "unit"
}
}
},
{
"name": "system-static",
"configurePreset": "system-static",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "unit"
}
}
},
{
"name": "asan",
"configurePreset": "asan",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "unit"
}
}
},
{
"name": "bundled",
"configurePreset": "bundled",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "unit|vendor"
}
}
},
{
"name": "minimal",
"configurePreset": "minimal",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "unit|vendor"
}
}
}
]
}