[hnswlib] new port (#29848)

* [hnswlib] new port

* remove cmake config

---------

Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
This commit is contained in:
moritz-h 2023-03-03 20:20:51 +01:00 committed by GitHub
parent 4d702071f5
commit 39f3c5c343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,12 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nmslib/hnswlib
REF 359b2ba87358224963986f709e593d799064ace6 # v0.7.0
SHA512 59a0c02bbe8f7389a2ecad9188a76eb3847b719a213d306093753c04e4eeb11d95e8e310aa03888364be475a2f2e6e7976bd81117517eef81eff2983379ac743
HEAD_REF master
)
file(COPY "${SOURCE_PATH}/hnswlib" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/hnswlib/usage Normal file
View File

@ -0,0 +1,4 @@
hnswlib is header-only and can be used from CMake via:
find_path(HNSWLIB_INCLUDE_DIRS "hnswlib/hnswlib.h")
target_include_directories(main PRIVATE ${HNSWLIB_INCLUDE_DIRS})

7
ports/hnswlib/vcpkg.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "hnswlib",
"version": "0.7.0",
"description": "Header-only library for fast approximate nearest neighbors",
"homepage": "https://github.com/nmslib/hnswlib",
"license": "Apache-2.0"
}

View File

@ -3052,6 +3052,10 @@
"baseline": "1.0.2",
"port-version": 4
},
"hnswlib": {
"baseline": "0.7.0",
"port-version": 0
},
"hps": {
"baseline": "2022-01-18",
"port-version": 0

9
versions/h-/hnswlib.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7053d263445d46410589894d921fa6c85fbf107c",
"version": "0.7.0",
"port-version": 0
}
]
}