aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cereal
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/cereal
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cereal')
-rw-r--r--vcpkg/ports/cereal/portfile.cmake25
-rw-r--r--vcpkg/ports/cereal/vcpkg.json18
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/cereal/portfile.cmake b/vcpkg/ports/cereal/portfile.cmake
new file mode 100644
index 0000000..cf667b6
--- /dev/null
+++ b/vcpkg/ports/cereal/portfile.cmake
@@ -0,0 +1,25 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO USCiLab/cereal
+ REF v1.3.2
+ SHA512 98d306d6292789129675f1c5c5aedcb90cfcc1029c4482893a8f9b23f3c9755e5ed4762d7a528f215345cae6392e87cd8d89467115b6f031b41c8673d6b4b109
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DJUST_INSTALL_CEREAL=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cereal)
+
+# Clean
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/cereal/vcpkg.json b/vcpkg/ports/cereal/vcpkg.json
new file mode 100644
index 0000000..aface78
--- /dev/null
+++ b/vcpkg/ports/cereal/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "cereal",
+ "version": "1.3.2",
+ "port-version": 1,
+ "description": "a header-only C++11 serialization library (built in support for binary, XML and JSon)",
+ "homepage": "https://github.com/USCiLab/cereal",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}