2016-12-06 16:39:57 +01:00
|
|
|
include(vcpkg_common_functions)
|
2017-03-29 01:34:38 +02:00
|
|
|
set(VERSION 0.14.1)
|
2017-03-07 17:18:24 -08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/uwebsockets-${VERSION})
|
2016-12-06 16:39:57 +01:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-03-07 17:18:24 -08:00
|
|
|
URLS "https://github.com/uWebSockets/uWebSockets/archive/v${VERSION}.zip"
|
|
|
|
FILENAME "uwebsockets-v${VERSION}.zip"
|
2017-03-29 01:34:38 +02:00
|
|
|
SHA512 1fb798ba49b45c48991ef3c657da9ef8f46d18009c77d9a2c6b98345f97ad7d7806e5490dc478dd5d05bc92bbeb849ac5a300fb91028f786274da89587c04c6e
|
2016-12-06 16:39:57 +01:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
2017-03-23 22:34:22 -07:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-12-06 16:39:57 +01:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-03-23 22:34:22 -07:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DINSTALL_HEADERS=OFF
|
2016-12-06 16:39:57 +01: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-23 22:34:22 -07:00
|
|
|
|
2016-12-06 16:39:57 +01:00
|
|
|
vcpkg_copy_pdbs()
|