mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 16:52:53 +08:00
[libpng] fix mips64 support (#26265)
* [libpng]fix mips64 support * [libpng]update port version * [libpng]update versiond database * fix msa support for mips * update port version database Co-authored-by: Jamlys Lee <jamlys_lee@163.com>
This commit is contained in:
parent
e034b9ffb4
commit
f4efe37911
25
ports/libpng/fix-msa-support-for-mips.patch
Normal file
25
ports/libpng/fix-msa-support-for-mips.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 6c1d632..a2a0d0d 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -158,8 +158,8 @@ endif()
|
||||||
|
# set definitions and sources for MIPS
|
||||||
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR
|
||||||
|
CMAKE_SYSTEM_PROCESSOR MATCHES "mips64el*")
|
||||||
|
- set(PNG_MIPS_MSA_POSSIBLE_VALUES on off)
|
||||||
|
- set(PNG_MIPS_MSA "on" CACHE STRING "Enable MIPS_MSA optimizations:
|
||||||
|
+ set(PNG_MIPS_MSA_POSSIBLE_VALUES on off check)
|
||||||
|
+ set(PNG_MIPS_MSA "check" CACHE STRING "Enable MIPS_MSA optimizations:
|
||||||
|
off: disable the optimizations")
|
||||||
|
set_property(CACHE PNG_MIPS_MSA PROPERTY STRINGS
|
||||||
|
${PNG_MIPS_MSA_POSSIBLE_VALUES})
|
||||||
|
@@ -173,6 +173,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR
|
||||||
|
mips/filter_msa_intrinsics.c)
|
||||||
|
if(${PNG_MIPS_MSA} STREQUAL "on")
|
||||||
|
add_definitions(-DPNG_MIPS_MSA_OPT=2)
|
||||||
|
+ else()
|
||||||
|
+ add_definitions(-DPNG_MIPS_MSA_CHECK_SUPPORTED)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
add_definitions(-DPNG_MIPS_MSA_OPT=0)
|
||||||
|
|
@ -43,6 +43,7 @@ vcpkg_from_github(
|
|||||||
fix-export-targets.patch
|
fix-export-targets.patch
|
||||||
pkgconfig.patch
|
pkgconfig.patch
|
||||||
macos-arch-fix.patch
|
macos-arch-fix.patch
|
||||||
|
fix-msa-support-for-mips.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PNG_SHARED)
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PNG_SHARED)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "libpng",
|
"name": "libpng",
|
||||||
"version": "1.6.37",
|
"version": "1.6.37",
|
||||||
"port-version": 18,
|
"port-version": 19,
|
||||||
"description": "libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files",
|
"description": "libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files",
|
||||||
"homepage": "https://github.com/glennrp/libpng",
|
"homepage": "https://github.com/glennrp/libpng",
|
||||||
"license": "libpng-2.0",
|
"license": "libpng-2.0",
|
||||||
|
@ -3990,7 +3990,7 @@
|
|||||||
},
|
},
|
||||||
"libpng": {
|
"libpng": {
|
||||||
"baseline": "1.6.37",
|
"baseline": "1.6.37",
|
||||||
"port-version": 18
|
"port-version": 19
|
||||||
},
|
},
|
||||||
"libpopt": {
|
"libpopt": {
|
||||||
"baseline": "1.16",
|
"baseline": "1.16",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "85dc7678690f09c78cc366b1f13498c41be51aff",
|
||||||
|
"version": "1.6.37",
|
||||||
|
"port-version": 19
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "5e3ec787e7c6f09dd162648b700aeb712af0ffd2",
|
"git-tree": "5e3ec787e7c6f09dd162648b700aeb712af0ffd2",
|
||||||
"version": "1.6.37",
|
"version": "1.6.37",
|
||||||
|
Loading…
Reference in New Issue
Block a user