diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/spscqueue | |
Diffstat (limited to 'vcpkg/ports/spscqueue')
| -rw-r--r-- | vcpkg/ports/spscqueue/portfile.cmake | 21 | ||||
| -rw-r--r-- | vcpkg/ports/spscqueue/vcpkg.json | 17 |
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/spscqueue/portfile.cmake b/vcpkg/ports/spscqueue/portfile.cmake new file mode 100644 index 0000000..cd808db --- /dev/null +++ b/vcpkg/ports/spscqueue/portfile.cmake @@ -0,0 +1,21 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO rigtorp/SPSCQueue + REF v1.1 + SHA512 148d60b3677f9d96603413577ff7062d8830bfec955cf3631bea66e5937ee0564d3ff51d05bf9417e5f964e761b7d7fbb8a871e5b6e0fe21112479b4830b0025 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(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) diff --git a/vcpkg/ports/spscqueue/vcpkg.json b/vcpkg/ports/spscqueue/vcpkg.json new file mode 100644 index 0000000..162a8f8 --- /dev/null +++ b/vcpkg/ports/spscqueue/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "spscqueue", + "version": "1.1", + "port-version": 3, + "description": "A bounded single-producer single-consumer wait-free and lock-free queue written in C++11", + "homepage": "https://github.com/rigtorp/SPSCQueue", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |