-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[freetype] update to 2.11.0 #19284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[freetype] update to 2.11.0 #19284
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,24 @@ | ||
| diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake | ||
| index 7c484c7df..0bd49b825 100644 | ||
| --- a/builds/cmake/FindBrotliDec.cmake | ||
| +++ b/builds/cmake/FindBrotliDec.cmake | ||
| @@ -34,14 +34,22 @@ find_path(BROTLIDEC_INCLUDE_DIRS | ||
| PATH_SUFFIXES brotli) | ||
|
|
||
| find_library(BROTLIDEC_LIBRARIES | ||
| - NAMES brotlidec | ||
| + NAMES brotlidec brotlidec-static | ||
| HINTS ${PC_BROTLIDEC_LIBDIR} | ||
| ${PC_BROTLIDEC_LIBRARY_DIRS}) | ||
|
|
||
| +find_library(BROTLICOMMON_LIBRARIES | ||
| + NAMES brotlicommon-static | ||
| + HINTS ${PC_BROTLIDEC_LIBDIR} | ||
| + ${PC_BROTLIDEC_LIBRARY_DIRS}) | ||
| + | ||
| +if(BROTLICOMMON_LIBRARIES) | ||
| + set(BROTLIDEC_LIBRARIES ${BROTLIDEC_LIBRARIES} ${BROTLICOMMON_LIBRARIES}) | ||
| +endif() | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
| find_package_handle_standard_args( | ||
| - brotlidec | ||
| + BrotliDec | ||
| REQUIRED_VARS BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES | ||
| FOUND_VAR BROTLIDEC_FOUND | ||
| VERSION_VAR BROTLIDEC_VERSION) | ||
| diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake | ||
|
||
| index 46356b1fd..ed4cc2409 100644 | ||
| --- a/builds/cmake/FindBrotliDec.cmake | ||
| +++ b/builds/cmake/FindBrotliDec.cmake | ||
| @@ -35,10 +35,18 @@ find_path(BROTLIDEC_INCLUDE_DIRS | ||
| PATH_SUFFIXES brotli) | ||
|
|
||
| find_library(BROTLIDEC_LIBRARIES | ||
| - NAMES brotlidec | ||
| + NAMES brotlidec brotlidec-static | ||
| HINTS ${PC_BROTLIDEC_LIBDIR} | ||
| ${PC_BROTLIDEC_LIBRARY_DIRS}) | ||
|
|
||
| +find_library(BROTLICOMMON_LIBRARIES | ||
| + NAMES brotlicommon-static | ||
| + HINTS ${PC_BROTLIDEC_LIBDIR} | ||
| + ${PC_BROTLIDEC_LIBRARY_DIRS}) | ||
| + | ||
| +if(BROTLICOMMON_LIBRARIES) | ||
| + set(BROTLIDEC_LIBRARIES ${BROTLIDEC_LIBRARIES} ${BROTLICOMMON_LIBRARIES}) | ||
| +endif() | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
| find_package_handle_standard_args( | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index cb1b9a0f2..53d0bfc68 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -503,7 +503,7 @@ endif () | ||
| if (BZIP2_FOUND) | ||
| target_link_libraries(freetype PRIVATE ${BZIP2_LIBRARIES}) | ||
| target_include_directories(freetype PRIVATE ${BZIP2_INCLUDE_DIR}) # not BZIP2_INCLUDE_DIRS | ||
| - list(APPEND PKG_CONFIG_LIBS_PRIVATE "-lbz2") | ||
| + list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "bzip2") | ||
| endif () | ||
| if (PNG_FOUND) | ||
| target_link_libraries(freetype PRIVATE ${PNG_LIBRARIES}) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index 2314c79..994c602 100644 | ||
| index cb1b9a0f2..edca5d579 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -446,7 +446,7 @@ endif () | ||
| set(PKG_CONFIG_REQUIRED_PRIVATE "") | ||
| @@ -496,7 +496,7 @@ set(PKG_CONFIG_REQUIRED_PRIVATE "") | ||
| set(PKG_CONFIG_LIBS_PRIVATE "") | ||
|
|
||
| if (ZLIB_FOUND) | ||
| - target_link_libraries(freetype PRIVATE ${ZLIB_LIBRARIES}) | ||
| + target_link_libraries(freetype PRIVATE ZLIB::ZLIB) | ||
|
||
| target_include_directories(freetype PRIVATE ${ZLIB_INCLUDE_DIRS}) | ||
| list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "zlib") | ||
| endif () | ||
| @@ -560,12 +560,26 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL) | ||
| @@ -596,12 +596,25 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL) | ||
| install( | ||
| EXPORT freetype-targets | ||
| DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype | ||
|
|
@@ -22,7 +22,6 @@ index 2314c79..994c602 100644 | |
| DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype | ||
| COMPONENT headers) | ||
| + | ||
| + | ||
| + if(ZLIB_FOUND) | ||
| + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/freetype-config.cmake" | ||
| +[[include(CMakeFindDependencyMacro) | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "name": "freetype", | ||
| "version-semver": "2.11.0", | ||
| "description": "A library to render fonts.", | ||
| "homepage": "https://www.freetype.org/", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ], | ||
| "default-features": [ | ||
| "brotli", | ||
| "bzip2", | ||
| "png", | ||
| "zlib" | ||
| ], | ||
| "features": { | ||
| "brotli": { | ||
| "description": "Support decompression of WOFF2 streams", | ||
| "dependencies": [ | ||
| "brotli" | ||
| ] | ||
| }, | ||
| "bzip2": { | ||
| "description": "Support bzip2 compressed fonts.", | ||
| "dependencies": [ | ||
| "bzip2" | ||
| ] | ||
| }, | ||
| "png": { | ||
| "description": "Support PNG compressed OpenType embedded bitmaps.", | ||
| "dependencies": [ | ||
| "libpng" | ||
| ] | ||
| }, | ||
| "zlib": { | ||
| "description": "Use zlib instead of internal library for DEFLATE", | ||
| "dependencies": [ | ||
| "zlib" | ||
| ] | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch is still used?