diff --git a/CMakeLists.txt b/CMakeLists.txt index 53a0a2b0a..bd52eb349 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,6 @@ option(USE_SHARED_JPEGLIB "Use your installed copy of jpeglib" off) option(USE_SHARED_ZLIB "Use your installed copy of zlib" off) option(USE_SHARED_LIBPNG "Use your installed copy of libpng" off) option(USE_SHARED_LIBLOADPNG "Use your installed copy of libloadpng" off) -option(USE_SHARED_LIBWEBP "Use your installed copy of libwebp" off) option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off) option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off) option(USE_SHARED_FREETYPE "Use shared FreeType library" off) @@ -221,21 +220,8 @@ add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code # libwebp if(WITH_WEBP_SUPPORT) - if(USE_SHARED_LIBWEBP) - find_package(PkgConfig) - pkg_check_modules(WEBP libwebp) - if(NOT WEBP_FOUND) - message(FATAL_ERROR "libwebp not found") - endif() - else() - # Skia already includes webp library - if(NOT USE_SKIA_BACKEND) - set(WEBP_LIBRARIES webp) - else() - set(WEBP_LIBRARIES "") - endif() - set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src) - endif() + set(WEBP_LIBRARIES webp webpdemux webpmux) + set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src) include_directories(${WEBP_INCLUDE_DIR}) endif() diff --git a/data/pref.xml b/data/pref.xml index 5d6ccb1cc..80f2185e7 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -276,6 +276,15 @@