diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcbor | |
Diffstat (limited to 'vcpkg/ports/libcbor')
| -rw-r--r-- | vcpkg/ports/libcbor/portfile.cmake | 26 | ||||
| -rw-r--r-- | vcpkg/ports/libcbor/vcpkg.json | 17 |
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/libcbor/portfile.cmake b/vcpkg/ports/libcbor/portfile.cmake new file mode 100644 index 0000000..20d43b5 --- /dev/null +++ b/vcpkg/ports/libcbor/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO PJK/libcbor
+ REF "v${VERSION}"
+ SHA512 4b41f3c55de0169a60cbd353694c741c3db32d6a173feb1cb14022a7daf8511fc32befbaff7133903ea005df3db02e8ebd67881dff2cfdb89a5e51203b03fe4f
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCMAKE_POLICY_DEFAULT_CMP0054=NEW
+ -DSANITIZE=OFF
+ -DWITH_EXAMPLES=OFF
+ -DWITH_TESTS=OFF
+)
+
+vcpkg_cmake_build()
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/libcbor/vcpkg.json b/vcpkg/ports/libcbor/vcpkg.json new file mode 100644 index 0000000..c5d311c --- /dev/null +++ b/vcpkg/ports/libcbor/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "libcbor", + "version": "0.13.0", + "description": "libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format", + "homepage": "https://github.com/PJK/libcbor", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |