[libheif] Make gdk-pixbuf optional (#45354)

This commit is contained in:
ilya-fedin 2025-05-08 21:28:49 +03:00 committed by GitHub
parent 7857ff27a1
commit 3497e28a44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 6 deletions

View File

@ -3,7 +3,8 @@ index eeb2727..20a6b16 100644
--- "a/gdk-pixbuf/CMakeLists.txt"
+++ "b/gdk-pixbuf/CMakeLists.txt"
@@ -1,12 +1,9 @@
if(UNIX OR MINGW)
-if(UNIX OR MINGW)
+if(WITH_GDKPIXBUF2 AND (UNIX OR MINGW))
find_package(PkgConfig)
- pkg_check_modules(GDKPIXBUF2 gdk-pixbuf-2.0)
+ pkg_check_modules(GDKPIXBUF2 gdk-pixbuf-2.0 IMPORTED_TARGET)

View File

@ -18,6 +18,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
jpeg WITH_JPEG_DECODER
jpeg WITH_JPEG_ENCODER
iso23001-17 WITH_UNCOMPRESSED_CODEC
gdk-pixbuf WITH_GDKPIXBUF2
)
vcpkg_cmake_configure(

View File

@ -1,15 +1,12 @@
{
"name": "libheif",
"version": "1.19.8",
"port-version": 1,
"description": "libheif is an HEIF and AVIF file format decoder and encoder.",
"homepage": "http://www.libheif.org/",
"license": "LGPL-3.0-only",
"supports": "!xbox",
"dependencies": [
{
"name": "gdk-pixbuf",
"platform": "!windows"
},
"libde265",
{
"name": "vcpkg-cmake",
@ -31,6 +28,13 @@
"aom"
]
},
"gdk-pixbuf": {
"description": "Plugin for gdk-pixbuf",
"supports": "!windows",
"dependencies": [
"gdk-pixbuf"
]
},
"hevc": {
"description": "HEVC encoding via x265",
"license": "GPL-2.0-or-later",

View File

@ -4770,7 +4770,7 @@
},
"libheif": {
"baseline": "1.19.8",
"port-version": 0
"port-version": 1
},
"libhsplasma": {
"baseline": "2024-03-07",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3818c7a07a9299759d1de597f0091d9f127b3d95",
"version": "1.19.8",
"port-version": 1
},
{
"git-tree": "12fbe980a14a9a302122f8b5df3916365c413fc7",
"version": "1.19.8",