Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nsync] create a new port #15714

Merged
merged 8 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions ports/nsync/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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
)

vcpkg_replace_string(${SOURCE_PATH}/CMakeLists.txt
"if (\"\${CMAKE_SYSTEM_NAME}X\" STREQUAL \"WindowsX\")"
"if (\"\${CMAKE_SYSTEM_NAME}X\" STREQUAL \"WindowsX\" OR \"\${CMAKE_SYSTEM_NAME}X\" STREQUAL \"WindowsStoreX\" )"
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DNSYNC_ENABLE_TESTS=OFF
)
vcpkg_build_cmake(TARGET nsync)
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)
6 changes: 6 additions & 0 deletions ports/nsync/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "nsync",
"version": "1.24.0",
"description": "nsync is a C library that exports various synchronization primitives, such as mutexes",
"homepage": "https://github.com/google/nsync"
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4048,6 +4048,10 @@
"baseline": "4.1.2",
"port-version": 0
},
"nsync": {
"baseline": "1.24.0",
"port-version": 0
},
"nt-wrapper": {
"baseline": "2019-08-10",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/n-/nsync.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "577f79d93c71820a6c8d768b93949fbcc8647966",
"version": "1.24.0",
"port-version": 0
}
]
}