diff options
author | skal <pascal.massimino@gmail.com> | 2018-11-06 15:24:24 +0100 |
---|---|---|
committer | James Zern <jzern@google.com> | 2018-11-06 17:20:43 -0800 |
commit | 3be698c3d3b772e4730276294de1e37b801b6e2f (patch) | |
tree | 3ac04926521302a05f877fced5125af2cce5e363 | |
parent | 4cbb4caf49675e47176fa3543c9e1d400ea77e42 (diff) | |
download | libwebp-3be698c3d3b772e4730276294de1e37b801b6e2f.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
(cherry picked from commit 4cd0582d50eaa79140723c180fc6bfd3891b07f5)
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ccd1b48b..61973c6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,15 @@ option(WEBP_ENABLE_SWAP_16BIT_CSP "Enable byte swap for 16 bit colorspaces." 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) @@ -317,8 +326,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_[^ ]*") |