From e83fdf8f2df5bb12c00e42632f553aa04de424f2 Mon Sep 17 00:00:00 2001 From: David Tschumperle Date: Thu, 19 Sep 2024 08:49:33 +0200 Subject: [PATCH] Enabling native webp support on Linux. --- examples/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index 75e8a36a..36ff061a 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -304,7 +304,14 @@ BOARD_INCDIR = -I/usr/include/board BOARD_CFLAGS = $(BOARD_DEFINE) $(BOARD_INCDIR) BOARD_LIBS = -lboard -# Flags to compile GIMP plug-ins. +# Enable native support of WebP image files, using the WebP library. +# (https://chromium.googlesource.com/webm/libwebp/) +WEBP_DEFINE = -Dcimg_use_webp +WEBP_INCDIR = $(shell pkg-config --cflags libwebp) +WEBP_CFLAGS = $(WEBP_DEFINE) $(WEBP_INCDIR) +WEBP_LIBS = $(shell pkg-config --libs libwep || echo -lwebp) + +# Flags to compile executable on Windows. ifeq ($(MSYSTEM),MINGW32) GIMP_CFLAGS = -mwindows endif