mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
Expose darwinssl as an option when building curl (updated) (#6124)
* expose darwinssl as an option * Fix typo * add an error in case darwinssl is used on a non darwin system * [curl] add darwinssl to curl[ssl] osx default * [curl] Bump CONTROL version
This commit is contained in:
parent
d8e168c1e8
commit
2112801aba
@ -1,5 +1,5 @@
|
||||
Source: curl
|
||||
Version: 7.61.1-5
|
||||
Version: 7.61.1-6
|
||||
Build-Depends: zlib
|
||||
Description: A library for transferring data with URLs
|
||||
Default-Features: ssl
|
||||
@ -15,7 +15,7 @@ Build-Depends: nghttp2, curl[ssl]
|
||||
Description: HTTP2 support
|
||||
|
||||
Feature: ssl
|
||||
Build-Depends: curl[openssl] (!windows), curl[winssl] (windows)
|
||||
Build-Depends: curl[openssl] (!windows&!osx), curl[winssl] (windows), curl[darwinssl] (osx)
|
||||
Description: Default SSL backend
|
||||
|
||||
Feature: ssh
|
||||
@ -33,3 +33,6 @@ Description: SSL support (Secure Channel / "WinSSL")
|
||||
Feature: mbedtls
|
||||
Build-Depends: mbedtls
|
||||
Description: SSL support (mbedTLS)
|
||||
|
||||
Feature: darwinssl
|
||||
Description: SSL support (darwinssl)
|
||||
|
@ -40,6 +40,19 @@ if("mbedtls" IN_LIST FEATURES)
|
||||
set(USE_MBEDTLS ON)
|
||||
endif()
|
||||
|
||||
set(USE_DARWINSSL OFF)
|
||||
set(DARWINSSL_OPTIONS)
|
||||
if("darwinssl" IN_LIST FEATURES)
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
message(FATAL_ERROR "darwinssl is not supported on non-Apple platforms")
|
||||
endif()
|
||||
set(USE_DARWINSSL ON)
|
||||
set(DARWINSSL_OPTIONS
|
||||
-DCURL_CA_PATH=none
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
# SSH
|
||||
set(USE_LIBSSH2 OFF)
|
||||
if("ssh" IN_LIST FEATURES)
|
||||
@ -79,6 +92,7 @@ vcpkg_configure_cmake(
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
${UWP_OPTIONS}
|
||||
${DARWINSSL_OPTIONS}
|
||||
${HTTP2_OPTIONS}
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_CURL_EXE=${BUILD_CURL_EXE}
|
||||
@ -87,6 +101,7 @@ vcpkg_configure_cmake(
|
||||
-DCMAKE_USE_OPENSSL=${USE_OPENSSL}
|
||||
-DCMAKE_USE_WINSSL=${USE_WINSSL}
|
||||
-DCMAKE_USE_MBEDTLS=${USE_MBEDTLS}
|
||||
-DCMAKE_USE_DARWINSSL=${USE_DARWINSSL}
|
||||
-DCMAKE_USE_LIBSSH2=${USE_LIBSSH2}
|
||||
-DHTTP_ONLY=${USE_HTTP_ONLY}
|
||||
OPTIONS_RELEASE
|
||||
|
Loading…
x
Reference in New Issue
Block a user