From f1c880463666149bcb82a2f76a1f27db71b2ae52 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 17 Apr 2024 16:54:13 +0200 Subject: [PATCH] libwebp: Upgrade to 1.4.0 Change-Id: I196316b0c7efbe27c06b8dfed90db5248db6dce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166185 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- download.lst | 4 ++-- external/libwebp/Makefile.vc.patch | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/download.lst b/download.lst index f36b5fe0da10..48e1cbde01a4 100644 --- a/download.lst +++ b/download.lst @@ -414,8 +414,8 @@ LIBTOMMATH_TARBALL := ltm-1.3.0.tar.xz # three static lines # so that git cherry-pick # will not run into conflicts -LIBWEBP_SHA256SUM := 2a499607df669e40258e53d0ade8035ba4ec0175244869d1025d460562aa09b4 -LIBWEBP_TARBALL := libwebp-1.3.2.tar.gz +LIBWEBP_SHA256SUM := 61f873ec69e3be1b99535634340d5bde750b2e4447caa1db9f61be3fd49ab1e5 +LIBWEBP_TARBALL := libwebp-1.4.0.tar.gz # three static lines # so that git cherry-pick # will not run into conflicts diff --git a/external/libwebp/Makefile.vc.patch b/external/libwebp/Makefile.vc.patch index 41c899921a1c..412ccf60b901 100644 --- a/external/libwebp/Makefile.vc.patch +++ b/external/libwebp/Makefile.vc.patch @@ -1,6 +1,6 @@ --- Makefile.vc.sav 2021-07-30 00:55:37.000000000 +0200 +++ Makefile.vc 2022-01-25 17:35:30.206117700 +0100 -@@ -8,11 +8,11 @@ +@@ -8,13 +8,13 @@ LIBSHARPYUV_BASENAME = libsharpyuv !IFNDEF ARCH @@ -10,12 +10,15 @@ -!ELSE IF ! [ cl 2>&1 | find "x64" > NUL ] +!ELSE IF ! [ $(CC) 2>&1 | grep -q "x64" > NUL ] ARCH = x64 +-!ELSE IF ! [ cl 2>&1 | find "ARM64" > NUL ] ++!ELSE IF ! [ $(CC) 2>&1 | grep -q "ARM64" > NUL ] + ARCH = ARM64 -!ELSE IF ! [ cl 2>&1 | find "ARM" > NUL ] +!ELSE IF ! [ $(CC) 2>&1 | grep -q "ARM" > NUL ] ARCH = ARM !ELSE !ERROR Unable to auto-detect toolchain architecture! \ -@@ -28,8 +28,8 @@ +@@ -30,8 +30,8 @@ ## Nothing more to do below this line! NOLOGO = /nologo @@ -26,7 +29,7 @@ CFLAGS = /I. /Isrc $(NOLOGO) /W3 /EHsc /c CFLAGS = $(CFLAGS) /DWIN32 /D_CRT_SECURE_NO_WARNINGS /DWIN32_LEAN_AND_MEAN LDFLAGS = /LARGEADDRESSAWARE /MANIFEST:EMBED /NXCOMPAT /DYNAMICBASE -@@ -67,7 +67,7 @@ +@@ -69,7 +69,7 @@ RTLIB = /MD RTLIBD = /MDd !ENDIF @@ -35,7 +38,7 @@ DIROBJ = $(DIRBASE)\obj DIRLIB = $(DIRBASE)\lib DIRINC = $(DIRBASE)\include -@@ -87,10 +87,10 @@ +@@ -89,10 +89,10 @@ # Target configuration !IF "$(CFG)" == "release-static" @@ -48,7 +51,7 @@ RTLIB = $(RTLIBD) STATICLIBBUILD = TRUE LIBWEBPDECODER_BASENAME = $(LIBWEBPDECODER_BASENAME)_debug -@@ -99,11 +99,11 @@ +@@ -101,11 +101,11 @@ LIBWEBPDEMUX_BASENAME = $(LIBWEBPDEMUX_BASENAME)_debug LIBSHARPYUV_BASENAME = $(LIBSHARPYUV_BASENAME)_debug !ELSE IF "$(CFG)" == "release-dynamic" @@ -62,7 +65,7 @@ RC = $(RCDEBUG) RTLIB = $(RTLIBD) DLLBUILD = TRUE -@@ -115,7 +115,7 @@ +@@ -117,7 +117,7 @@ !ENDIF !IF "$(STATICLIBBUILD)" == "TRUE" @@ -71,7 +74,7 @@ CFGSET = TRUE LIBWEBPDECODER = $(DIRLIB)\$(LIBWEBPDECODER_BASENAME).lib LIBWEBP = $(DIRLIB)\$(LIBWEBP_BASENAME).lib -@@ -123,7 +123,7 @@ +@@ -125,7 +125,7 @@ LIBWEBPDEMUX = $(DIRLIB)\$(LIBWEBPDEMUX_BASENAME).lib LIBSHARPYUV = $(DIRLIB)\$(LIBSHARPYUV_BASENAME).lib !ELSE IF "$(DLLBUILD)" == "TRUE" @@ -80,7 +83,7 @@ LIBWEBPDECODER = $(DIRLIB)\$(LIBWEBPDECODER_BASENAME)_dll.lib LIBWEBP = $(DIRLIB)\$(LIBWEBP_BASENAME)_dll.lib LIBWEBPMUX = $(DIRLIB)\$(LIBWEBPMUX_BASENAME)_dll.lib -@@ -434,7 +434,7 @@ +@@ -438,7 +438,7 @@ !IF "$(DLLBUILD)" == "TRUE" {$(DIROBJ)}.c{$(DIROBJ)}.obj: @@ -89,7 +92,7 @@ {src}.rc{$(DIROBJ)}.res: $(RC) /fo$@ $< -@@ -467,41 +467,41 @@ +@@ -471,41 +471,41 @@ # File-specific flag builds. Note batch rules take precedence over wildcards, # so for now name each file individually. $(DIROBJ)\examples\anim_diff.obj: examples\anim_diff.c