Meta: Add vcpkg overlay port for wuffs 0.3.4

This will be used for GIF decoding.
This commit is contained in:
Tim Ledbetter 2026-06-10 11:51:14 +01:00 committed by Andreas Kling
parent 1a99bdad29
commit 0fc92a5929
4 changed files with 40 additions and 0 deletions

View file

@ -717,6 +717,20 @@
"-DMI_USE_CXX=ON"
]
},
{
"name": "wuffs",
"buildsystem": "simple",
"build-commands": [
"install -D -m644 release/c/wuffs-v0.3.c /app/include/wuffs/wuffs-v0.3.c"
],
"sources": [
{
"type": "git",
"url": "https://github.com/google/wuffs-mirror-release-c.git",
"tag": "v0.3.4"
}
]
},
{
"name": "pdfjs",
"buildsystem": "simple",

View file

@ -0,0 +1,14 @@
# wuffs ships as a single-file library that is compiled into the including translation unit.
set(VCPKG_BUILD_TYPE release)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/wuffs-mirror-release-c
REF "v${VERSION}"
SHA512 d22136a1adf337573944eed917142c6bde877a09bd65738010c6c367c7a3fc9e4573fd4dc8469c93799fe1e3247760e65e64829e830871ee7b333fd72ebc629d
HEAD_REF main
)
file(INSTALL "${SOURCE_PATH}/release/c/wuffs-v0.3.c" DESTINATION "${CURRENT_PACKAGES_DIR}/include/wuffs")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View file

@ -0,0 +1,7 @@
{
"name": "wuffs",
"version": "0.3.4",
"description": "Wrangling Untrusted File Formats Safely: a single-file C library of memory-safe codecs",
"homepage": "https://github.com/google/wuffs-mirror-release-c",
"license": "Apache-2.0 OR MIT"
}

View file

@ -183,6 +183,7 @@
"vulkan",
"vulkan-headers",
"woff2",
"wuffs",
"zlib"
],
"features": {
@ -438,6 +439,10 @@
"name": "woff2",
"version": "1.0.2#5"
},
{
"name": "wuffs",
"version": "0.3.4#0"
},
{
"name": "zlib",
"version": "1.3.1#0"