2022-03-12 01:57:37 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2021-07-23 06:11:30 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO seladb/PcapPlusPlus
|
2022-05-17 03:38:05 +08:00
|
|
|
REF v22.05
|
|
|
|
SHA512 8ffe33406b903fe104f7bf0cf7254028bb3a9997bb5f4b226276af3b2a310e1ed1621558b9fd96ed09c75fa05dfcbfbd7111fe4b19a9288eb214ebcf1254cf6b
|
2021-07-23 06:11:30 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2022-03-12 01:57:37 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
)
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|