Warning, /graphics/krita/3rdparty/ext_webp/0008-sdl.patch is written in an unsupported language. File is not indexed.
0001 diff --git a/CMakeLists.txt b/CMakeLists.txt 0002 index 91a4ba8..10a3f4d 100644 0003 --- a/CMakeLists.txt 0004 +++ b/CMakeLists.txt 0005 @@ -624,11 +624,12 @@ endif() 0006 0007 if(WEBP_BUILD_WEBP_JS) 0008 # wasm2js does not support SIMD. 0009 + find_package(SDL REQUIRED) 0010 if(NOT WEBP_ENABLE_SIMD) 0011 # JavaScript version 0012 add_executable(webp_js ${CMAKE_CURRENT_SOURCE_DIR}/extras/webp_to_sdl.c) 0013 - target_link_libraries(webp_js webpdecoder SDL) 0014 - target_include_directories(webp_js PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) 0015 + target_link_libraries(webp_js webpdecoder ${SDL_LIBRARY}) 0016 + target_include_directories(webp_js PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${SDL_INCLUDE_DIR}) 0017 set(WEBP_HAVE_SDL 1) 0018 set_target_properties( 0019 webp_js 0020 @@ -641,14 +642,14 @@ if(WEBP_BUILD_WEBP_JS) 0021 0022 # WASM version 0023 add_executable(webp_wasm ${CMAKE_CURRENT_SOURCE_DIR}/extras/webp_to_sdl.c) 0024 - target_link_libraries(webp_wasm webpdecoder SDL) 0025 - target_include_directories(webp_wasm PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) 0026 + target_link_libraries(webp_wasm webpdecoder ${SDL_LIBRARY}) 0027 + target_include_directories(webp_wasm PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${SDL_INCLUDE_DIR}) 0028 set_target_properties( 0029 webp_wasm 0030 PROPERTIES LINK_FLAGS "-s WASM=1 \ 0031 -s EXPORTED_FUNCTIONS='[\"_WebpToSDL\"]' -s INVOKE_RUN=0 \ 0032 -s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'") 0033 - target_compile_definitions(webp_wasm PUBLIC EMSCRIPTEN WEBP_HAVE_SDL) 0034 + target_compile_definitions(webp_wasm PUBLIC EMSCRIPTEN WEBP_HAVE_SDL WEBP_HAVE_JUST_SDL_H) 0035 0036 target_compile_definitions(webpdspdecode PUBLIC EMSCRIPTEN) 0037 endif()