[uwebsockets] Update to v0.13.0. Resolves #738

This commit is contained in:
Alexander Karatarakis 2017-03-07 17:18:24 -08:00
parent addf31613e
commit 50162c7542
2 changed files with 18 additions and 16 deletions

View File

@ -1,22 +1,24 @@
commit 2b244f92ddf5e58bf81ccb40a8f23a3f94d9941b
Author: Alexander Karatarakis <alkarata@microsoft.com>
Date: Tue Mar 7 17:13:52 2017 -0800
Fixes
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1fadf72..6ee984d 100644
index 33a8ae0..0b9c006 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,11 @@ if(NOT LIBUV_INCLUDE_DIR)
@@ -12,7 +12,7 @@ if(NOT LIBUV_INCLUDE_DIR)
find_path(LIBUV_INCLUDE_DIR uv.h)
endif()
if(NOT LIBUV_LIBRARY)
- find_library(LIBUV_LIBRARY NAMES uv uv1)
+ if(WIN32)
+ find_library(LIBUV_LIBRARY NAMES libuv)
+ else()
+ find_library(LIBUV_LIBRARY NAMES uv uv1)
+ endif()
+ find_library(LIBUV_LIBRARY NAMES libuv uv uv1)
endif()
add_library(uWS src/Extensions.cpp src/Group.cpp src/WebSocketImpl.cpp src/Networking.cpp src/Hub.cpp src/Node.cpp src/WebSocket.cpp src/HTTPSocket.cpp src/Socket.cpp)
@@ -38,4 +42,20 @@ install (TARGETS uWS DESTINATION /usr/lib64)
install (FILES src/Extensions.h src/WebSocketProtocol.h src/Networking.h src/WebSocket.h src/Hub.h src/Group.h src/Node.h src/Socket.h src/HTTPSocket.h src/uWS.h DESTINATION /usr/include/uWS)
add_library(uWS src/Extensions.cpp src/Group.cpp src/WebSocketImpl.cpp src/Networking.cpp src/Hub.cpp src/Node.cpp src/WebSocket.cpp src/HTTPSocket.cpp src/Socket.cpp src/uUV.cpp)
@@ -38,4 +38,20 @@ install (TARGETS uWS DESTINATION /usr/lib64)
install (FILES src/Extensions.h src/WebSocketProtocol.h src/Networking.h src/WebSocket.h src/Hub.h src/Group.h src/Node.h src/Socket.h src/HTTPSocket.h src/uWS.h src/uUV.h DESTINATION /usr/include/uWS)
endif (UNIX)
-add_subdirectory(examples)
@ -37,4 +39,3 @@ index 1fadf72..6ee984d 100644
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
\ No newline at end of file

View File

@ -1,9 +1,10 @@
include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/uwebsockets-0.12.0)
set(VERSION 0.13.0)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/uwebsockets-${VERSION})
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/uWebSockets/uWebSockets/archive/v0.12.0.zip"
FILENAME "uwebsockets-v0.12.0.zip"
SHA512 ea10682608d5f6c8b246f186dfc2f14f496858cc7e468880b96b111f10058daf529f1aa9662a851e21494dde9a4faadf2b9904483dac5350d0ca8736500cdda8
URLS "https://github.com/uWebSockets/uWebSockets/archive/v${VERSION}.zip"
FILENAME "uwebsockets-v${VERSION}.zip"
SHA512 d3912296ed9e20900dc401e841238b84fe273e2e828500347d311948b8cb9dc3a08039b87f82d32a5844e39782201fe39641f336040a4a0493787760f1b5c618
)
vcpkg_extract_source_archive(${ARCHIVE})