aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/msgpack
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/msgpack
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/msgpack')
-rw-r--r--vcpkg/ports/msgpack/portfile.cmake34
-rw-r--r--vcpkg/ports/msgpack/vcpkg.json32
2 files changed, 66 insertions, 0 deletions
diff --git a/vcpkg/ports/msgpack/portfile.cmake b/vcpkg/ports/msgpack/portfile.cmake
new file mode 100644
index 0000000..77fd655
--- /dev/null
+++ b/vcpkg/ports/msgpack/portfile.cmake
@@ -0,0 +1,34 @@
+if (EXISTS ${CURRENT_INSTALLED_DIR}/include/msgpack/pack.h)
+ message(FATAL_ERROR "Cannot install ${PORT} when rest-rpc is already installed, please remove rest-rpc using \"./vcpkg remove rest-rpc:${TARGET_TRIPLET}\"")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO msgpack/msgpack-c
+ REF cpp-${VERSION}
+ SHA512 3b64605974b64384619c07a4895f8ceb56243046b5c941345594d70baf3ad7749573b83c5b20e83505204fc1905ddb0a7dde1c5109ef8a34b5c848d1bb073946
+ HEAD_REF cpp_master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ boost MSGPACK_USE_BOOST
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DMSGPACK_BUILD_EXAMPLES=OFF
+ -DMSGPACK_BUILD_TESTS=OFF
+ -DMSGPACK_BUILD_DOCS=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(PACKAGE_NAME msgpack-cxx CONFIG_PATH lib/cmake/msgpack-cxx)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/msgpack/vcpkg.json b/vcpkg/ports/msgpack/vcpkg.json
new file mode 100644
index 0000000..4796d21
--- /dev/null
+++ b/vcpkg/ports/msgpack/vcpkg.json
@@ -0,0 +1,32 @@
+{
+ "name": "msgpack",
+ "version": "7.0.0",
+ "description": "MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.",
+ "homepage": "https://github.com/msgpack/msgpack-c",
+ "license": "BSL-1.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "boost": {
+ "description": "Build msgpack using Boost",
+ "dependencies": [
+ "boost-assert",
+ "boost-fusion",
+ "boost-numeric-conversion",
+ "boost-optional",
+ "boost-predef",
+ "boost-preprocessor",
+ "boost-utility",
+ "boost-variant"
+ ]
+ }
+ }
+}