aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/annoy
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/annoy
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/annoy')
-rw-r--r--vcpkg/ports/annoy/portfile.cmake20
-rw-r--r--vcpkg/ports/annoy/vcpkg.json17
2 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/ports/annoy/portfile.cmake b/vcpkg/ports/annoy/portfile.cmake
new file mode 100644
index 0000000..d41003a
--- /dev/null
+++ b/vcpkg/ports/annoy/portfile.cmake
@@ -0,0 +1,20 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO spotify/annoy
+ REF "v${VERSION}"
+ SHA512 a8ec84440019a29dc2939b193ca1f894aad6bc95d2814a7f0296fbd5faf7bdb69072514db496a445993b20182133a8e4e6e774c75f17d3057d146e98bdde28ce
+ HEAD_REF master
+)
+
+set(VCPKG_BUILD_TYPE "release") # header-only port
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/annoy)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/annoy/vcpkg.json b/vcpkg/ports/annoy/vcpkg.json
new file mode 100644
index 0000000..96946d7
--- /dev/null
+++ b/vcpkg/ports/annoy/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "annoy",
+ "version": "1.17.3",
+ "description": "Approximate Nearest Neighbors optimized for memory usage and loading/saving to disk",
+ "homepage": "https://github.com/spotify/annoy",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}