forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libpng] update to 1.7.38 (microsoft#27721)
* [libpng] update to 1.7.38 * update version * update patch * update version
- Loading branch information
1 parent
895072c
commit 174be48
Showing
10 changed files
with
52 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a8e5100..0ccac52 100644 | ||
index 8652564..d0681d2 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -40,11 +40,11 @@ option(PNG_BUILD_ZLIB "Custom zlib Location, else find_package is used" OFF) | ||
|
||
if(NOT PNG_BUILD_ZLIB) | ||
find_package(ZLIB REQUIRED) | ||
- include_directories(${ZLIB_INCLUDE_DIR}) | ||
+ set(ZLIB_LIBRARY ZLIB::ZLIB) | ||
endif() | ||
|
||
if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU) | ||
- find_library(M_LIBRARY m) | ||
+ set(M_LIBRARY m) | ||
else() | ||
# libm is not needed and/or not available | ||
set(M_LIBRARY "") | ||
@@ -557,7 +557,7 @@ if(PNG_STATIC) | ||
@@ -614,7 +614,7 @@ if(PNG_STATIC) | ||
# MSVC doesn't use a different file extension for shared vs. static | ||
# libs. We are able to change OUTPUT_NAME to remove the _static | ||
# libs. We are able to change OUTPUT_NAME to remove the _static | ||
# for all other platforms. | ||
- if(NOT MSVC) | ||
+ if(1) | ||
set_target_properties(png_static PROPERTIES | ||
OUTPUT_NAME "${PNG_LIB_NAME}" | ||
CLEAN_DIRECT_OUTPUT 1) | ||
OUTPUT_NAME "${PNG_LIB_NAME}" | ||
CLEAN_DIRECT_OUTPUT 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 3931f12..b570fa8 100644 | ||
index c01cdcb..0ad4ba4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -909,6 +909,12 @@ endif() | ||
# Create an export file that CMake users can include() to import our targets. | ||
if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL) | ||
install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake) | ||
@@ -1033,6 +1033,12 @@ if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL) | ||
install(EXPORT libpng | ||
DESTINATION lib/libpng | ||
FILE lib${PNG_LIB_NAME}.cmake) | ||
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" " | ||
+include(CMakeFindDependencyMacro) | ||
+find_dependency(ZLIB) | ||
+include(\"\${CMAKE_CURRENT_LIST_DIR}/lib${PNG_LIB_NAME}.cmake\") | ||
+") | ||
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/libpng") | ||
+ include(CMakeFindDependencyMacro) | ||
+ find_dependency(ZLIB) | ||
+ include(\"\${CMAKE_CURRENT_LIST_DIR}/lib${PNG_LIB_NAME}.cmake\") | ||
+ ") | ||
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/libpng") | ||
endif() | ||
|
||
# what's with libpng-manual.txt and all the extra files? | ||
# TODO: Create MSVC import lib for MinGW-compiled shared lib. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 6c1d632..a2a0d0d 100644 | ||
index a249d42..1176c60 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*") | ||
@@ -171,8 +171,8 @@ endif() | ||
# Set definitions and sources for MIPS. | ||
if(TARGET_ARCH MATCHES "mipsel*" OR | ||
TARGET_ARCH 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 "on" | ||
+ 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) | ||
+ set(PNG_MIPS_MSA "check" | ||
CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default") | ||
set_property(CACHE PNG_MIPS_MSA | ||
PROPERTY STRINGS ${PNG_MIPS_MSA_POSSIBLE_VALUES}) | ||
@@ -185,6 +185,8 @@ if(TARGET_ARCH 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) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters