summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2018-11-06 15:24:24 +0100
committerSkal <skal@google.com>2018-11-06 16:07:05 +0100
commit4cd0582d50eaa79140723c180fc6bfd3891b07f5 (patch)
tree9d158fd649f3c38cd9bada9d4bfafbf1e9f6d4c9
parent6752904b2f57aa19e325f773e81ac70b4f302f26 (diff)
downloadlibwebp-4cd0582d50eaa79140723c180fc6bfd3891b07f5.tar.gz
CMake: fix webp_js compilation
Stick to the strict necessary for running webp_js, and avoid building sub-lib or examples with heavy dependencies. Change-Id: Ife4170a7839fb3201b2cf158d98d17bebe10008f
-rw-r--r--CMakeLists.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 73c7067a..499ddce5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,6 +25,15 @@ endif()
if(WEBP_BUILD_WEBP_JS)
set(WEBP_ENABLE_SIMD OFF)
+ set(WEBP_BUILD_ANIM_UTILS OFF)
+ set(WEBP_BUILD_CWEBP OFF)
+ set(WEBP_BUILD_DWEBP OFF)
+ set(WEBP_BUILD_GIF2WEBP OFF)
+ set(WEBP_BUILD_IMG2WEBP OFF)
+ set(WEBP_BUILD_VWEBP OFF)
+ set(WEBP_BUILD_WEBPINFO OFF)
+ set(WEBP_BUILD_WEBPMUX OFF)
+ set(WEBP_BUILD_EXTRAS OFF)
endif()
set(WEBP_DEP_LIBRARIES)
@@ -327,8 +336,7 @@ if(WEBP_BUILD_ANIM_UTILS
OR WEBP_BUILD_DWEBP
OR WEBP_BUILD_GIF2WEBP
OR WEBP_BUILD_IMG2WEBP
- OR WEBP_BUILD_VWEBP
- OR WEBP_BUILD_WEBP_JS)
+ OR WEBP_BUILD_VWEBP)
# Example utility library.
parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "EXAMPLEUTIL_SRCS"
"example_util_[^ ]*")