[curl] Add features. (#7156)

This commit is contained in:
NancyLi1013 2019-07-07 23:11:01 -07:00 committed by Phil Christensen
parent d5959f2e4c
commit 042d7d368f
2 changed files with 32 additions and 1 deletions

View File

@ -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)

View File

@ -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}