diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-07-07 23:11:01 -0700 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-07-07 23:11:01 -0700 |
| commit | 042d7d368f7417039cc8e42cc34af634d9a45f80 (patch) | |
| tree | ca784546b2c3709008791cd54afbae7aeff8d203 | |
| parent | d5959f2e4c8efcf22048beca8e393058e37a3ead (diff) | |
| download | vcpkg-042d7d368f7417039cc8e42cc34af634d9a45f80.tar.gz vcpkg-042d7d368f7417039cc8e42cc34af634d9a45f80.zip | |
[curl] Add features. (#7156)
| -rw-r--r-- | ports/curl/CONTROL | 12 | ||||
| -rw-r--r-- | ports/curl/portfile.cmake | 21 |
2 files changed, 32 insertions, 1 deletions
diff --git a/ports/curl/CONTROL b/ports/curl/CONTROL index bd7c4b39b..0b2028369 100644 --- a/ports/curl/CONTROL +++ b/ports/curl/CONTROL @@ -1,5 +1,5 @@ Source: curl -Version: 7.65.0-2 +Version: 7.65.0-3 Build-Depends: zlib Homepage: https://github.com/curl/curl Description: A library for transferring data with URLs @@ -37,3 +37,13 @@ Description: SSL support (mbedTLS) Feature: sectransp Description: SSL support (sectransp) + +Feature: c-ares +Build-Depends: c-ares +Description: c-ares support + +Feature:sspi +Description: SSPI support + +Feature: brotli +Description: brotli support (brotli)
\ No newline at end of file diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake index 091fe9205..5c4f94fdf 100644 --- a/ports/curl/portfile.cmake +++ b/ports/curl/portfile.cmake @@ -73,6 +73,24 @@ if("tool" IN_LIST FEATURES) set(BUILD_CURL_EXE ON) endif() +# c-ares +set(USE_ARES OFF) +if("c-ares" IN_LIST FEATURES) + set(USE_ARES ON) +endif() + +# SSPI +set(USE_WINDOWS_SSPI OFF) +if("sspi" IN_LIST FEATURES) + set(USE_WINDOWS_SSPI ON) +endif() + +# brotli +set(HAVE_BROTLI OFF) +if("brotli" IN_LIST FEATURES) + set(HAVE_BROTLI ON) +endif() + # UWP targets set(UWP_OPTIONS) if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") @@ -101,6 +119,9 @@ vcpkg_configure_cmake( -DCMAKE_USE_SECTRANSP=${USE_SECTRANSP} -DCMAKE_USE_LIBSSH2=${USE_LIBSSH2} -DHTTP_ONLY=${USE_HTTP_ONLY} + -DENABLE_ARES=${USE_ARES} + -DCURL_WINDOWS_SSPI=${USE_WINDOWS_SSPI} + -DCURL_BROTLI=${HAVE_BROTLI} -DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON OPTIONS_RELEASE -DBUILD_CURL_EXE=${BUILD_CURL_EXE} |
