[curl] use supports expressions (#28030)

Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
autoantwort 2022-11-30 18:32:47 +01:00 committed by GitHub
parent 1267dfe357
commit 02da7d7659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 27 deletions

View File

@ -14,23 +14,6 @@ vcpkg_from_github(
export-components.patch
)
# schannel will enable sspi, but sspi do not support uwp
foreach(feature IN ITEMS "schannel" "sspi" "tool" "winldap")
if(feature IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
message(FATAL_ERROR "Feature ${feature} is not supported on UWP.")
endif()
endforeach()
if("sectransp" IN_LIST FEATURES AND NOT (VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS))
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
endif()
foreach(feature IN ITEMS "winldap" "winidn")
if(feature IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(FATAL_ERROR "Feature ${feature} is not supported on non-Windows platforms.")
endif()
endforeach()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
# Support HTTP2 TLS Download https://curl.haxx.se/ca/cacert.pem rename to curl-ca-bundle.crt, copy it to libcurl.dll location.

View File

@ -1,6 +1,7 @@
{
"name": "curl",
"version": "7.86.0",
"port-version": 1,
"description": "A library for transferring data with URLs",
"homepage": "https://curl.se/",
"license": null,
@ -89,6 +90,7 @@
},
"schannel": {
"description": "SSL support (Secure Channel)",
"supports": "windows & !uwp",
"dependencies": [
{
"name": "curl",
@ -100,7 +102,8 @@
]
},
"sectransp": {
"description": "SSL support (sectransp)"
"description": "SSL support (sectransp)",
"supports": "osx | ios"
},
"ssh": {
"description": "SSH support via libssh2",
@ -152,19 +155,23 @@
]
},
"sspi": {
"description": "SSPI support"
"description": "SSPI support",
"supports": "windows & !uwp"
},
"tool": {
"description": "Builds curl executable"
"description": "Builds curl executable",
"supports": "!uwp"
},
"websockets": {
"description": "WebSocket support (experimental)"
},
"winidn": {
"description": "WinIDN support"
"description": "WinIDN support",
"supports": "windows"
},
"winldap": {
"description": "LDAP support (WinLDAP). This feature does not include LDAPS support.",
"supports": "windows & !uwp",
"dependencies": [
{
"name": "curl",

View File

@ -1802,7 +1802,7 @@
},
"curl": {
"baseline": "7.86.0",
"port-version": 0
"port-version": 1
},
"curlpp": {
"baseline": "2018-06-15",

View File

@ -1,10 +1,15 @@
{
"versions": [
{
"git-tree": "ac2042be9746b4b193f99398f32bed8057f5d267",
"version": "7.86.0",
"port-version": 0
},
{
"git-tree": "cbef59f527b7675f113f89aad00b16fde6910b86",
"version": "7.86.0",
"port-version": 1
},
{
"git-tree": "ac2042be9746b4b193f99398f32bed8057f5d267",
"version": "7.86.0",
"port-version": 0
},
{
"git-tree": "588fa4742c417db9d7c0f89e652b618296388d1e",
"version": "7.84.0",