2016-12-06 23:39:57 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-03-08 09:18:24 +08:00
|
|
|
set(VERSION 0.13.0)
|
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/uwebsockets-${VERSION})
|
2016-12-06 23:39:57 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-03-08 09:18:24 +08:00
|
|
|
URLS "https://github.com/uWebSockets/uWebSockets/archive/v${VERSION}.zip"
|
|
|
|
FILENAME "uwebsockets-v${VERSION}.zip"
|
|
|
|
SHA512 d3912296ed9e20900dc401e841238b84fe273e2e828500347d311948b8cb9dc3a08039b87f82d32a5844e39782201fe39641f336040a4a0493787760f1b5c618
|
2016-12-06 23:39:57 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
2017-03-24 13:34:22 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-12-06 23:39:57 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-03-24 13:34:22 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DINSTALL_HEADERS=OFF
|
2016-12-06 23:39:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/uwebsockets)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/uwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/uwebsockets/copyright)
|
2017-03-24 13:34:22 +08:00
|
|
|
|
2016-12-06 23:39:57 +08:00
|
|
|
vcpkg_copy_pdbs()
|