From 7b54e26bace269c6a9d040f93887232fb2320659 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Fri, 5 Aug 2016 09:45:34 +0200 Subject: [PATCH] Add a CMake option for WEBP_SWAP_16BIT_CSP. Change-Id: I79ed6cbce9563bf7ca97fc2e10ec3e75b6b8ab5b --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d693163c..ab7e1685 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ option(WEBP_BUILD_CWEBP "Build the cwebp command line tool." OFF) option(WEBP_BUILD_DWEBP "Build the dwebp command line tool." OFF) option(WEBP_EXPERIMENTAL_FEATURES "Build with experimental features." OFF) option(WEBP_FORCE_ALIGNED "Force aligned memory operations." OFF) +option(WEBP_ENABLE_SWAP_16BIT_CSP "Enable byte swap for 16 bit colorspaces." OFF) set(WEBP_DEP_LIBRARIES) set(WEBP_DEP_INCLUDE_DIRS) @@ -19,6 +20,12 @@ endif() include(cmake/config.h.cmake) +################################################################################ +# Options. +if(WEBP_ENABLE_SWAP_16BIT_CSP) + add_definitions(-DWEBP_SWAP_16BIT_CSP) +endif() + ################################################################################ # Android only. if(ANDROID)