[libwebp] Remove NDK-bundled cpu-features source files (#48279)

This commit is contained in:
Byoungchan Lee 2025-11-15 06:49:17 +09:00 committed by GitHub
parent 3ea0fbfcb3
commit 4698b36901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 39 additions and 2 deletions

View File

@ -0,0 +1,31 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 39d3d8f6..6169be39 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,24 +185,8 @@ if(WEBP_ENABLE_WUNUSED_RESULT)
endif()
# ##############################################################################
-# Android only.
-if(ANDROID)
- include_directories(${ANDROID_NDK}/sources/android/cpufeatures)
- add_library(cpufeatures-webp STATIC
- ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c)
- list(APPEND INSTALLED_LIBRARIES cpufeatures-webp)
- target_link_libraries(cpufeatures-webp dl)
- set(SHARPYUV_DEP_LIBRARIES ${SHARPYUV_DEP_LIBRARIES} cpufeatures-webp)
- set(WEBP_DEP_LIBRARIES ${WEBP_DEP_LIBRARIES} cpufeatures-webp)
- set(cpufeatures_include_dir ${ANDROID_NDK}/sources/android/cpufeatures)
- set(SHARPYUV_DEP_INCLUDE_DIRS ${SHARPYUV_DEP_INCLUDE_DIRS}
- ${cpufeatures_include_dir})
- set(WEBP_DEP_INCLUDE_DIRS ${WEBP_DEP_INCLUDE_DIRS} ${cpufeatures_include_dir})
- add_definitions(-DHAVE_CPU_FEATURES_H=1)
- set(HAVE_CPU_FEATURES_H 1)
-else()
- set(HAVE_CPU_FEATURES_H 0)
-endif()
+# To streamline dependency management, remove usage of the NDK-bundled cpufeatures.
+set(HAVE_CPU_FEATURES_H 0)
function(configure_pkg_config FILE)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.in"

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
0002-cmake-config.patch
0003-simd.patch
0008-sdl.patch
0009-cpufeatures-android.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -1,7 +1,7 @@
{
"name": "libwebp",
"version": "1.6.0",
"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",

View File

@ -5722,7 +5722,7 @@
},
"libwebp": {
"baseline": "1.6.0",
"port-version": 1
"port-version": 2
},
"libwebsockets": {
"baseline": "4.4.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5366c6ab4c6a5ece31ab06309b9729d29a5d4da1",
"version": "1.6.0",
"port-version": 2
},
{
"git-tree": "c0a4a598eacd380393ff3a92be045f4474643649",
"version": "1.6.0",