Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[microsoft-signalr] Add new port #10833

Merged
merged 9 commits into from
May 15, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ports/microsoft-signalr/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Source: microsoft-signalr
Version: 0.1.0-alpha1
LilyWangL marked this conversation as resolved.
Show resolved Hide resolved
Description: C++ Client for ASP.NET Core SignalR.
Default-Features: cpprestsdk
Homepage: https://github.com/aspnet/SignalR-Client-Cpp

Feature: cpprestsdk
Description: Add default Http and WebSocket implementations using CppRestSDK
Build-Depends: cpprestsdk[default-features,websockets]
Supports: !uwp
strega-nil marked this conversation as resolved.
Show resolved Hide resolved
31 changes: 31 additions & 0 deletions ports/microsoft-signalr/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO aspnet/SignalR-Client-Cpp
REF v0.1.0-alpha1
SHA512 1677b4c4eefc77f35e60d19153a386992001edfdaa8f629fe7a3d1aed025ed8bdd04e7a5a4560716e8d57c47e44e3e933835d1ebf67aad6670a892c725c63686
HEAD_REF master
)

if("cpprestsdk" IN_LIST FEATURES)
set(USE_CPPRESTSDK true)
else()
set(USE_CPPRESTSDK false)
strega-nil marked this conversation as resolved.
Show resolved Hide resolved
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTING=OFF
LilyWangL marked this conversation as resolved.
Show resolved Hide resolved
-DUSE_CPPRESTSDK=${USE_CPPRESTSDK}
-DWALL=OFF
)

vcpkg_install_cmake()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(COPY ${SOURCE_PATH}/third-party-notices.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/microsoft-signalr)

vcpkg_copy_pdbs()