2019-10-08 10:15:32 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skywind3000/kcp
|
2021-10-12 11:14:06 +08:00
|
|
|
REF 38e0c9366e4a72c749ff0bcdf911d1fe9bdfe9f5
|
|
|
|
SHA512 1a05a692719f7f7bfa2e20df81c68af991bd01fe7236ab637a10644abfed425b9f46fd9ad399b8edca152d7bb617c37533b183bda2cf4a0cc1c3ce47031ba37f
|
2019-10-08 10:15:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-12 11:14:06 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-10-08 10:15:32 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-12 11:14:06 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-08 10:15:32 +08:00
|
|
|
|
2021-10-12 11:14:06 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-10-08 10:15:32 +08:00
|
|
|
|
2021-10-12 11:14:06 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-10-08 10:15:32 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-10-12 11:14:06 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|