mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
26 lines
912 B
CMake
26 lines
912 B
CMake
include(vcpkg_common_functions)
|
|
set(VERSION 0.14.0alpha5)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/uwebsockets-${VERSION})
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://github.com/uWebSockets/uWebSockets/archive/v${VERSION}.zip"
|
|
FILENAME "uwebsockets-v${VERSION}.zip"
|
|
SHA512 22ee1f1569b5b3827092b014016447ccd82a6605695ac005b614fbe8c7eabc59e0e097fef7825743cc9dbb7f3522f5ac2e9fb4553a0367d1da60c739d14e2262
|
|
)
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS_DEBUG
|
|
-DINSTALL_HEADERS=OFF
|
|
)
|
|
|
|
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)
|
|
|
|
vcpkg_copy_pdbs()
|