aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2024-03-07 19:21:20 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-07 19:21:20 +0000
commit8a7e911231152b6782109bec48c02f25c2382798 (patch)
tree9732a63dfefd84dabfaecad91114cab895bb9023
parent7fac6c1bf269028c7e4fdd8a4f2b01601fb8d110 (diff)
parentfba7d62ee5d3f1b06a768eecff9b790f75703f77 (diff)
downloadwebp-8a7e911231152b6782109bec48c02f25c2382798.tar.gz
Merge "CMakeLists.txt: apply cmake-format" into main
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bce1a7f3..6979f6f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -164,7 +164,7 @@ if(MSVC)
endif()
if(NOT WIN32)
-set(CMAKE_C_VISIBILITY_PRESET hidden)
+ set(CMAKE_C_VISIBILITY_PRESET hidden)
endif()
if(WEBP_ENABLE_WUNUSED_RESULT)
@@ -694,8 +694,7 @@ if(WEBP_BUILD_WEBP_JS)
"-sWASM=0 ${emscripten_stack_size} \
-sEXPORTED_FUNCTIONS=_WebPToSDL -sINVOKE_RUN=0 \
-sEXPORTED_RUNTIME_METHODS=cwrap ${EMSCRIPTEN_SDL2_FLAGS} \
- -sALLOW_MEMORY_GROWTH"
- )
+ -sALLOW_MEMORY_GROWTH")
set_target_properties(webp_js PROPERTIES OUTPUT_NAME webp)
target_compile_definitions(webp_js PUBLIC EMSCRIPTEN WEBP_HAVE_SDL)
endif()
@@ -711,8 +710,7 @@ if(WEBP_BUILD_WEBP_JS)
"-sWASM=1 ${emscripten_stack_size} \
-sEXPORTED_FUNCTIONS=_WebPToSDL -sINVOKE_RUN=0 \
-sEXPORTED_RUNTIME_METHODS=cwrap ${EMSCRIPTEN_SDL2_FLAGS} \
- -sALLOW_MEMORY_GROWTH"
- )
+ -sALLOW_MEMORY_GROWTH")
target_compile_definitions(webp_wasm PUBLIC EMSCRIPTEN WEBP_HAVE_SDL)
target_compile_definitions(webpdspdecode PUBLIC EMSCRIPTEN)