[spscqueue] Update to version 1.0 (#10874)

This commit is contained in:
Erik Rigtorp 2020-04-23 13:52:34 -07:00 committed by GitHub
parent b6cd6ca0ba
commit cd992c4cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,4 @@
Source: spscqueue
Version: 2019-07-26
Version: 1.0
Description: A bounded single-producer single-consumer wait-free and lock-free queue written in C++11
Homepage: https://github.com/rigtorp/SPSCQueue

View File

@ -1,19 +1,22 @@
# header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO rigtorp/SPSCQueue
REF 5165a08ac4474c77c636050332eca6ebfdd53533
SHA512 30cd60711f816e6003a5b114c48bd12da449cb7b0f19aa58dd57e3abc3e5200847c3eb492627b4013f57eec11d5d6f0a11fedbcb21dd8dd5c44682c49456e4e1
REF v1.0
SHA512 8776b49070d549b1df155b0a1ad876a4145d75e004269b3573e8f9963329ad05350d323d87bae229c793cbaf1f2421e35fa7e923e68cc4dcd9cfb6698e8cd80e
HEAD_REF master
)
file(COPY
${SOURCE_PATH}/include/rigtorp/SPSCQueue.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include/rigtorp
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SPSCQueue)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)