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/intrusive-shared-ptr | |
Diffstat (limited to 'vcpkg/ports/intrusive-shared-ptr')
| -rw-r--r-- | vcpkg/ports/intrusive-shared-ptr/portfile.cmake | 19 | ||||
| -rw-r--r-- | vcpkg/ports/intrusive-shared-ptr/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/intrusive-shared-ptr/vcpkg.json | 17 |
3 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/intrusive-shared-ptr/portfile.cmake b/vcpkg/ports/intrusive-shared-ptr/portfile.cmake new file mode 100644 index 0000000..49130a1 --- /dev/null +++ b/vcpkg/ports/intrusive-shared-ptr/portfile.cmake @@ -0,0 +1,19 @@ +set(VCPKG_BUILD_TYPE release) # Header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO gershnik/intrusive_shared_ptr + REF "v${VERSION}" + SHA512 4977aeb12ee2ad79f7dbd240c7383d11e0dbd2821682705c351c8a1b55b17afa6eb99aa0618df494a3dd717b5b6e55b6d8dc555e3011c563369500382091ec93 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/isptr PACKAGE_NAME isptr) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") +file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") diff --git a/vcpkg/ports/intrusive-shared-ptr/usage b/vcpkg/ports/intrusive-shared-ptr/usage new file mode 100644 index 0000000..45b5e96 --- /dev/null +++ b/vcpkg/ports/intrusive-shared-ptr/usage @@ -0,0 +1,4 @@ +intrusive-shared-ptr provides CMake targets: + + find_package(isptr CONFIG REQUIRED) + target_link_libraries(main PRIVATE isptr::isptr) diff --git a/vcpkg/ports/intrusive-shared-ptr/vcpkg.json b/vcpkg/ports/intrusive-shared-ptr/vcpkg.json new file mode 100644 index 0000000..b0adae2 --- /dev/null +++ b/vcpkg/ports/intrusive-shared-ptr/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "intrusive-shared-ptr", + "version": "1.9", + "description": "Intrusive reference counting smart pointer, highly configurable reference counted base class and various adapters. Also known as libisptr.", + "homepage": "https://github.com/gershnik/intrusive_shared_ptr", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |