From f5b1b96dda4a80fa94355b5c083eb4c485f3c6f7 Mon Sep 17 00:00:00 2001 From: Michael Heyman Date: Tue, 18 May 2021 18:24:38 -0400 Subject: [PATCH] [atomic-queue]: available in vcpkg! (#17953) Co-authored-by: Michael Heyman --- ports/atomic-queue/portfile.cmake | 20 ++++++++++++++++++++ ports/atomic-queue/vcpkg.json | 6 ++++++ versions/a-/atomic-queue.json | 9 +++++++++ versions/baseline.json | 4 ++++ 4 files changed, 39 insertions(+) create mode 100644 ports/atomic-queue/portfile.cmake create mode 100644 ports/atomic-queue/vcpkg.json create mode 100644 versions/a-/atomic-queue.json diff --git a/ports/atomic-queue/portfile.cmake b/ports/atomic-queue/portfile.cmake new file mode 100644 index 0000000000..49c5e05769 --- /dev/null +++ b/ports/atomic-queue/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO max0x7ba/atomic_queue + REF 7619054490efdbfe377bd528bc09b21f5cd38a02 + SHA512 0d145f461a5c978c4d6f6d8ec1f06f0c61f3d009e65eac12db806c2aa7941461f881b34b9c4dd9aeebd3206a4598e6081f89f983c389b2f5aecefefcbddd94b6 + HEAD_REF master +) + +file( + COPY + ${SOURCE_PATH}/include/atomic_queue/atomic_queue.h + ${SOURCE_PATH}/include/atomic_queue/atomic_queue_mutex.h + ${SOURCE_PATH}/include/atomic_queue/barrier.h + ${SOURCE_PATH}/include/atomic_queue/defs.h + ${SOURCE_PATH}/include/atomic_queue/spinlock.h + DESTINATION + ${CURRENT_PACKAGES_DIR}/include/atomic_queue +) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/atomic-queue/vcpkg.json b/ports/atomic-queue/vcpkg.json new file mode 100644 index 0000000000..7e7cbe56fa --- /dev/null +++ b/ports/atomic-queue/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "atomic-queue", + "version-date": "2021-05-03", + "description": "Minimalistic header-only thread-safe ultra-low-latency multiple-producer-multiple-consumer lockless queues based on circular buffer with std::atomic.", + "homepage": "https://github.com/max0x7ba/atomic_queue" +} diff --git a/versions/a-/atomic-queue.json b/versions/a-/atomic-queue.json new file mode 100644 index 0000000000..56784d4b3b --- /dev/null +++ b/versions/a-/atomic-queue.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "a32a426d9c16a0067532134ecb6680ee7928f7f7", + "version-date": "2021-05-03", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 25d5388770..5d62c111ff 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -188,6 +188,10 @@ "baseline": "0", "port-version": 0 }, + "atomic-queue": { + "baseline": "2021-05-03", + "port-version": 0 + }, "aubio": { "baseline": "0.4.9", "port-version": 4