2018-10-21 04:19:05 +08:00
|
|
|
#header-only library
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skypjack/uvw
|
2019-04-02 02:40:20 +08:00
|
|
|
REF v1.15.0_libuv-v1.27
|
|
|
|
SHA512 acf1f1bdbc34ec5d040514ca08c99ee05b5bbb112828a4acf5f4c50e1910d2c74864a0793d4087b7a4a0704dd2ba1a973f65cee032fffea9247009be9cd0243c
|
2018-10-21 04:19:05 +08:00
|
|
|
)
|
|
|
|
|
2019-04-02 02:40:20 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2018-10-21 04:19:05 +08:00
|
|
|
)
|
2019-04-02 02:40:20 +08:00
|
|
|
vcpkg_install_cmake()
|
2018-10-21 04:19:05 +08:00
|
|
|
|
2019-04-02 02:40:20 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/uvw")
|
2019-02-15 02:25:00 +08:00
|
|
|
file(INSTALL
|
2019-04-02 02:40:20 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/uvw-config.cmake
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/uvw/
|
2019-02-15 02:25:00 +08:00
|
|
|
)
|
2019-04-02 02:40:20 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
2019-02-15 02:25:00 +08:00
|
|
|
|
2018-10-21 04:19:05 +08:00
|
|
|
# Handle copyright/readme/package files
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/uvw RENAME copyright)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/uvw)
|