mirror of https://github.com/microsoft/vcpkg.git
[webcraft] update to 1.0.5 (#49724)
This commit is contained in:
parent
83b56e48df
commit
ce312e2d2a
|
|
@ -0,0 +1,29 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 619e8f2..f3f325a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -30,6 +30,11 @@ target_include_directories(WebCraft PUBLIC
|
||||
|
||||
target_link_libraries(WebCraft PUBLIC ${WEBCRAFT_PLATFORM_LIBS})
|
||||
|
||||
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
+ find_package(concurrentqueue REQUIRED)
|
||||
+ target_link_libraries(WebCraft PRIVATE concurrentqueue::concurrentqueue)
|
||||
+endif()
|
||||
+
|
||||
# --- 3. Install Rules ---
|
||||
|
||||
# A. Install the Library and Headers
|
||||
diff --git a/src/webcraft/runtime.provider.cpp b/src/webcraft/runtime.provider.cpp
|
||||
index 0e1300e..8edfe75 100644
|
||||
--- a/src/webcraft/runtime.provider.cpp
|
||||
+++ b/src/webcraft/runtime.provider.cpp
|
||||
@@ -47,7 +47,7 @@ void webcraft::async::detail::initialize_runtime() noexcept
|
||||
// to avoid collision with concurrentqueue's BLOCK_SIZE constant
|
||||
#pragma push_macro("BLOCK_SIZE")
|
||||
#undef BLOCK_SIZE
|
||||
-#include <concurrentqueue/concurrentqueue.h>
|
||||
+#include <moodycamel/concurrentqueue.h>
|
||||
#pragma pop_macro("BLOCK_SIZE")
|
||||
|
||||
#include <liburing.h>
|
||||
|
|
@ -4,8 +4,10 @@ vcpkg_from_github(
|
|||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO adityarao2005/WebCraft
|
||||
REF v${VERSION}
|
||||
SHA512 1c0c5de6a6a42b9a6366a633c6dd00008fc1c631da6cda146ae952c499b8a11028af0f8dad2a1c6c3a51119a6bec44ad5087b6128c015910957c661ea52bee7c
|
||||
SHA512 d598d6303fefa1b18e7effb57da99e353a898817bde917588d103aabe0662eea07a3647dc9338c3cd6ba2d048423b7640cbb396f5fd42dd4f7997136b4bcb236
|
||||
HEAD_REF main
|
||||
PATCHES
|
||||
fix-concurrentqueue.patch
|
||||
)
|
||||
|
||||
if (VCPKG_TARGET_IS_LINUX)
|
||||
|
|
@ -26,6 +28,11 @@ vcpkg_cmake_config_fixup(
|
|||
CONFIG_PATH share/WebCraft
|
||||
)
|
||||
|
||||
file(REMOVE
|
||||
"${CURRENT_PACKAGES_DIR}/include/webcraft/async/README.md"
|
||||
"${CURRENT_PACKAGES_DIR}/include/webcraft/async/asyncruntime.drawio.svg"
|
||||
"${CURRENT_PACKAGES_DIR}/include/webcraft/async/io/README.md"
|
||||
)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
|
|
|||
|
|
@ -1,11 +1,15 @@
|
|||
{
|
||||
"name": "webcraft",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.5",
|
||||
"description": "An async first C++ networking library leveraging powerful features of C++23 built for scale, speed, and ease.",
|
||||
"homepage": "https://github.com/adityarao2005/WebCraft/",
|
||||
"license": "MIT",
|
||||
"supports": "!(uwp | android | emscripten)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "concurrentqueue",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "liburing",
|
||||
"platform": "linux"
|
||||
|
|
|
|||
|
|
@ -10617,7 +10617,7 @@
|
|||
"port-version": 0
|
||||
},
|
||||
"webcraft": {
|
||||
"baseline": "1.0.3",
|
||||
"baseline": "1.0.5",
|
||||
"port-version": 0
|
||||
},
|
||||
"websocketpp": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b429333a40cc15bd838183ef0fd725ba994a0eb5",
|
||||
"version": "1.0.5",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "0bd4b2b58ab47c6ad57df01cd33023c2115bb0a4",
|
||||
"version": "1.0.3",
|
||||
|
|
|
|||
Loading…
Reference in New Issue