2019-09-28 23:54:09 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
message(FATAL_ERROR "${PORT} only supports Windows.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# We use `dist` branch instead of `master` branch here,
|
|
|
|
# as suggested by the library author.
|
|
|
|
# https://github.com/microsoft/vcpkg/pull/8280
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO piscisaureus/wepoll
|
2020-11-10 06:37:55 +08:00
|
|
|
REF v1.5.8
|
|
|
|
SHA512 e87fbdd0f64a06910fdf29565acff0443b500c409cf7456657829ece3674563581a5c9a298f9ac70f5a0bb78c0a5eb17cfd1a164ab5cbd6fdaacd19d015a3f85
|
2019-09-28 23:54:09 +08:00
|
|
|
HEAD_REF dist
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-09-28 23:54:09 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-28 23:54:09 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-28 23:54:09 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-28 23:54:09 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-02 02:39:29 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|