Skip to content

Commit

Permalink
[libwebp] Fix target include files (microsoft#33212)
Browse files Browse the repository at this point in the history
* [libwebp] Fix target include files

* version
  • Loading branch information
FrankXie05 authored Aug 17, 2023
1 parent cf37b65 commit e4abb6d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions ports/libwebp/0011-fix-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/cmake/WebPConfig.cmake.in b/cmake/WebPConfig.cmake.in
index 74a5891..4c084d9 100644
--- a/cmake/WebPConfig.cmake.in
+++ b/cmake/WebPConfig.cmake.in
@@ -11,7 +11,7 @@ endif()
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")

set_and_check(WebP_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
-set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIRS})
+set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIR})
set(WebP_LIBRARIES "")
include(SelectLibraryConfigurations)
foreach(_vcpkg_libwebp_lib IN ITEMS @INSTALLED_LIBRARIES@ sharpyuv)
1 change: 1 addition & 0 deletions ports/libwebp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ vcpkg_from_github(
0003-simd.patch
0008-sdl.patch
0010-fix_build.patch
0011-fix-include.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion ports/libwebp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libwebp",
"version": "1.3.1",
"port-version": 1,
"port-version": 2,
"description": "WebP codec: library to encode and decode images in WebP format",
"homepage": "https://github.com/webmproject/libwebp",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4806,7 +4806,7 @@
},
"libwebp": {
"baseline": "1.3.1",
"port-version": 1
"port-version": 2
},
"libwebsockets": {
"baseline": "4.3.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libwebp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ce9a702064516d77e0b1239edc29efd603ee323e",
"version": "1.3.1",
"port-version": 2
},
{
"git-tree": "42095edcaa6f9fb7a29822896d45b772f694a9cf",
"version": "1.3.1",
Expand Down

0 comments on commit e4abb6d

Please sign in to comment.