mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 15:10:11 +08:00
511e887ee7
* [nsync] create a new port * [nsync] support system name WindowsStore * [nsync] use "version" instead of "version-string" * [nsync] add version JSON * Update ports/nsync/portfile.cmake * [nsync] apply PR feedback * [nsync] update SHA of port * [nsync] extract vcpkg_replace_string to patch * update version SHA Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
26 lines
718 B
CMake
26 lines
718 B
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/nsync
|
|
REF 1.24.0
|
|
SHA512 14dd582488072123a353c967664ed9a3f636865bb35e64d7256dcc809539129fa47c7979a4009fd45c9341cac537a4ca6b4b617ba2cae1d3995a7c251376339f
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-install.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DNSYNC_ENABLE_TESTS=OFF
|
|
)
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|