mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 23:59:08 +08:00
Add websocketpp
This commit is contained in:
parent
62e7557545
commit
761d56711e
3
ports/websocketpp/CONTROL
Normal file
3
ports/websocketpp/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: websocketpp
|
||||
Version: 0.7.0
|
||||
Description: Library that implements RFC6455 The WebSocket Protocol
|
24
ports/websocketpp/portfile.cmake
Normal file
24
ports/websocketpp/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
#header-only library
|
||||
include(vcpkg_common_functions)
|
||||
set(VERSION "0.7.0")
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/websocketpp-${VERSION})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/zaphoyd/websocketpp/archive/${VERSION}.zip"
|
||||
FILENAME "websocketpp-${VERSION}.zip"
|
||||
SHA512 0cfbc5ed7034758b3666b5154854287441ebeef8e18c4e5f39b62559d4f0e9dda63d79021243c447f57b9855209e1813aeb1c6c475fc98aa71ff03933fc7ac0c
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share)
|
||||
|
||||
# Put the license file where vcpkg expects it
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/websocketpp/)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/websocketpp/COPYING ${CURRENT_PACKAGES_DIR}/share/websocketpp/copyright)
|
||||
|
||||
# Copy the header files
|
||||
file(COPY "${SOURCE_PATH}/websocketpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.hpp")
|
||||
|
||||
set(INSTALL_INCLUDE_DIR "\${CMAKE_CURRENT_LIST_DIR}/../../include")
|
||||
set(WEBSOCKETPP_VERSION ${VERSION})
|
||||
configure_file (${SOURCE_PATH}/websocketpp-config.cmake.in "${CURRENT_PACKAGES_DIR}/share/websocketpp/websocketpp-config.cmake" @ONLY)
|
||||
configure_file (${SOURCE_PATH}/websocketpp-configVersion.cmake.in "${CURRENT_PACKAGES_DIR}/share/websocketpp/websocketpp-configVersion.cmake" @ONLY)
|
Loading…
Reference in New Issue
Block a user