mirror of
https://github.com/openziti/ziti-sdk-c.git
synced 2026-11-15 20:53:50 +00:00
288 lines
6.6 KiB
JSON
288 lines
6.6 KiB
JSON
{
|
|
"version": 2,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 14,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "dev-mode",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"ziti_DEVELOPER_MODE": "ON",
|
|
"VCPKG_MANIFEST_FEATURES": "dev-features"
|
|
}
|
|
},
|
|
{
|
|
"name": "vcpkg",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
|
}
|
|
},
|
|
{
|
|
"name": "vcpkg-win64-static",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md",
|
|
"VCPKG_HOST_TRIPLET": "x64-windows"
|
|
}
|
|
},
|
|
{
|
|
"name": "vcpkg-win32-static",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_ARCHITECTURE": "x86",
|
|
"VCPKG_TARGET_TRIPLET": "x86-windows-static-md",
|
|
"VCPKG_HOST_TRIPLET": "x64-windows"
|
|
}
|
|
},
|
|
{
|
|
"name": "vcpkg-win64-mingw-static",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
|
|
"VCPKG_HOST_TRIPLET": "x64-windows"
|
|
}
|
|
},
|
|
{
|
|
"name": "ninja",
|
|
"hidden": true,
|
|
"generator": "Ninja"
|
|
},
|
|
{
|
|
"name": "ninja-multi-config",
|
|
"hidden": true,
|
|
"generator": "Ninja Multi-Config"
|
|
},
|
|
{
|
|
"name": "vs-2022",
|
|
"hidden": true,
|
|
"generator": "Visual Studio 18 2026"
|
|
},
|
|
{
|
|
"name": "ci-std",
|
|
"description": "This preset makes sure the project actually builds with at least the specified standard",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_C_EXTENSIONS": "ON",
|
|
"CMAKE_C_STANDARD": "99",
|
|
"CMAKE_C_STANDARD_REQUIRED": "ON",
|
|
"CMAKE_CXX_EXTENSIONS": "OFF",
|
|
"CMAKE_CXX_STANDARD": "11",
|
|
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "flags-unix",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_C_FLAGS": "",
|
|
"CMAKE_CXX_FLAGS": ""
|
|
}
|
|
},
|
|
{
|
|
"name": "flags-windows",
|
|
"description": "Note that all the flags after /W4 are required for MSVC to conform to the language standard",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"TLSUV_TLSLIB": "openssl",
|
|
"CMAKE_C_FLAGS": "/utf-8 /W4 /permissive- /volatile:iso /Zc:preprocessor",
|
|
"CMAKE_CXX_FLAGS": "/utf-8 /W4 /permissive- /volatile:iso /Zc:preprocessor /Zc:__cplusplus /Zc:externConstexpr /Zc:throwingNew /EHsc"
|
|
}
|
|
},
|
|
{
|
|
"name": "flags-windows-mingw",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"TLSUV_TLSLIB": "openssl",
|
|
"CMAKE_C_COMPILER": "gcc",
|
|
"CMAKE_CXX_COMPILER": "g++",
|
|
"CMAKE_EXE_LINKER_FLAGS": "-Wl,-Bstatic -lpthread"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-unix",
|
|
"hidden": true,
|
|
"inherits": [
|
|
"flags-unix",
|
|
"ci-std",
|
|
"ninja-multi-config"
|
|
],
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-win32",
|
|
"inherits": [
|
|
"flags-windows",
|
|
"ci-std",
|
|
"vs-2022"
|
|
],
|
|
"architecture": "Win32",
|
|
"cacheVariables": {
|
|
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Windows-x86-msvc.cmake"
|
|
},
|
|
"hidden": true
|
|
},
|
|
{
|
|
"name": "ci-win64",
|
|
"inherits": [
|
|
"flags-windows",
|
|
"ci-std",
|
|
"vs-2022"
|
|
],
|
|
"architecture": {
|
|
"value": "x64",
|
|
"strategy": "external"
|
|
},
|
|
"hidden": true
|
|
},
|
|
{
|
|
"name": "ci-win-arm64",
|
|
"inherits": [
|
|
"flags-windows",
|
|
"ci-std",
|
|
"vs-2022"
|
|
],
|
|
"architecture": "ARM64",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_GENERATOR_PLATFORM": "ARM64",
|
|
"VCPKG_TARGET_ARCHITECTURE": "arm64",
|
|
"VCPKG_TARGET_TRIPLET": "arm64-windows-static-md",
|
|
"VCPKG_HOST_TRIPLET": "x64-windows",
|
|
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Windows-arm64-msvc.cmake"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-win64-mingw",
|
|
"inherits": [
|
|
"flags-windows-mingw",
|
|
"ci-std",
|
|
"ninja"
|
|
],
|
|
"architecture": {
|
|
"value": "x64",
|
|
"strategy": "external"
|
|
},
|
|
"hidden": true
|
|
},
|
|
{
|
|
"name": "ci-build",
|
|
"binaryDir": "${sourceDir}/build",
|
|
"hidden": true
|
|
},
|
|
{
|
|
"name": "ci-macOS-x64",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-unix",
|
|
"dev-mode",
|
|
"vcpkg"
|
|
],
|
|
"cacheVariables": {
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-macOS-arm64",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-unix",
|
|
"dev-mode",
|
|
"vcpkg"
|
|
],
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_ARCHITECTURE": "arm64",
|
|
"VCPKG_TARGET_TRIPLET": "arm64-osx",
|
|
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/macOS-arm64.cmake"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-linux-x64",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-unix",
|
|
"vcpkg",
|
|
"dev-mode"
|
|
],
|
|
"cacheVariables": {
|
|
"VCPKG_OVERLAY_PORTS": "${sourceDir}/vcpkg-overlays/linux"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-linux-arm64",
|
|
"inherits": "ci-linux-x64",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "arm64-linux",
|
|
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Linux-arm64.cmake"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-linux-arm",
|
|
"inherits": "ci-linux-x64",
|
|
"cacheVariables": {
|
|
"VCPKG_TARGET_TRIPLET": "arm-linux",
|
|
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Linux-arm.cmake"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-freebsd-x64",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-unix",
|
|
"dev-mode",
|
|
"vcpkg"
|
|
],
|
|
"cacheVariables": {
|
|
"CMAKE_MAKE_PROGRAM": "ninja",
|
|
"CMAKE_C_COMPILER": "clang",
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
|
"VCPKG_TARGET_TRIPLET": "x64-freebsd"
|
|
}
|
|
},
|
|
{
|
|
"name": "ci-windows-x86",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-win32",
|
|
"dev-mode",
|
|
"vcpkg",
|
|
"vcpkg-win32-static"
|
|
]
|
|
},
|
|
{
|
|
"name": "ci-windows-x64",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-win64",
|
|
"dev-mode",
|
|
"vcpkg",
|
|
"vcpkg-win64-static"
|
|
]
|
|
},
|
|
{
|
|
"name": "ci-windows-arm64",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-win-arm64",
|
|
"dev-mode",
|
|
"vcpkg"
|
|
]
|
|
},
|
|
|
|
{
|
|
"name": "ci-windows-x64-mingw",
|
|
"inherits": [
|
|
"ci-build",
|
|
"ci-win64-mingw",
|
|
"dev-mode",
|
|
"vcpkg",
|
|
"vcpkg-win64-mingw-static"
|
|
]
|
|
}
|
|
]
|
|
}
|