Skip to content

Commit

Permalink
Enabling native webp support on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Sep 19, 2024
1 parent 33f0b50 commit e83fdf8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e83fdf8

Please sign in to comment.