diff options
| author | Brennan <brecon@microsoft.com> | 2020-05-15 12:05:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-15 12:05:14 -0700 |
| commit | b5a25819763bd4234c640e2052256f69aeca4762 (patch) | |
| tree | c05da74824195af67939730a944e900e6a9626df | |
| parent | 5504dfa7da38a65981868fc7885744ac5d8f234e (diff) | |
| download | vcpkg-b5a25819763bd4234c640e2052256f69aeca4762.tar.gz vcpkg-b5a25819763bd4234c640e2052256f69aeca4762.zip | |
[microsoft-signalr] Add new port (#10833)
* Add microsoft-signalr package
* fb
* websockets
* remove supports
* depends
* uwp
* update
* fb
Co-authored-by: wangli28 <wangli28@beyondsoft.com>
| -rw-r--r-- | ports/microsoft-signalr/CONTROL | 13 | ||||
| -rw-r--r-- | ports/microsoft-signalr/portfile.cmake | 35 |
2 files changed, 48 insertions, 0 deletions
diff --git a/ports/microsoft-signalr/CONTROL b/ports/microsoft-signalr/CONTROL new file mode 100644 index 000000000..73f10bb2b --- /dev/null +++ b/ports/microsoft-signalr/CONTROL @@ -0,0 +1,13 @@ +Source: microsoft-signalr
+Version: 0.1.0-alpha1
+Description: C++ Client for ASP.NET Core SignalR.
+Default-Features: default-features
+Homepage: https://github.com/aspnet/SignalR-Client-Cpp
+
+Feature: default-features
+Build-Depends: microsoft-signalr[cpprestsdk] (!uwp)
+Description: Features installed by default
+
+Feature: cpprestsdk
+Description: Add default Http and WebSocket implementations using CppRestSDK
+Build-Depends: cpprestsdk[default-features,websockets]
\ No newline at end of file diff --git a/ports/microsoft-signalr/portfile.cmake b/ports/microsoft-signalr/portfile.cmake new file mode 100644 index 000000000..e566f594e --- /dev/null +++ b/ports/microsoft-signalr/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO aspnet/SignalR-Client-Cpp
+ REF v0.1.0-alpha1
+ SHA512 d37eea194b0352a08dd89ac7622bdd6224312ad48a31d8ab36627a8aaff5e795e3513ad010eed516703f6da842a95119c1a4a290b145a43e91ff80a37fff8676
+ HEAD_REF master
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ cpprestsdk USE_CPPRESTSDK
+)
+
+if("cpprestsdk" IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
+ message(FATAL_ERROR "microsoft-signalr[cpprestsdk] is not supported on UWP, use microsoft-signalr[core] instead")
+endif()
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ ${FEATURE_OPTIONS}
+ -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()
\ No newline at end of file |
