2021-01-28 06:28:14 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/nsync
|
2023-11-15 04:56:13 +08:00
|
|
|
REF "${VERSION}"
|
2024-10-11 22:46:16 +08:00
|
|
|
SHA512 af463d768c9e4bacc5796410c6d368b8ad0cc0fcbae28ec35fbe7937e7939de1ccad97f51b4940e384b677bb8fbc9963a438f7687e002613f1669ab93e459f60
|
2021-01-28 06:28:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-install.patch
|
|
|
|
)
|
|
|
|
|
2022-03-29 04:51:28 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-28 06:28:14 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNSYNC_ENABLE_TESTS=OFF
|
|
|
|
)
|
2024-10-11 22:46:16 +08:00
|
|
|
vcpkg_cmake_build()
|
2022-03-29 04:51:28 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-10-11 22:46:16 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nsync_cpp PACKAGE_NAME nsync_cpp DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nsync)
|
2021-01-28 06:28:14 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-03-29 04:51:28 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-10-11 22:46:16 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2022-03-29 04:51:28 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|