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,33 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cpp-netlib/cpp-netlib
REF 31d304cdf52b485f465ada433d8905171b61cbff
SHA512 6d157e6d950dd76a6d16b9c13d4d29f188d9f540eb0b44ab169016e1d7a360995e51d9923b532503a17dd2c8e0e2a38b2f9b531db03b33239e7fb9ca4d047b0c
HEAD_REF master
# Updator's note: cpp-netlib has many templates that are not fully instantiated when not building examples.
# This patch specifically fixes one of those issues
# To test updates, enable building examples below (may also require patching out uses of cxxopts)
PATCHES stream-handler-executor.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCPP-NETLIB_BUILD_TESTS=OFF
-DCPP-NETLIB_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/cppnetlib)
else()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cppnetlib TARGET_PATH share/cppnetlib)
endif()
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

View File

@@ -0,0 +1,27 @@
diff --git a/boost/network/protocol/stream_handler.hpp b/boost/network/protocol/stream_handler.hpp
index ffb09b8..f3b3e99 100644
--- a/boost/network/protocol/stream_handler.hpp
+++ b/boost/network/protocol/stream_handler.hpp
@@ -41,6 +40,7 @@ typedef boost::asio::ssl::context ssl_context;
struct stream_handler {
public:
+ typedef tcp_socket::executor_type executor_type;
stream_handler(std::shared_ptr<tcp_socket> socket)
: tcp_sock_(std::move(socket)), ssl_enabled(false) {}
@@ -52,12 +52,12 @@ struct stream_handler {
stream_handler(boost::asio::io_service& io,
std::shared_ptr<ssl_context> ctx =
std::shared_ptr<ssl_context>()) {
- tcp_sock_ = std::make_shared<tcp_socket>(boost::ref(io));
+ tcp_sock_ = std::make_shared<tcp_socket>(io.get_executor());
ssl_enabled = false;
if (ctx) {
/// SSL is enabled
ssl_sock_ =
- std::make_shared<ssl_socket>(boost::ref(io), boost::ref(*ctx));
+ std::make_shared<ssl_socket>(io.get_executor(), boost::ref(*ctx));
ssl_enabled = true;
}
}

17
externals/vcpkg/ports/cpp-netlib/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,17 @@
{
"name": "cpp-netlib",
"version-string": "0.13.0",
"port-version": 6,
"description": "A collection of network-related routines/implementations geared towards providing a robust cross-platform networking library",
"homepage": "https://cpp-netlib.org/",
"supports": "!uwp",
"dependencies": [
"boost-asio",
"boost-assign",
"boost-logic",
"boost-program-options",
"boost-scope-exit",
"boost-smart-ptr",
"boost-spirit"
]
}