chore: make libwebp optional and support system libwebp (#1387)

Co-authored-by: leejet <leejet714@gmail.com>
This commit is contained in:
Wagner Brunaandleejet authored and GitHub committed 2026-04-05 23:52:05 +08:00
1 parent 87ecb95cbc
commit 687a81f251
2 files changed
+34 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ set(Z_TARGET zip)
add_library(${Z_TARGET} OBJECT zip.c zip.h miniz.h)
target_include_directories(${Z_TARGET} PUBLIC .)
if(SD_WEBP)
if(SD_WEBP AND NOT SD_USE_SYSTEM_WEBP)
set(WEBP_BUILD_ANIM_UTILS OFF)
set(WEBP_BUILD_CWEBP OFF)
set(WEBP_BUILD_DWEBP OFF)