aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/type-safe
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/type-safe
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/type-safe')
-rw-r--r--vcpkg/ports/type-safe/portfile.cmake23
-rw-r--r--vcpkg/ports/type-safe/vcpkg.json17
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/type-safe/portfile.cmake b/vcpkg/ports/type-safe/portfile.cmake
new file mode 100644
index 0000000..9e46d00
--- /dev/null
+++ b/vcpkg/ports/type-safe/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO foonathan/type_safe
+ REF "v${VERSION}"
+ SHA512 90e256af61649706c97d2cf317ce34b2b953fc841b04eab8193a865d3eced9a1044d22ecb520688f3adf35a06c346945604f177a933e7709cc167bb1637ccb4e
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DTYPE_SAFE_BUILD_TEST_EXAMPLE=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME type_safe CONFIG_PATH lib/cmake/type_safe)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/type-safe/vcpkg.json b/vcpkg/ports/type-safe/vcpkg.json
new file mode 100644
index 0000000..b14f946
--- /dev/null
+++ b/vcpkg/ports/type-safe/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "type-safe",
+ "version": "0.2.4",
+ "description": "Zero overhead abstractions that use the C++ type system to prevent bugs.",
+ "homepage": "https://github.com/foonathan/type_safe",
+ "dependencies": [
+ "debug-assert",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}