early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,18 @@
diff --git a/Release/cmake/cpprest_find_openssl.cmake b/Release/cmake/cpprest_find_openssl.cmake
index 9333663..c1df089 100644
--- a/Release/cmake/cpprest_find_openssl.cmake
+++ b/Release/cmake/cpprest_find_openssl.cmake
@@ -36,8 +36,11 @@ function(cpprest_find_openssl)
# Prefer a homebrew version of OpenSSL over the one in /usr/lib
file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl*/*)
# Prefer the latest (make the latest one first)
- list(REVERSE OPENSSL_ROOT_DIR)
- list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR)
+ if(OPENSSL_ROOT_DIR)
+ # Prefer the latest (make the latest one first)
+ list(REVERSE OPENSSL_ROOT_DIR)
+ list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR)
+ endif()
endif()
# This should prevent linking against the system provided 0.9.8y
message(STATUS "OPENSSL_ROOT_DIR = ${OPENSSL_ROOT_DIR}")

View File

@@ -0,0 +1,57 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/cpprestsdk
REF 122d09549201da5383321d870bed45ecb9e168c5
SHA512 c9ded33d3c67880e2471e479a38b40a14a9ff45d241e928b6339eca697b06ad621846260eca47b6b1b8a2bc9ab7bf4fea8d3e8e795cd430d8839beb530e16dd7
HEAD_REF master
PATCHES fix-find-openssl.patch
)
set(OPTIONS)
if(NOT VCPKG_TARGET_IS_UWP)
SET(WEBSOCKETPP_PATH "${CURRENT_INSTALLED_DIR}/share/websocketpp")
list(APPEND OPTIONS
-DWEBSOCKETPP_CONFIG=${WEBSOCKETPP_PATH}
-DWEBSOCKETPP_CONFIG_VERSION=${WEBSOCKETPP_PATH})
endif()
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
INVERTED_FEATURES
brotli CPPREST_EXCLUDE_BROTLI
compression CPPREST_EXCLUDE_COMPRESSION
websockets CPPREST_EXCLUDE_WEBSOCKETS
)
if(VCPKG_TARGET_IS_UWP)
set(configure_opts WINDOWS_USE_MSBUILD)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/Release"
${configure_opts}
OPTIONS
${OPTIONS}
${FEATURE_OPTIONS}
-DBUILD_TESTS=OFF
-DBUILD_SAMPLES=OFF
-DCPPREST_EXPORT_DIR=share/cpprestsdk
-DWERROR=OFF
-DPKG_CONFIG_EXECUTABLE=FALSE
OPTIONS_DEBUG
-DCPPREST_INSTALL_HEADERS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/share" "${CURRENT_PACKAGES_DIR}/lib/share")
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/cpprest/details/cpprest_compat.h"
"#ifdef _NO_ASYNCRTIMP" "#if 1")
endif()
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

131
externals/vcpkg/ports/cpprestsdk/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,131 @@
{
"name": "cpprestsdk",
"version": "2.10.18",
"port-version": 1,
"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."
],
"homepage": "https://github.com/Microsoft/cpprestsdk",
"dependencies": [
{
"name": "boost-asio",
"platform": "!uwp & !windows"
},
{
"name": "boost-chrono",
"platform": "!uwp & !windows"
},
{
"name": "boost-date-time",
"platform": "!uwp & !windows"
},
{
"name": "boost-filesystem",
"platform": "!uwp & !windows"
},
{
"name": "boost-random",
"platform": "!uwp & !windows"
},
{
"name": "boost-regex",
"platform": "!uwp & !windows"
},
{
"name": "boost-system",
"platform": "!uwp & !windows"
},
{
"name": "boost-thread",
"platform": "!uwp & !windows"
},
{
"name": "openssl",
"platform": "!uwp & !windows"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"default-features"
],
"features": {
"brotli": {
"description": "Brotli compression support",
"dependencies": [
"brotli",
{
"name": "cpprestsdk",
"default-features": false,
"features": [
"compression"
]
}
]
},
"compression": {
"description": "HTTP Compression support",
"dependencies": [
"zlib"
]
},
"default-features": {
"description": "Features installed by default",
"dependencies": [
{
"name": "cpprestsdk",
"default-features": false,
"features": [
"compression"
]
},
{
"name": "cpprestsdk",
"features": [
"brotli"
],
"platform": "windows"
}
]
},
"websockets": {
"description": "Websockets support",
"dependencies": [
{
"name": "boost-date-time",
"platform": "!uwp"
},
{
"name": "boost-regex",
"platform": "!uwp"
},
{
"name": "boost-system",
"platform": "!uwp"
},
{
"name": "cpprestsdk",
"default-features": false,
"features": [
"compression"
]
},
{
"name": "openssl",
"platform": "!uwp"
},
{
"name": "websocketpp",
"platform": "!uwp"
}
]
}
}
}