aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sparsepp
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/sparsepp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sparsepp')
-rw-r--r--vcpkg/ports/sparsepp/CMakeLists.txt18
-rw-r--r--vcpkg/ports/sparsepp/portfile.cmake28
-rw-r--r--vcpkg/ports/sparsepp/vcpkg.json12
3 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/sparsepp/CMakeLists.txt b/vcpkg/ports/sparsepp/CMakeLists.txt
new file mode 100644
index 0000000..36d304c
--- /dev/null
+++ b/vcpkg/ports/sparsepp/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required (VERSION 3.9)
+project (sparsepp)
+
+set(HEADERS
+ sparsepp/spp.h
+ sparsepp/spp_config.h
+ sparsepp/spp_dlalloc.h
+ sparsepp/spp_memory.h
+ sparsepp/spp_smartptr.h
+ sparsepp/spp_stdint.h
+ sparsepp/spp_timer.h
+ sparsepp/spp_traits.h
+ sparsepp/spp_utils.h
+ )
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(FILES ${HEADERS} DESTINATION include/sparsepp)
+endif()
diff --git a/vcpkg/ports/sparsepp/portfile.cmake b/vcpkg/ports/sparsepp/portfile.cmake
new file mode 100644
index 0000000..729836a
--- /dev/null
+++ b/vcpkg/ports/sparsepp/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO greg7mdp/sparsepp
+ REF 1.22
+ SHA512 b660cd7de48fcab50d4a0df4e4813226b0b0a8a3791aba4e4cc6a456af7bba0be6694bc44781a7d00b5582b32b1d85b9afa83095b7e5c0a26d1b0344ddc94b0f
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+# Note: we could add: OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
+# but it's an header only package, so there's no INSTALL target. So
+# we remove the duplicate headers.
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/sparsepp/vcpkg.json b/vcpkg/ports/sparsepp/vcpkg.json
new file mode 100644
index 0000000..1affc46
--- /dev/null
+++ b/vcpkg/ports/sparsepp/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "sparsepp",
+ "version": "1.22",
+ "port-version": 4,
+ "description": "A fast, memory efficient hash map for C++",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}