mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 20:32:00 +08:00
[cpprestsdk] Add feature for websockets (#4530)
This commit is contained in:
parent
8675caad70
commit
8d62a87448
@ -1,5 +1,10 @@
|
||||
Source: cpprestsdk
|
||||
Version: 2.10.6-1
|
||||
Build-Depends: zlib, openssl (!uwp), boost-system (!uwp), boost-date-time (!uwp), boost-regex (!uwp), websocketpp (!uwp), boost-thread (!uwp&!windows), boost-filesystem (!uwp&!windows), boost-random (!uwp&!windows), boost-chrono (!uwp&!windows)
|
||||
Version: 2.10.6-2
|
||||
Build-Depends: zlib, openssl (!uwp), boost-system (!uwp), boost-date-time (!uwp), boost-regex (!uwp), boost-thread (!uwp&!windows), boost-filesystem (!uwp&!windows), boost-random (!uwp&!windows), boost-chrono (!uwp&!windows)
|
||||
Description: C++11 JSON, REST, and OAuth library
|
||||
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
||||
Default-Features: websockets
|
||||
|
||||
Feature: websockets
|
||||
Build-Depends: websocketpp (!uwp)
|
||||
Description: Websockets support
|
||||
|
@ -16,6 +16,11 @@ if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
-DWEBSOCKETPP_CONFIG_VERSION=${WEBSOCKETPP_PATH})
|
||||
endif()
|
||||
|
||||
set(CPPREST_EXCLUDE_WEBSOCKETS ON)
|
||||
if("websockets" IN_LIST FEATURES)
|
||||
set(CPPREST_EXCLUDE_WEBSOCKETS OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/Release
|
||||
PREFER_NINJA
|
||||
@ -23,7 +28,7 @@ vcpkg_configure_cmake(
|
||||
${OPTIONS}
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_SAMPLES=OFF
|
||||
-DCPPREST_EXCLUDE_WEBSOCKETS=OFF
|
||||
-DCPPREST_EXCLUDE_WEBSOCKETS=${CPPREST_EXCLUDE_WEBSOCKETS}
|
||||
-DCPPREST_EXPORT_DIR=share/cpprestsdk
|
||||
-DWERROR=OFF
|
||||
OPTIONS_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user