Skip to content

Commit

Permalink
[libwebp]Fix two dependent windows library link conditions. (microsof…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rastaban authored Aug 27, 2019
2 parents 408990c + 6c7635d commit 6296a1c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions ports/libwebp/0006-fix-dependecies-platform.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83edb3a..f634094 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -540,7 +540,10 @@ if(WEBP_BUILD_EXTRAS)
find_package(SDL)
if(SDL_FOUND)
add_executable(vwebp_sdl ${VWEBP_SDL_SRCS})
- target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp dxguid winmm)
+ target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp)
+ if (MSVC)
+ target_link_libraries(vwebp_sdl dxguid winmm)
+ endif()
target_include_directories(vwebp_sdl
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/src
2 changes: 1 addition & 1 deletion ports/libwebp/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: libwebp
Version: 1.0.2-6
Version: 1.0.2-7
Homepage: https://github.com/webmproject/libwebp
Description: Lossy compression of digital photographic images.
Build-Depends: opengl
Expand Down
1 change: 1 addition & 0 deletions ports/libwebp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vcpkg_from_github(
0003-remove-missing-symbol.patch
0004-add-missing-linked-library.patch
0005-fix-static-build.patch
0006-fix-dependecies-platform.patch
)

set(WEBP_BUILD_ANIM_UTILS OFF)
Expand Down

0 comments on commit 6296a1c

Please sign in to comment.