mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-02 23:05:46 +01:00
wrlib: Added support for webp image
This patch is adding support for google webp image format, if you don't know it a quick recap is to say that according to their tests they claim it is better than png and jpeg. Follow the link below for some more details: https://developers.google.com/speed/webp/ Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
de1421394c
commit
050cae3bd2
@@ -174,6 +174,29 @@ AC_DEFUN_ONCE([WM_IMGFMT_CHECK_TIFF],
|
||||
]) dnl AC_DEFUN
|
||||
|
||||
|
||||
# WM_IMGFMT_CHECK_WEBP
|
||||
# -------------------
|
||||
#
|
||||
# Check for WEBP file support through 'libwebp'
|
||||
# The check depends on variable 'enable_webp' being either:
|
||||
# yes - detect, fail if not found
|
||||
# no - do not detect, disable support
|
||||
# auto - detect, disable if not found
|
||||
#
|
||||
# When found, append appropriate stuff in GFXLIBS, and append info to
|
||||
# the variable 'supported_gfx'
|
||||
# When not found, append info to variable 'unsupported'
|
||||
AC_DEFUN_ONCE([WM_IMGFMT_CHECK_WEBP],
|
||||
[WM_LIB_CHECK([WEBP], ["-lwebp"], [VP8DecodeLayer], [$XLFLAGS $XLIBS],
|
||||
[wm_save_CFLAGS="$CFLAGS"
|
||||
AS_IF([wm_fn_lib_try_compile "webp/decode.h" "" "return 0" ""],
|
||||
[],
|
||||
[AC_MSG_ERROR([found $CACHEVAR but could not find appropriate header - are you missing libwebp-dev package?])])
|
||||
CFLAGS="$wm_save_CFLAGS"],
|
||||
[supported_gfx], [GFXLIBS])dnl
|
||||
]) dnl AC_DEFUN
|
||||
|
||||
|
||||
# WM_IMGFMT_CHECK_XPM
|
||||
# -------------------
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user